MFC r262991:

Correct a typo in nlm_find_host_by_addr(): the intention of the
code is to give "<unknown>" rather than comparing the buffer
against it.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@263782 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262501:

Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $2a$ format of password
but we will migrate to the new format once the format is formally
finalized.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@263784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r263423:
Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@263801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r263121

Re-format the license to conform to our BSD license template as much
as possible.  This does not change the wording in any way.

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.  While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.

Reviewed by:    imp, emaste, eadler


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@263834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR:             153801
Submitted by:   Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by:      Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by:  jhb, peter


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@263837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC of 263901, tzdata2014b

 - Update antartica.
 - Comments about historical data for Hawaii.
 - Update details for Crimea on 30 March
 - Move location data Simferopol.


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