MFC r246370:
  Remove reference to the rlist code from comments, and fix a typo visible
  in the resulted change.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r240696, r240698, r240740

Allow zfs jail and zfs unjail to use both jailnames and jailid


git-svn-id: svn://svn.freebsd.org/base/stable/9@246723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246341:
  Rework jumbo frame handling.  QAC confirmed that the controller
  requires 8 bytes alignment on RX buffer.  Given that non-jumbo
  frame works on any alignments I guess this DMA limitation for RX
  buffer could be jumbo frame specific one.  Also I'm not sure
  whether this DMA limitation is related with 64bit DMA.  Previously
  age(4) disabled 64bit DMA addressing due to silent data corruption.
  So we may need more testing on re-enabling 64bit DMA in future.

  While I'm here, change mbuf chaining algorithm to use fixed sized
  buffer and force software checksum if controller reports length
  error. According to QAC, RFD is not updated at all for jumbo frame
  so it works just like alc(4) controllers.  This change also added
  alignment fixup for strict alignment architectures.  Because I'm
  not aware of any non-x86 machines that use age(4) controllers it's
  just for completeness at this moment.

  Wit this change, jumbo frame should work with age(4).


git-svn-id: svn://svn.freebsd.org/base/stable/9@246724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246412:
  Prezero the acl structure which is to be copied to usermode, to avoid
  leakage of the previous content of padding and unitialized fields.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246116:
Reduce default shift used to calculate the max frequency for the TSC
timecounter to 1, and correspondingly increase the precision of the
gettimeofday(2) and related functions in the default configuration.

MFC r246212:
Remove the (shift > 0) condition when selecting the get_timecount()
implementation.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246117:
Rework the __vdso_* symbols attributes to only make the symbols weak,
but use normal references instead of weak. This makes the statically
linked binaries to use fast gettimeofday(2) by forcing the linker to
resolve references and providing the neccessary functions.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246397:
Make sure that all mouse buttons are released when clients
using /dev/consolectl close. This fixes a problem where if
a USB mouse is detached while a button is pressed, that
button is never released.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246421 and r246454:
Add support for buttons on USB audio devices,
like Volume Up, Volume Down and Mute.

Reviewed by:  mav @


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

In the setfacl(1) manual page, make it clear that for NFSv4 ACLs,
one should really use -a and -x instead of -m.

MFC r246558:

Improve description of the "-m" option to setfacl(1).

MFC r246559:

Fix NFSv4 permission description in setfacl(1) manual page: the 'D'
means delete_child, not delete.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
partial MFC of rev=245362:
enable building virtio devices into static kernels.

I think the 'files.*' entries should be improved (also in HEAD) because
bringing up a vtnet device now requires 3 entries in your kernel config:
"device virtio, device virtio_pci, device vtnet"

but i'll leave the fix to a future commit.

This is also the reason not to enable the device in GENERIC kernels now.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r240355, r239372, r246258;

ext2fs:	general cleanups.

- Remove unused extern declarations in fs.h
- Correct comments in ext2_dir.h
- Several panic() messages showed wrong function names.
- Remove commented out stray line in ext2_alloc.c.
- Remove the unused macro EXT2_BLOCK_SIZE_BITS() and the then
  write-only member e2fs_blocksize_bits from struct m_ext2fs.
- Remove the unused macro EXT2_FIRST_INO() and the then write-only
  member e2fs_first_inode from struct m_ext2fs.
- Remove EXT2_DESC_PER_BLOCK() and the member e2fs_descpb from
  struct m_ext2fs.
- Remove the unused members e2fs_bmask, e2fs_dbpg and
  e2fs_mount_opt from struct m_ext2fs
- Correct harmless off-by-one error for fspath in ext2_vfsops.c.
- Remove the unused and broken macros EXT2_ADDR_PER_BLOCK_BITS()
  and EXT2_DESC_PER_BLOCK_BITS().
- Remove the !_KERNEL versions of the EXT2_* macros.

Submitted by:	Christoph Mallon

To ease the ease bringing this change I also brought this changes:
- Fix typo.
- Fix style nit.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246892 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r246296, r246298, r246346;

crunchide: support non-custom elf object layout.
crunchgen: Permit use of alternative linkers.
crunchide: Put e_shnum into a local variable.	[1]

Submitted by:	Pete Chou
Reviewed by:	Christoph Mallon [1]


git-svn-id: svn://svn.freebsd.org/base/stable/9@246895 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246636:
Remove the ia64-specific code fragment, which effect is more cleanly
done by the call to trans_prot() function a line before.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244734: test(1): Document == alias for =.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245961 r245962 r245963.

MFC r245961:
  When the 'R' flag is used with a newsyslog.conf entry, some fields of
  the corresponding struct sigwork_entry were left uninitialized,
  potentially causing an early return from do_sigwork(). Ensure that these
  fields are initialized, and handle the 'R' flag properly in
  do_sigwork().

MFC r245962:
  Ensure that newsyslog -n prints the correct message for a rotation rule
  that uses the 'R' flag.

MFC r245963:
  Rename the run_cmd field to sw_runcmd to make it consistent with the
  other fields in struct sigwork_entry.

Approved by:	emaste (co-mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245075:
  Fix a segfault when bsdgrep -i is given an empty pattern string.

Approved by:	emaste (co-mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246715:
Eliminate the PC_CURTHREAD symbol and load the current thread's
thread structure pointer atomically from r13 (the pcpu pointer)
for the current CPU/core.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246630:
  Add bootcamp support to the loader.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246658: Cross-reference vfs_unbusy(9).


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

Fix undefined behaviour in usr.bin/mail/util.c.

Reported by:	deeptech71@gmail.com


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