Welcome to 5.2_STABLE.
Pull up following revision(s) (requested by nakayama in ticket #1823):
	sys/fs/smbfs/smbfs_node.h: revision 1.13 via patch
	sys/fs/smbfs/smbfs_node.c: revision 1.48 via patch
	sys/fs/smbfs/smbfs_node.c: revision 1.49 via patch
	sys/fs/smbfs/smbfs_vnops.c: revision 1.83 via patch
	sys/fs/smbfs/smbfs_vnops.c: revision 1.84 via patch
Various fixes for smbfs:
- Implement NGONE to fix caching issue described in PR kern/25070.
  Mostly taken from FreeBSD r125637.
- Revert revision 1.70 of smbfs_vnops.c to fix setattr to opened
  direcotry.  In case of SMB_CAP_NT_SMBS, NOPEN is set after
  smbfs_smb_ntcreatex() call.  If NOPEN is set in front, it will
  immediately return by condition at do_open label.
- In smbfs_close(), call smbfs_smb_close() and drop NOPEN bit in
  the case of direcotry.  Otherwise smbfs_rmdir() fails when the
  directory was opened.
- Remove redundant vput() before vgone().
- Avoid unnecessary mutex_exit() in smbfs_node_alloc().
- Set NGONE bit to from-name vnode to invalidate the smbnode cache.
Pull up following revision(s) (requested by nakayama in ticket #1824):
	sys/netsmb/smb.h: revision 1.20
	sys/fs/smbfs/smbfs_vnops.c: revision 1.85
	sys/fs/smbfs/smbfs_subr.c: revision 1.16
	sys/fs/smbfs/smbfs_smb.c: revision 1.44
	sys/fs/smbfs/smbfs_subr.h: revision 1.21
Improve smbfs timestamp handling.
Don't round timestamp to 2 seconds resolution if the server
supports the CAP_INFOLEVEL_PASSTHRU capability.
Pull up following revision(s) (requested by nakayama in ticket #1825):
	sys/netsmb/smb_rq.c: revision 1.32
	sys/netsmb/smb_iod.c: revision 1.31
	sys/netsmb/smb_iod.c: revision 1.32
	sys/netsmb/smb_iod.c: revision 1.33
	sys/netsmb/smb_iod.c: revision 1.34
	sys/netsmb/smb_iod.c: revision 1.35
Do not call callout_stop() unless the structure was previoulsy
initialised for a non null timeout.
Do initialise the callout when fetching a new request structure from
the pool, not when starting the timer. Likewise, destroy the callout
when giving back the item to the pool.
Send data for as long as there is new data available.  Otherwise
there was a danger of smb_iod_recvall() blocking, hence releasing
the kernel lock, new data creeping into the queue, and a wakeup
being missed (well, there's still a race, but since it's theoretical
enough for me to never have encountered it, I'll rather solve it
by periodic wakeups).
defensive programming: wake up iod thread once a second "just in case"
add comment to previous stating periodic wakeups can be nuked
once smb is mpsafe.
Pull up following revision(s) (requested by msaitoh in ticket #1826):
	sys/dev/lockstat.c: revision 1.16
Fix off by one.
Pull up following revision(s) (requested by msaitoh in ticket #1827):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.
Apply patch (requested by msaitoh in ticket #1827):
	sys/external/isc/atheros_hal/dist/ah_eeprom_v14.c: patch
Fix off by one read.
Pull up following revision(s) (requested by matt in ticket #1829):
	sys/compat/netbsd32/netbsd32_fs.c: revision 1.64
Fix inverted error check.
Pull up following revision(s) (requested by msaitoh in ticket #1830):
	sys/dev/usb/ubsa_common.c: revision 1.9
Fix off by one read error.
Pull up following revision(s) (requested by msaitoh in ticket #1831):
	sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
Pull up following revision(s) (requested by msaitoh in ticket #1832):
	sbin/sysctl/sysctl.c: revision 1.149 via patch
Add missing free() in error path.
Pull up following revision(s) (requested by msaitoh in ticket #1833):
	usr.bin/netstat/bpf.c: revision 1.11
Fix memory leak.
apply patch(s) (requested by sborrill in ticket #1834):
	sys/arch/i386/conf/XEN2_DOMU: patch
	sys/arch/amd64/conf/XEN3_DOMU: patch
Add drvctl to Xen DOMU kernels
Pull up following revision(s) (requested by riastradh in ticket #1837):
	sbin/fsck_ffs/pass1.c: revision 1.50
Show pass1 SIGINFO output on stderr like other passes, not on stdout.
Pull up following revision(s) (requested by taca in ticket #1839):
	etc/namedb/root.cache: revision 1.17
D.ROOT-SERVERS.NET changes IPv4 address.
Pull up following revision(s) (requested by apb in ticket #1838):
	gnu/dist/grep/src/grep.c: revision 1.14
	gnu/dist/grep/src/ansi2knr.c: revision 1.2
	gnu/dist/grep/src/search.c: revision 1.4
	gnu/dist/grep/src/dfa.c: revision 1.3
	gnu/dist/grep/lib/getopt.c: revision 1.2
	gnu/dist/grep/lib/regex.c: revision 1.2
Change several int variables to size_t, ssize_t, or ptrdiff_t.
This should fix the bug described in CVE-2012-5667 when an input
line is so long that its length cannot be stored in an int
variable.
This change to NetBSD's version of GNU grep 2.5.1 (licenced under
GPLv2) was made without direct reference to any code licenced
under GPLv3.
Thanks to Ignatios Souvatzis for looking at GPLv3-derived
patches and describing the problem in general terms.  Thanks to
pkgsrc/devel/coccinelle for helping me find places where int
variables were used to store the results from pointer arithmetic
or strlen().  Thanks to Martin Husemann for testing.
tickets 1823-1839
Pull up following revision(s) (requested by tron in ticket #1836):
	lib/librefuse/refuse.c: revision 1.96 via patch
FUSE seems to allow short writes without errors but PUFFS doesn't. Work
around this by returning ENOSPC in case of a short write to avoid protocol
errors. This change is based on problem analysis provided by Antti Kantee.
This fixes PR lib/45129 by myself.
ticket 1836
Pull up following revision(s) (requested by plunky in ticket #1835):
	sys/dev/bluetooth/bthidev.c: revision 1.23 via patch
	sys/dev/bluetooth/bthidev.c: revision 1.24 via patch
	usr.sbin/btdevctl/btdevctl.8: revision 1.8 via patch
	sys/dev/bluetooth/btmagic.c: revision 1.4 via patch
	sys/dev/bluetooth/btmagic.c: revision 1.5 via patch
when no link-mode is specified, explicitly set a mode of (int)0
otherwise l2cap_setmode() will fail during connection setup
for bthidev.c, this fixes a problem with Microsoft Wedge Touch
mouse (which may not be able to authenticate)
for btmagic.c, include this fix in case somebody tries that
related to PR/47286
increase some diagnostics
add a comment pointing out that the link-mode may need to be
changed manually, for devices which cannot authenticate
for PR/47286