MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies.

This is "make tinderbox" clean.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r264467:

Take into account when zpool history block grows exceeding 128KB in zpool(8)
and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in
spa_history_create_obj()).

PR:		bin/186574
Submitted by:	Andrew Childs <lorne cons org nz> (with changes)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC uftdi(4) driver changes...
  r264010: Support speeds up to 12mbaud on newer chips.
  r264031: Use 2K IO buffers for improved throughput.
  r264149: Add ioctl(2) calls to access bitbang, MPSSE, CPU_FIFO,
           and other modes.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r264800: fixes for problems found by Coverity scan...
  - Get transmit loop more in line with the other serial drivers.
  - Add a comment about FTDI and ZLPs.
  - Correctly check odditiy of baud rate divisor.
  - Correct IOCTL handling for "error" and "event" char.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r264018: update list of supported FTDI chips.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261819 & r262242: Actually validate the header of a loaded dtb file.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262326 (white space) and r262327 (fdt_addr).

This change was supposed to be whitespace only, but a functional change
snuck in, as follows:

  Look for both fdtaddr and fdt_addr env var names.  Grepping the u-boot
  source shows that board vendors seem to be about evenly split on this.
  The added lines were:

    /* Board vendors use both fdtaddr and fdt_addr names.  Grrrr. */

    if (s == NULL)
        s = ub_env_get("fdt_addr");


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262337: Allow the boot device to be choosen by a u-boot env variable.

  If a "loaderdev=<device>" env variable is set and the named device
  exists, it is used.  If the device doesn't exist, fall back to the
  historic "probe" loop that prefers disk devices over network devices.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262340, r262345, r262347, find and load an appropriate dtb file.

The search order for a usable dtb in fdt_setup_fdtp() is now

 - A dtb loaded with an explicit "load -t dtb" command.
 - A dtb already loaded into memory somehow[*] and pointed to by fdt_to_load.
 - A dtb in the memory pointed to by the u-boot env vars fdtaddr or fdt_addr.
 - A file named by the u-boot env vars fdtfile or fdt_file.
 - A static dtb compiled into the kernel.

 * Presumably by some arch-specific command or code.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262664, r262694:

  Prevent fdt data loaded from a file from overwriting the kernel environment,
  by having uboot_autoload() do the fdt setup (which may load a file) rather
  than waiting until we're actually in the process of launching the kernel.

  As part of making this happen...
   - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when
     MK_FDT is set.
   - Make fdt_setup_fdtb() public.
   - Declare public fdt_whatever() functions in a header instead of using
     scattered extern decls in .c files.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262666: exit with code 0xbadab1 if the u-boot API support is missing.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r263052, r263124, r263265, r263267...  Enhance loaderdev env var.

Enhance the mechanism that lets you configure the ubldr boot device by
setting the u-boot environment variable loaderdev=.  It used to accept only
'disk' or 'net'.  Now it allows specification of unit, slice, and partition
as well.  In addition to the generic 'disk' it also accepts specific
storage device types such as 'mmc' or 'sata'.

If there isn't a loaderdev env var, the historical behavior is maintained.
It will use the first storage device it finds, or a network device if
no working storage device exists.

99% of the work on this was done by Patrick Kelsey, but I made some
changes, so if anything goes wrong, blame me.

(Indeed, the 3 followup commits fixed things I got wrong on the first.)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r264436:
Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain the
first address after the end of the map entry and should therefore be
excluded.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265073 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r262775:
Log the name of the file that we failed to open rather than an
uninitialized buffer.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r265015:
Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel
LynxPoint USB 3.0 controllers found in MacBookPro 2013's.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265078 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix devfs rules not applied by default for jails.

Fix OpenSSL use-after-free vulnerability.

Fix TCP reassembly vulnerability.

Security:	FreeBSD-SA-14:07.devfs
Security:	CVE-2014-3001
Security:	FreeBSD-SA-14:08.tcp
Security:	CVE-2014-3000
Security:	FreeBSD-SA-14:09.openssl
Security:	CVE-2010-5298


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265122 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r265046

Fix ZIO reordering issue which could cause data loss / corruption.

Sponsored by:	Multiplay


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265143 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r264581, r264744:

Various style(9) fixes and typos in printf, grep, sort and patch.

#define should be followed by a tab.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@265160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r258705,r258709,r263140,r263184,r263185,r263186,r263187,r263188,
r263189,r263190,r263192,r263193,r263287,r263288,r263890,r264281,
r264655,r264656,r264856,r264857,r264858,r264859,r264860,r264861,
r264891,r264892,r264909

Catch up on all the referenced changes in -current, in brief:

r258705 | n_hibma | Use NANO_PMAKE for build, but not install
r258709 | mr | pkgng goo + bootstrap
r263140 | glebius | Axe IPX.
r263184 | imp | Fix build with spaces in names.
r263185 | imp | Make pcengines config files compile again.
r263186 | imp | Use UFS2 by default, but allow fallback to UFS1
r263187 | imp | Print an error message when we exit out early.
r263188 | imp | Sometimes only copy MBR when backing via swap
r263189 | imp | Update save_cfg
r263190 | imp | Be more explicit about setting SRCCONF to /dev/null
r263192 | imp | Rely on default UFS type
r263193 | imp | Remove TARGET_BIG_ENDIAN. It's no longer relevant.
r263287 | bdrewery | pkg(8) has no limits
r263288 | bdrewery | Remove comment meant for removal in r263287
r263890 | imp | Up default media size to 1GB.
r264281 | imp | Ignore .hg and .git files
r264655 | imp | rm -x for safety
r264656 | imp | new example: dhcpd derived from FreeNAS/BSDRP
r264856 | imp | Override the parallel make target to use all CPUs.
r264857 | imp | No need for true here, remove it.
r264858 | imp | NANO_PKG_META_BASE
r264859 | imp | stylize umount hack
r264860 | imp | switch dhcpd to pkg(8).
r264861 | imp | CR and CR0 added from dhcpd
r264891 | imp | Try to alwaays use () for functions
r264892 | imp | bash whines about r264857, revert
r264909 | imp | Move back to {} for functions that need global effects


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