Merge a missing part of 235613 to add the new dirs to mtree.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 249767:
- Some BIOSes use an Extended IRQ resource descriptor in _PRS for a link
  that uses non-ISA IRQs but use a plain IRQ resource in _CRS.  However,
  a non-ISA IRQ can't fit into a plain IRQ resource.  If we encounter a
  link like this, build the resource buffer from _PRS instead of _CRS.
- Set the correct size of the end tag in a resource buffer.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r244090, r250945

Changes to resolve races in bpfread() and catchpacket() that, at worst,
cause kernel panics.

Add a flag to the bpf descriptor to indicate whether the hold buffer
is in use. In bpfread(), set the "hold buffer in use" flag before
dropping the descriptor lock during the call to bpf_uiomove().
Everywhere else the hold buffer is used or changed, wait while
the hold buffer is in use by bpfread(). Add a KASSERT in bpfread()
after re-acquiring the descriptor lock to assist uncovering any
additional hold buffer races.

While waiting for the bpf hold buffer to become idle, check
the return value from mtx_sleep() and exit bpfread() on
errors such as EINTR.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 250053:
Only cleanup CMI-related state on detach if the system supports CMI.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 250220:
Fix FIONREAD on regular files.  The computed result was being ignored and
it was being passed down to VOP_IOCTL() where it promptly resulted in
ENOTTY due to a missing else for the past 8 years.  While here, use a
shared vnode lock while fetching the current file's size.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r251490:

Properly set curvnet context in lagg_port_setlladdr() task handler.

Reported by:	Nikos Vassiliadis <nvass gmx.com>
Submitted by:	zec
Tested by:	Nikos Vassiliadis <nvass gmx.com>


git-svn-id: svn://svn.freebsd.org/base/stable/9@251779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9