Fix the conversion macro for .note sections, broken in the case
the ELF file's byte order is not the native byte order.  The
bug is that the variables holding the name and description size
are used (natively) after having been byte-swapped.  The fix is
to calculate sz from them just prior to byte-swapping.

Approved by:	jkoshy@
Obtained from:	Juniper Networks, Inc.
Avoid crdup when possible in kern_accessat.

While here tidy up a little.
Add defines for various FIRST PARTY DMA SEND subcommands.
Virtual machines can easily have more than 16 option ROMs and
when that happens, we happily access our resource array out of
bounds. Make sure we stay within the MAX_ROMS limit.
While here, bump MAX_ROMS from 16 to 32 to minimize the chance
of leaving option ROMs unaccounted for.

Obtained from:	Juniper Networks, Inc.
Reduce nesting in vn_access.

No functional changes.
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR:	189405
Submitted by:	Gabor Simon <gabor.simon75 at gmail.com>
MFC after:	3 days
My previous commit exposed an issue as it fixed a different
issue. lib/atf isn't a prereq_lib, since it isn't required for other
libraries to build. Remove it. The old kludge of always building it
had effectively been retired. Since we don't want to build the
libraries with the tests when we're bootstrapping, invent
MK_TESTS_SUPPORT which normally defaults to the current MK_TESTS
value, except when explicitly defined. Make lib/atf depend on it being
yes. When building the libraries set MK_TESTS to no, and
MK_TESTS_SUPPORT to the current value of MK_TESTS so that later stages
of the build work correctly. This should fix (and does for me)
people's issues with parallel builds racing between lib/atf and
libexec/atf. Since lib/atf is built during the libraries phase, the
race disappears.
Plug unnecessary PRS_NEW check in kern_procctl.

pfind does not return processes in such state.
remove/fix old code for building ipfw and dummynet in userspace
fix spelling of DEFAULT in comments...
Allow overspecification of SYSCTL type in external kernel modules.

PR:		194523
MFC after:	3 days
Actually change the USB_PORT_ROOT_RESET_DELAY definition as stated in
the r241987 commit message, instead of having users locally overriding
the value using tunables in /boot/loader.conf .

Found by:	Adam Parco
Discussed with:	Nick Hibma
Document sort_io_queue sysctls/tunables.

MFC after:	1 week
filedesc assert that table size is at least 3 in fdsetugidsafety

Requested by: kib
Untangle iSCSI authentication code by splitting off the CHAP
implementation.

Reviewed by:	mav@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Whitespace fixes.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Fix ctld(8) to not show the "auth-group <name> not assigned to any target"
warning for auth-groups assigned to a portal-group.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Remove spurious empty line.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Comment out parts about iSER; it's not implemented.

Sponsored by:	The FreeBSD Foundation
Remove misleading statement.  Bump date.

MFC after:	1 month
Sponsored by:	FreeBSD Foundation