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.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid crdup when possible in kern_accessat.

While here tidy up a little.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f