]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r295455
bapt [Tue, 16 Feb 2016 22:37:24 +0000 (22:37 +0000)]
MFC r295455

Fix make universe when running with non POSIX/C locales using a locale sensitive
pattern

Approved by: re@ (gjb, marius)

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

8 years agoMFC 295418,295419:
jhb [Tue, 16 Feb 2016 21:36:48 +0000 (21:36 +0000)]
MFC 295418,295419:
Fix hangs or panics when misbehaved kernel threads return from their
main function.

295418:
Mark proc0 as a kernel process via the P_KTHREAD flag.

All other kernel processes have this flag set and all threads in proc0
(including thread0) have the similar TDP_KTHREAD flag set.

295419:
Call kthread_exit() rather than kproc_exit() for a premature kthread exit.

Kernel threads (and processes) are supposed to call kthread_exit() (or
kproc_exit()) to terminate.  However, the kernel includes a fallback in
fork_exit() to force a kthread exit if a kernel thread's "main" routine
returns.  This fallback was added back when the kernel only had processes
and was not updated to call kthread_exit() instead of kproc_exit() when
threads were added to the kernel.

This mistake was particularly exciting when the errant thread belonged to
proc0.  Due to the missing P_KTHREAD flag the fallback did not kick in
and instead tried to return to userland via whatever garbage was in the
trapframe.  With P_KTHREAD set it tried to terminate proc0 resulting in
other amusements.

PR: 204999
Approved by: re (glebius)

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

8 years agoMFC r295497: Update uefi.8 for ZFS and multi device boot support
emaste [Tue, 16 Feb 2016 03:50:56 +0000 (03:50 +0000)]
MFC r295497: Update uefi.8 for ZFS and multi device boot support

Approved by: re (gjb)

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

8 years agodrm/i915: Restore pci_enable_busmaster() call in the init path
dumbbell [Mon, 15 Feb 2016 07:35:40 +0000 (07:35 +0000)]
drm/i915: Restore pci_enable_busmaster() call in the init path

This fixes a GPU hang on i945GM.

While here, merge some minor fixes to DRM core and i915:
  * Remove obsolete drm_agp_*_memory() prototypes
  * Fix comment in drm_fops.c (outisde -> outside)
  * Fix some formatting issues in drm_stub.c (spaces -> tabs)

Approved by: re (marius)
MFC of: r288653, r288952, r293851
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3413

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

8 years agoMFC r295495 - Update leapsecond file in non-chroot environments.
cy [Sun, 14 Feb 2016 23:04:52 +0000 (23:04 +0000)]
MFC r295495 - Update leapsecond file in non-chroot environments.

PR: 207095
Submitted by: madpilot
Approved by: re (marius)

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

8 years agoMFC r295496: Document boot1.efi's handling of /boot.config
emaste [Sun, 14 Feb 2016 22:31:38 +0000 (22:31 +0000)]
MFC r295496: Document boot1.efi's handling of /boot.config

Approved by: re (marius)

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

8 years agoMFC r294598:
kib [Sun, 14 Feb 2016 18:57:40 +0000 (18:57 +0000)]
MFC r294598:
In tty_dealloc(), clear the queues.

Approved by: re (marius)

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

8 years agoMFC r294596:
kib [Sun, 14 Feb 2016 18:17:58 +0000 (18:17 +0000)]
MFC r294596:
Limit the accesses to file' f_advice member to VREG vnodes only.
Recheck that f_advice is not NULL after lock is taken.

Approved by: re (marius)

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

8 years agoMFC r294595:
kib [Sun, 14 Feb 2016 17:21:19 +0000 (17:21 +0000)]
MFC r294595:
When devfs dirent is freed, a vnode might still keep a pointer to it,
apparently.  Interlock and clear the pointer to avoid free memory
dereference.

Approved by: re (marius)

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

8 years agoUpdate stable/10 to BETA2 in preparation for 10.3-BETA2 builds.
marius [Fri, 12 Feb 2016 00:03:39 +0000 (00:03 +0000)]
Update stable/10 to BETA2 in preparation for 10.3-BETA2 builds.

Approved by: re (implicit)

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

8 years agoMerge from current r294767,294769,295408
imp [Thu, 11 Feb 2016 23:43:27 +0000 (23:43 +0000)]
Merge from current    r294767,294769,295408

r294767: Parse command line arguments in loader.fi
r294769: Allow newlines to be treated as whitespace when parsing args
r295408: Implement -P command line option in for EFI booting.

Approved by: re@ (gjb@)

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

8 years agoMFC r295320, r295356 (Partial)
smh [Thu, 11 Feb 2016 22:33:47 +0000 (22:33 +0000)]
MFC r295320, r295356 (Partial)

Fix EFI multi device boot support

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoMFC r294768:
smh [Thu, 11 Feb 2016 17:57:42 +0000 (17:57 +0000)]
MFC r294768:

Process /boot/config and /boot.config during EFI boot

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoFix ia64 build failures in EFI platform
smh [Thu, 11 Feb 2016 17:56:09 +0000 (17:56 +0000)]
Fix ia64 build failures in EFI platform

The MFC of the recent EFI work to stable/10 caused build breakage
under ia64.

It was not apparent that there was EFI code outside the EFI tree as
this is not the case in HEAD, however in stable/10 there is for ia64.

This change does the following:
* Re-enables libefi for ia64 under gcc.
* Adds the ignore for unsupported pragma's when building libefi for ia64.
* Adds the missing parameter to efi_handle_lookup in the ia64 loader.

This is a direct commit as ia64 is no longer supported after 10.x

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoMFC 295174:
jhb [Thu, 11 Feb 2016 17:55:17 +0000 (17:55 +0000)]
MFC 295174:
- Note that devctl(8) will appear in 10.3 first.
- Add missing devctl_set_driver entry to namelist in devlist(3).

Approved by: re (gjb)

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

8 years agoMFC r294795
smh [Thu, 11 Feb 2016 17:34:26 +0000 (17:34 +0000)]
MFC r294795

ixgbe sysctl hardware defaults

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoMFC r295356 (Partial)
smh [Thu, 11 Feb 2016 17:31:17 +0000 (17:31 +0000)]
MFC r295356 (Partial)

Fix EFI platform build failures on arm.armeb

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoMFC r294734, r295093 & r295094 ixgbe fixes
smh [Thu, 11 Feb 2016 16:54:23 +0000 (16:54 +0000)]
MFC r294734, r295093 & r295094 ixgbe fixes

MFC r294734
Fix ixgbe compliation with DBG 1

MFC r295093
Configure ixgbe phy & gbic power

MFC r295094
Fix ixgbe flow control autoneg reporting

Approved by: re (marius)
Sponsored by: Multiplay

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

8 years agoMFC r295467
arybchik [Thu, 11 Feb 2016 16:39:30 +0000 (16:39 +0000)]
MFC r295467

sfxge: implement SIOCGI2C to read information from phy modules

The IOCTL is used by 'ifconfig -v' to show SFP+/QSFP+ information
including inventory information and dianostics (temperature, light
levels, voltage etc).

Reviewed by:    gnn,melifaro
Approved by:    re (gjb)
Sponsored by:   Solarflare Communications, Inc.

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

8 years agoRevert sysctl description change introduced in r295008 to correctly
sbruno [Thu, 11 Feb 2016 16:35:16 +0000 (16:35 +0000)]
Revert sysctl description change introduced in r295008 to correctly
reflect the maximum number of queues supported (8) by this driver.

Submitted by: jwd
Reviewed by: erj
Approved by: re (gjb)
Sponsored by: Intel Corporation and Limelight Networks

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

8 years agoMFC r292674
sbruno [Thu, 11 Feb 2016 16:16:10 +0000 (16:16 +0000)]
MFC r292674
  Update ixgbe(4) to Intel FreeBSD Networking Group version 3.1.13-k.

MFC r292571 and r292697
  Add support for X552 and X550T.

MFC r293334
  Fix SFP module insertion post boot.

MFC r293338
  Fix VF handling of VLANs for Amazon Cloud.

Reviewed by: erj smh ngie jeffrey.e.pieper@intel.com
Approved by: re (marius)
Relnotes: Yes
Sponsored by: Intel Corporation and Limelight Networks
Differential Revision: https://reviews.freebsd.org/D5117

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

8 years agoMFC: r295159, kill foreign VCS files.
sobomax [Thu, 11 Feb 2016 00:27:04 +0000 (00:27 +0000)]
MFC: r295159, kill foreign VCS files.

Approved by: re (marius)

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

8 years agoAdjust initialization of random(9) so it is usable earlier.
jhb [Wed, 10 Feb 2016 18:29:37 +0000 (18:29 +0000)]
Adjust initialization of random(9) so it is usable earlier.

A few existing SYSINITs expect the in-kernel PRNG (random(9)) to be
useable at SI_SUB_RANDOM / SI_ORDER_ANY.  However, the random(4) overhaul
merged for 10.0 performs all of its initialization at SI_SUB_DRIVERS
(since it is tied in with creating the /dev/random character device).

This has changed in HEAD where the random initialization is split such
that the in-kernel random(9) is initialized at SI_SUB_RANDOM and the
supporting bits for userland random(4) (such as /dev/random) are initialized
later.

However, the changes in HEAD are large and invasive.  Instead, this change
is being directly committed to stable/10.

This change moves most of the random(9)/random(4) initialization to
SI_SUB_RANDOM with the exception that the creation of the harvesting kernel
process and the /dev/random character device are deferred to new
SYSINITs that run at SI_SUB_DRIVERS.

This fixes the "random device not loaded; using insecure entropy" message
output during boot on some systems.

PR: 205800
Reviewed by: markm, so@
Approved by: so
Approved by: re (gjb)
Tested by: Mark Saad <nonesuch@longcount.org>

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

8 years agoCatch the EFI loader up to the latest ZFS Boot Environment Menu features
allanjude [Wed, 10 Feb 2016 17:49:22 +0000 (17:49 +0000)]
Catch the EFI loader up to the latest ZFS Boot Environment Menu features

MFC: r294072
  Move init_zfs_bootenv to sys/boot/zfs/zfs.c instead of having a copy in each loader

MFC: r294073
  Connect the ZFS boot environment menu to the UEFI loader

MFC: r295357
  Do not set vfs.root.mountfrom unnecessarily when initializing ZFS BE menu

Approved by: re (marius)
Relnotes: yes
Sponsored by: ScaleEngine Inc.

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

8 years agoMFC r289421, r293037, r294773, and r294884.
cy [Wed, 10 Feb 2016 07:16:17 +0000 (07:16 +0000)]
MFC r289421, r293037, r294773, and r294884.

ntp leap-leapseconds support.

r289421:

Add default leap-seconds file. This should help ntp networks get the
leap second date correct

Updates to the file can be obtained from ftp://time.nist.gov/pub/ or
ftp://tycho.usno.navy.mil/pub/ntp/.

r293037:

Update leap-seconds to latest. This will satisfy the ntpd leap-second
version check.

r294773:

Add support for automatic leap-second file updates.

The working copy of leapfile resides in /var/dbntpd.leap-seconds.list.
/etc/ntp/leap-seconds (periodically updated from ftp://time.nist.gov/pub/
or ftp://tycho.usno.navy.mil/pub/ntp/) contains the master copy should
automatic leapfile updates be disabled (default).

Automatic leapfile updates are fetched from $ntp_leapfile_sources,
defaulting to https://www.ietf.org/timezones/data/leap-seconds.list,
within $ntp_leapfile_expiry_days (default 30 days) from leap-seconds
file expiry. Automatic updates can be enabled by setting
$daily_ntpd_leapfile_enable="YES" in periodic.conf. To avoid congesting
the ntp leapfile source the automatic update randomized by default but
can be disabled through daily_ntpd_avoid_congestion="NO" in
periodic.conf.

r294884:

Allow specification of fetch options for ntp leap-seconds fetch.

Approved by: re (gjb)

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

8 years agoMFC 287442,287537,288944:
jhb [Wed, 10 Feb 2016 00:08:51 +0000 (00:08 +0000)]
MFC 287442,287537,288944:
Fix corruption of coredumps due to procstat notes changing size during
coredump generation.  The changes in r287442 required some reworking
since the 'fo_fill_kinfo' file op does not exist in stable/10.

287442:
Detect badly behaved coredump note helpers

Coredump notes depend on being able to invoke dump routines twice; once
in a dry-run mode to get the size of the note, and another to actually
emit the note to the corefile.

When a note helper emits a different length section the second time
around than the length it requested the first time, the kernel produces
a corrupt coredump.

NT_PROCSTAT_FILES output length, when packing kinfo structs, is tied to
the length of filenames corresponding to vnodes in the process' fd table
via vn_fullpath.  As vnodes may move around during dump, this is racy.

So:

 - Detect badly behaved notes in putnote() and pad underfilled notes.

 - Add a fail point, debug.fail_point.fill_kinfo_vnode__random_path to
   exercise the NT_PROCSTAT_FILES corruption.  It simply picks random
   lengths to expand or truncate paths to in fo_fill_kinfo_vnode().

 - Add a sysctl, kern.coredump_pack_fileinfo, to allow users to
   disable kinfo packing for PROCSTAT_FILES notes.  This should avoid
   both FILES note corruption and truncation, even if filenames change,
   at the cost of about 1 kiB in padding bloat per open fd.  Document
   the new sysctl in core.5.

 - Fix note_procstat_files to self-limit in the 2nd pass.  Since
   sometimes this will result in a short write, pad up to our advertised
   size.  This addresses note corruption, at the risk of sometimes
   truncating the last several fd info entries.

 - Fix NT_PROCSTAT_FILES consumers libutil and libprocstat to grok the
   zero padding.

287537:
Follow-up to r287442: Move sysctl to compiled-once file

Avoid duplicate sysctl nodes.

288944:
Fix core corruption caused by race in note_procstat_vmmap

This fix is spiritually similar to r287442 and was discovered thanks to
the KASSERT added in that revision.

NT_PROCSTAT_VMMAP output length, when packing kinfo structs, is tied to
the length of filenames corresponding to vnodes in the process' vm map
via vn_fullpath.  As vnodes may move during coredump, this is racy.

We do not remove the race, only prevent it from causing coredump
corruption.

- Add a sysctl, kern.coredump_pack_vmmapinfo, to allow users to disable
  kinfo packing for PROCSTAT_VMMAP notes.  This avoids VMMAP corruption
  and truncation, even if names change, at the cost of up to PATH_MAX
  bytes per mapped object.  The new sysctl is documented in core.5.

- Fix note_procstat_vmmap to self-limit in the second pass.  This
  addresses corruption, at the cost of sometimes producing a truncated
  result.

- Fix PROCSTAT_VMMAP consumers libutil (and libprocstat, via copy-paste)
  to grok the new zero padding.

Approved by: re (gjb)

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

8 years agoMFC boot loader path and RBX constant deduplication
emaste [Tue, 9 Feb 2016 22:32:24 +0000 (22:32 +0000)]
MFC boot loader path and RBX constant deduplication

r294765 (imp)

Move all the separate copies of the same strings into paths.h. There's
nothing machine specific about these.

r294765 (imp)

RBX_ defines are in rbx.h, move it there.

r294847 (imp)

Remove static from these two. They slipped through the cracks.

r294925 (imp)

Fix mistake when transitioning to the new defines with ZFS loader. I
hate adding yet another define, but it is the lessor of the evil
choices available. Kill another evil by removing PATH_BOOT3 and
replacing it with PATH_LOADER or PATH_LOADER_ZFS as appropriate.

Approved by: re (gjb)

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

8 years agoAdd missing mergeinfo for MFC of r268227
emaste [Tue, 9 Feb 2016 18:43:52 +0000 (18:43 +0000)]
Add missing mergeinfo for MFC of r268227

Belatedly record the MFC of r268227, committed in stable/10 r293297.

Approved by: re (gjb, blanket)

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

8 years agoMFC r281524 -- add mergeinfo missed in r293347
emaste [Tue, 9 Feb 2016 14:35:23 +0000 (14:35 +0000)]
MFC r281524 -- add mergeinfo missed in r293347

Approved by: re (gjb, blanket)

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

8 years agoMFC r280950: Move the efi loaders to be under sys/boot/efi
emaste [Mon, 8 Feb 2016 20:06:26 +0000 (20:06 +0000)]
MFC r280950: Move the efi loaders to be under sys/boot/efi

In HEAD this was done to support UEFI on arm64. Merging to stable/10 to
facilitate the merging of later UEFI changes.

This is a commit of mergeinfo only, missed in r293297.

Approved by: re (gjb)

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

8 years agoMerge r264915: fix NULL pointer derefernce with special sequence of
glebius [Mon, 8 Feb 2016 17:47:58 +0000 (17:47 +0000)]
Merge r264915: fix NULL pointer derefernce with special sequence of
DIOCADDADDR and DIOCADDRULE.

PR: 206933
Approved by: re (marius)

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

8 years agoMFC r294732:
kib [Mon, 8 Feb 2016 11:18:13 +0000 (11:18 +0000)]
MFC r294732:
Minor fixes for ddb tty-related commands.

Approved by: re (gjb)

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

8 years agoMFC r294735:
kib [Mon, 8 Feb 2016 11:15:36 +0000 (11:15 +0000)]
MFC r294735:
Don't allow opening the callout device when the callin device is already
open (in disguise as the console device).

Approved by: re (gjb)

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

8 years agoMFC r292601,292654:
bz [Mon, 8 Feb 2016 00:07:01 +0000 (00:07 +0000)]
MFC r292601,292654:

  Since r256624 (head) we have been leaking routing table allocations
  on vnet enabled jail shutdown. Call the provided cleanup
  routines for IP versions 4 and 6 to plug these leaks.

  Sponsored by:         The FreeBSD Foundation
  Reviewed by:          gnn
  Differential Revision:https://reviews.freebsd.org/D4530

Approved by: re (gjb)

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

8 years agoMFC r294514:
bz [Sun, 7 Feb 2016 23:42:36 +0000 (23:42 +0000)]
MFC r294514:

  The variable is write once only and not used.
  Recover the vertical space.

  Sponsored by:         The FreeBSD Foundation
  Obtained from:        p4 CH=180830
  Reviewed by:          gnn, hiren
  Differential Revision:https://reviews.freebsd.org/D4898

Approved by: re (marius, gjb)

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

8 years agoMFC r295202:
bz [Sun, 7 Feb 2016 22:53:03 +0000 (22:53 +0000)]
MFC r295202:

 Try to fix a bug introduced in r228623 (head).
 We started to copy the ifa_msghdr as otherwise platforms with strict
 alignment would break.  It is unclear to me if there's also a problem with
 access to the address list following the structure.
 However we never copied the address list after the structure and thus are
 pointing at random memory.  For now just use a pointer to the original
 memory for accessing the address list making it at least work on
 platforms with weak memory access.

 PR:                   195445
 Reported by:          wolfgang lyxys.ka.sub.org
 Tested by:            wolfgang lyxys.ka.sub.org (x86)

Approved by: re (marius)

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

8 years agoMFC r295234:
ume [Sun, 7 Feb 2016 16:51:50 +0000 (16:51 +0000)]
MFC r295234:

  Make sure to enable aliases for SHIFT_JIS.

Approved by: re (marius)

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

8 years agoMFH (r265214, r294333, r294407, r294467): misc prop fixes
des [Sun, 7 Feb 2016 11:38:54 +0000 (11:38 +0000)]
MFH (r265214, r294333, r294407, r294467): misc prop fixes
MFH (r285975, r287143): register mergeinfo for security fixes
MFH (r294497, r294498, r295139): internal documentation
MFH (r294328): upgrade to openssh 6.7p1, re-add libwrap
MFH (r294332): upgrade to openssh 6.8p1
MFH (r294367): update pam_ssh for api changes
MFH (r294909): switch usedns back on
MFH (r294336): upgrade to openssh 6.9p1
MFH (r294495): re-enable dsa keys
MFH (r294464): upgrade to openssh 7.0p1
MFH (r294496): upgrade to openssh 7.1p2

Approved by: re (gjb)
Relnotes: yes

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

8 years agoMFC r295277:
kib [Sun, 7 Feb 2016 09:51:22 +0000 (09:51 +0000)]
MFC r295277:
When matching brand to the ELF binary by notes, try to find a brand
with interpreter name exactly matching one wanted by the binary.

Approved by: re (delphij)

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

8 years agoMFC r295209;
pfg [Sat, 6 Feb 2016 16:58:56 +0000 (16:58 +0000)]
MFC r295209;
Revert r294695; passthrough any extra timestamps to the dinode struct.

The original ext2fs change worked fine on disks formated with default
values, but it was the cause of a regression when inodes are small.
Revert it for now, while we figure out safer ways pass such values,

PR: 206820
Approved by: re

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

8 years agoMFC r294597:
wblock [Sat, 6 Feb 2016 14:03:31 +0000 (14:03 +0000)]
MFC r294597:

Add a standards compliance note for strtok_r

Approved by: re (marius@)

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

8 years agoMFC r294915:
hselasky [Sat, 6 Feb 2016 08:58:10 +0000 (08:58 +0000)]
MFC r294915:
Fix generation of dependency rules for the LinuxKPI, the MLX5 driver
and all of OFED except MLX4[EN/IB].

Sponsored by: Mellanox Technologies
Approved by: re (marius)

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

8 years agoUpdate stable/10 to BETA1 in preparation for 10.3-BETA1 builds, take 2.
marius [Fri, 5 Feb 2016 00:14:24 +0000 (00:14 +0000)]
Update stable/10 to BETA1 in preparation for 10.3-BETA1 builds, take 2.

Approved by: re (implicit)

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

8 years agoUpdate stable/10 to BETA1 in preparation for 10.3-BETA1 builds.
marius [Fri, 5 Feb 2016 00:12:13 +0000 (00:12 +0000)]
Update stable/10 to BETA1 in preparation for 10.3-BETA1 builds.

Approved by: re (implicit)

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

8 years agoMFC: r295133
marius [Thu, 4 Feb 2016 23:56:01 +0000 (23:56 +0000)]
MFC: r295133

As it turns out, one of the more or less recent changes to em(4)
causes watchdog timeouts when using TSO4 at link speeds below
Gigabit, at least with 82573E. So disable the assist automatically
when at lower speeds.

Submitted by: jfv
Approved by: re (kib), erj
Obtained from: D3162

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

8 years agoMFC: r290383,295282,295283
gnn [Thu, 4 Feb 2016 22:53:12 +0000 (22:53 +0000)]
MFC: r290383,295282,295283

Replace the fastforward path with tryforward which does not require a
sysctl and will always be on. The former split between default and
fast forwarding is removed by this commit while preserving the ability
to use all network stack features.

Differential Revision: https://reviews.freebsd.org/D4042
Reviewed by: ae, melifaro, olivier, rwatson
Approved by: re (glebius)
Sponsored by: Rubicon Communications (Netgate)

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

8 years agoMFC: r295074
allanjude [Thu, 4 Feb 2016 15:46:12 +0000 (15:46 +0000)]
MFC: r295074
  The zfsboot (zfs auto mode) part of bsdinstall now supports UEFI

Approved by: re (marius)
Relnotes: yes
Sponsored by: ScaleEngine Inc.

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

8 years agoMFC r293825:
kib [Wed, 3 Feb 2016 15:16:20 +0000 (15:16 +0000)]
MFC r293825:
Switch legacy pty clone handler to use make_dev_s(9).

MFC r294594:
Remove printf only useful for debugging.

Approved by: re (marius)

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

8 years agoMFC r294995:
tuexen [Wed, 3 Feb 2016 14:04:07 +0000 (14:04 +0000)]
MFC r294995:
Always look in the TCP pool.
This fixes issues with a restarting peer when the listening
1-to-1 style socket is closed.

MFC r295021:
Remove debug output which was committed by accident.
Thanks to Oliver Pinter for reporting.

MFC r295069:
Ignore peer addresses in a consistent way also when checking for
new addresses during restart. If this is not done, restart doesn't
work when the local socket is IPv4 only and the peer uses
IPv4 and IPv6 addresses.

MFC r295070:
Don't change the remote UDP encapsulation port for SCTP packets
containing an INIT chunk.

MFC r295072:
Don't allow a remote encapsulation port change during the
SCTP restart procedure.

MFC r295075:
Update the path mtu when turning on/off UDP encapsulation for SCTP.

MFC r295077:
Add missing parentheses. This was reported by ccaughie via GitHub
for the userland stack.

Approved by: re (kib)

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

8 years agoMFC r294311:
kib [Tue, 2 Feb 2016 14:16:07 +0000 (14:16 +0000)]
MFC r294311:
Clear whole XMM register file instead of only XMM0.  Also clear x87
registers.  This brings amd64 on par with i386, providing consistent
initial FPU state.

PR: 206370

MFC r294312:
Use ANSI definitions.  Wrap long line.

MFC r294313:
Adjust i386 comment to match amd64 one after r294311.

Approved by: re (gjb)

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

8 years agoMFC: r294926
allanjude [Tue, 2 Feb 2016 03:08:37 +0000 (03:08 +0000)]
MFC: r294926
  ficl on i386 should cast to unsigned char output to support efi i386

Submitted by: Toomas Soome <tsoome at me.com>
Approved by: re (gjb)

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

8 years agoMFC 278320,278336,278830,285621:
jhb [Mon, 1 Feb 2016 23:07:31 +0000 (23:07 +0000)]
MFC 278320,278336,278830,285621:
Add devctl(8): a utility for manipulating new-bus devices.  Note that
this version does not include the 'suspend' and 'resume' commands
present in HEAD as those depend on larger changes to the suspend and
resume code in the kernel.

278320:
Add a new device control utility for new-bus devices called devctl.  This
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
  requests.  The ioctls use a common 'struct devreq' which is somewhat
  similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string.  This
  string can either by the device's name, or it can be a bus-specific
  address.  (For unattached devices, a bus address is the only way to
  locate a device.)  Bus drivers register an eventhandler to claim
  unrecognized device names that the driver recognizes as a valid address.
  Two buses currently support addresses: ACPI recognizes any device
  in the ACPI namespace via its full path starting with "\" and
  the PCI bus driver recognizes an address specification of
  'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
  strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
  in the PCI bus driver to output a full PCI selector string rather
  than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
  the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
  supported by devctl(3).
- Add a resource_unset_value() function that can be used to remove a
  hint from the kernel environment.  This is used to clear a
  hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
  disabled device.

278336:
Unbreak the build (memchr is explicitly required by devctl(9) after r278320)

278830:
install the man page...

285621:
Fix formatting.

Approved by: re (marius)

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

8 years agoMFC: r295032
marius [Mon, 1 Feb 2016 22:16:41 +0000 (22:16 +0000)]
MFC: r295032

Use '^[>+][^+]' instead of '^[>+]' with grep(1) when filtering the
diff(1) output between two files in "new_only"-mode. Otherwise,
with the default of using unified format a remnant of the header
in the output is the result. This is especially irritating when
the two files differ but the second one is empty, amounting to the
vestige of the header being the only readout.
Reported by: Stefan Haemmerl

Approved by: re (delphij)

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

8 years agoMFC r284539, r284630, r284688, r284877, r285217, r285218,
grehan [Mon, 1 Feb 2016 14:56:11 +0000 (14:56 +0000)]
MFC r284539, r284630, r284688, r284877, r285217, r285218,
    r286837, r286838, r288470, r288522, r288524, r288826,
    r289001

Pull in bhyve bug fixes and changes to allow UEFI booting.
This provides Windows support.

Tested on Intel and AMD with:
  - Arch Linux i386+amd64 (kernel 4.3.3)
  - Ubuntu 15.10 server 64-bit
  - FreeBSD-CURRENT/amd64 20160127 snap
  - FreeBSD 10.2 i386+amd64
  - OpenBSD 5.8 i386+amd64
  - SmartOS latest
  - Windows 10 build 1511'

Huge thanks to Yamagi Burmeister who submitted the patch
and did the majority of the testing.

r284539 - bootrom mem allocation support
r284630 - Add SO_REUSEADDR when starting debug port
r284688 - Fix a regression in "movs" emulation
r284877 - verify_gla() non-zero segment base fix
r285217 - Always assert DCD and DSR in the uart
r285218 - devmem nodes moved to /dev/vmm.io/
r286837 - Add define for SATA Check-Power-Mode
r286838 - Add simple (no-op) SATA cmd emulations
r288470 - Increase virtio-blk indirect descs
r288522 - Firmware guest query interface
r288524 - Fix post-test typo
r288826 - Clean up SATA unimplemented cmd msg
r289001 - Add -l option to specify userboot path

Submitted by: Yamagi Burmeister
Approved by: re (kib)

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

8 years agoDocument SA-16:11.
gjb [Mon, 1 Feb 2016 03:24:38 +0000 (03:24 +0000)]
Document SA-16:11.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC revisions 294861,294863
dteske [Mon, 1 Feb 2016 00:58:07 +0000 (00:58 +0000)]
MFC revisions 294861,294863

r294861: Add `-k' for dpv(3) `keep_tite' config option
r294863: Bump copyright

Approved by: re (gjb)

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

8 years agoMFC revisions 294860,294862,294892-294893,294922
dteske [Mon, 1 Feb 2016 00:44:29 +0000 (00:44 +0000)]
MFC revisions 294860,294862,294892-294893,294922

r294860: Add keep_tite configuration option
r294862: Bump copyrights
r294892: Remove unused function prototype
r294893: Fix a crash if `-D' is used without `-t title'
r294922: Fix fatal warn when compiling under GCC 5.2.0

Approved by: re (marius)

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

8 years agoMFC r295051:
smh [Sun, 31 Jan 2016 02:23:30 +0000 (02:23 +0000)]
MFC r295051:

Fix phy interrupts setup for ixl

Approved by: re (gjb)
Sponsored by: Multiplay

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

8 years agoFix clean target for sys/boot/efi
smh [Sat, 30 Jan 2016 01:27:29 +0000 (01:27 +0000)]
Fix clean target for sys/boot/efi

Fix clean target breakage of sys/boot/efi introduced by r294981
specifically the MFC of r294029 without the related change introduced by
r281114.

This is direct commit to stable/10 as head uses src.opts.mk.

Approved by: re (glebius)
Sponsored by: Multiplay

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

8 years agoMFC r294691:
sobomax [Sat, 30 Jan 2016 00:09:30 +0000 (00:09 +0000)]
MFC r294691:

Fix readpassphrase(3) when it's called with stdin being closed.

Approved by: re (delphij)

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

8 years agoMFC r295006:
bdrewery [Fri, 29 Jan 2016 17:33:37 +0000 (17:33 +0000)]
MFC r295006:

  Fix -include .depend hack from r294370 for headers not in .PATH.

Approved by: re (gjb)

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

8 years agoMFC r294578:
smh [Fri, 29 Jan 2016 09:16:08 +0000 (09:16 +0000)]
MFC r294578:

Fix ix advertise value after media change

Approved by: re (gjb)
Sponsored by: Multiplay

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

8 years agoMFC r294515:
brooks [Thu, 28 Jan 2016 22:57:09 +0000 (22:57 +0000)]
MFC r294515:

Fix the implementations of PSEUDO_NOERROR and PSEUDO.

The PSEUDO* macros should not declare <syscall>, only _<syscall> and
__sys_<syscall>.  This was causing the interposing C wrappers to be
ignored due to link order.

Reviewed by: kib
Obtained from: CheriBSD (4e8e13c90fc6a80e1520de44a6864cfd78b3b56d)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D4097

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

8 years agoMFC r294463:
brooks [Thu, 28 Jan 2016 22:34:29 +0000 (22:34 +0000)]
MFC r294463:

Shift saved floating point registers up in jmp_buf.

sigmask_t is 128-bits so requires two slots.

Obtained from: CheriBSD (93699cb9b6e73980ac369e379cea9772c9494ccc)
Sponsored by: DARPA, AFRL

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

8 years agoMFC r294452:
brooks [Thu, 28 Jan 2016 22:08:42 +0000 (22:08 +0000)]
MFC r294452:

Add a simple manpage for the cfi(4) and associated cfid(4) drivers.

Sponsored by: DARPA, AFRL

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

8 years agoMerge OpenSSL 1.0.1r.
jkim [Thu, 28 Jan 2016 21:42:10 +0000 (21:42 +0000)]
Merge OpenSSL 1.0.1r.

Relnotes: yes

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

8 years agoMFC r294840
hiren [Thu, 28 Jan 2016 21:30:49 +0000 (21:30 +0000)]
MFC r294840

Persist timers TCPTV_PERSMIN and TCPTV_PERSMAX are hardcoded with 5 seconds and
60 seconds, respectively. Turn them into sysctls that can be tuned live. The
default values of 5 seconds and 60 seconds have been retained.

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

8 years agoFixed up version of r294061 that was reverted due to breakage of features
sbruno [Thu, 28 Jan 2016 19:21:01 +0000 (19:21 +0000)]
Fixed up version of r294061 that was reverted due to breakage of features
(netmap) and architectures(i386).  <I'll take the pointyhat on that one>

r283883
-- update to 3.1.0

r283893
-- update SRIOV API changes related to future possible MFC of SRIOV work

r285590
-- Fix ixgbe(4) SRIOV VF initialization bugs

r285591
-- Remove version check for FLOWID

r285592
-- Update netmap support for ixgbe SRIOV VFs.

r286238
-- Fixup MTU zeroing if INET/INET6 are undefined.

Submitted by: kevin bowling <kevin.bowling@kev009.com>
Differential Revision: https://reviews.freebsd.org/D4273

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

8 years agoMFC r293678:
jimharris [Thu, 28 Jan 2016 18:25:55 +0000 (18:25 +0000)]
MFC r293678:

  Update ismt(4) man page to reflect inclusion in upcoming 10.3 release.

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

8 years agoMFC r294068, r294265
smh [Thu, 28 Jan 2016 17:24:40 +0000 (17:24 +0000)]
MFC r294068, r294265

MFC r294068:
Add EFI ZFS boot support

MFC r294265:
Fix broken DPRINTF and wire up EFI_DEBUG so -DEFI_DEBUG to make works.

Relnotes: Yes
Sponsored by: Multiplay

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

8 years agoMFC r281060, r294060, r294291, r294493, r294284:
smh [Thu, 28 Jan 2016 16:52:02 +0000 (16:52 +0000)]
MFC r281060, r294060, r294291, r294493, r294284:

MFC r281060:
Remove an unnecessary space in a printf call

MFC r294060:
Modularise EFI boot loader

MFC r294291 (by andrew):
Reset the filesystem cache

MFC r294493:
Fix EFI UFS caching

MFC r294284 (by emaste):
boot1: correct typo in error message

Sponsored by: Multiplay

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

8 years agoMFC r294506:
smh [Thu, 28 Jan 2016 12:25:27 +0000 (12:25 +0000)]
MFC r294506:

Prevent loader.conf load failure due to unknown console entries

Sponsored by: Multiplay

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

8 years agoMFC r293835:
smh [Thu, 28 Jan 2016 12:23:25 +0000 (12:23 +0000)]
MFC r293835:

Improve non-interactive forth cmd error reporting

Sponsored by: Multiplay

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

8 years agoMFC r286234 (by trasz):
smh [Thu, 28 Jan 2016 12:22:15 +0000 (12:22 +0000)]
MFC r286234 (by trasz):

Fix a problem which made loader(8) load non-kld files twice.

Sponsored by: Multiplay

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

8 years agoMFC r294059:
smh [Thu, 28 Jan 2016 12:15:50 +0000 (12:15 +0000)]
MFC r294059:

Ensure boot fsread correctly probes all partitions

Sponsored by: Multiplay

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

8 years agoMFC r281169, r293724, r293796, r294029, r294041, r294058
smh [Thu, 28 Jan 2016 12:11:42 +0000 (12:11 +0000)]
MFC r281169, r293724, r293796, r294029, r294041, r294058

MFC r281169 (by andrew):
Make global variabled only used in this file static

MFC r294058:
Make common boot file_loadraw name parameter const

MFC r294041:
Remove unused reg param from fdt_fixup_memory

MFC r293724:
Enable warnings in EFI boot code

MFC r293796:
Fix typo in libefi.c

MFC r294029:
Only build EFI components on supported compilers

Sponsored by: Multiplay

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

8 years agoMFC r293831:
smh [Thu, 28 Jan 2016 12:03:30 +0000 (12:03 +0000)]
MFC r293831:

Increase efiboot.img size used in ISO creation

This changes mkisoimages-uefi.sh instead of mkisoimages.sh in r293831 due to
refactor not MFC'ed.

Sponsored by: Multiplay

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

8 years agoMFC r293350:
kib [Thu, 28 Jan 2016 09:25:15 +0000 (09:25 +0000)]
MFC r293350:
Convert sys/cam to use make_dev_s().

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

8 years agoMFC r293349:
kib [Thu, 28 Jan 2016 09:22:38 +0000 (09:22 +0000)]
MFC r293349:
Convert tty common code to use make_dev_s().

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

8 years agoMFC r293346:
kib [Thu, 28 Jan 2016 09:18:12 +0000 (09:18 +0000)]
MFC r293346:
Provide yet another KPI for cdev creation, make_dev_s(9).

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

8 years agoMFC r294040:
smh [Thu, 28 Jan 2016 08:51:00 +0000 (08:51 +0000)]
MFC r294040:

Prevent bogus compiler in ZFS boot code.

Sponsored by: Multiplay

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

8 years agoMFC r294968:
smh [Thu, 28 Jan 2016 08:49:21 +0000 (08:49 +0000)]
MFC r294968:

Allow file specific user-specified flag overrides.

Sponsored by: Multiplay

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

8 years agoMFC r294695:
pfg [Thu, 28 Jan 2016 02:19:47 +0000 (02:19 +0000)]
MFC r294695:
ext2fs: passthrough any extra timestamps to the dinode struct.

In general we don't trust any of the extended timestamps unless the
EXT2F_ROCOMPAT_EXTRA_ISIZE feature is set. However, in the case where
we freshly allocated a new inode the information is valid and it is
better to pass it along instead of leaving the value undefined.

This should have no practical effect but should reduce the amount of
garbage if EXT2F_ROCOMPAT_EXTRA_ISIZE is set, like in cases where the
filesystem is converted from ext3 to ext4.

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

8 years agoMFC r294530: Add STB_GNU_UNIQUE symbol binding definition
emaste [Thu, 28 Jan 2016 01:45:15 +0000 (01:45 +0000)]
MFC r294530: Add STB_GNU_UNIQUE symbol binding definition

Red Hat created STB_GNU_UNIQUE to handle certain special cases relating
to dynamically loading C++ DSOs[1].

We don't (currently) have support for STB_GNU_UNIQUE, but ought to
reserve the value in ELFNN_ST_BIND. This will also be used by an
upcoming ELF Tool Chain import.

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

8 years agoMFC r294749:
jamie [Thu, 28 Jan 2016 00:41:07 +0000 (00:41 +0000)]
MFC r294749:

  Allow the (old rc-style) exec_afterstart jail parameters to start numbering
  at 0, like exec_prestart and the others do.  Make param0 optional, i.e.
  still look for param1.

PR: 142973

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

8 years agoMFC r294565: sem: Don't free nameinfo that is still in list when open()
jilles [Wed, 27 Jan 2016 22:56:04 +0000 (22:56 +0000)]
MFC r294565: sem: Don't free nameinfo that is still in list when open()
fails.

This bug could be reproduced easily by calling sem_open() with O_CREAT |
O_EXCL on a semaphore that is already open in the process. The struct
sem_nameinfo would be freed while still in sem_list and later calls to
sem_open() or sem_close() could access freed memory.

PR: 206396

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

8 years ago- Add an entry for the SIIG Cyber 2SP1 PCIe adapter, which is based
marius [Wed, 27 Jan 2016 22:50:04 +0000 (22:50 +0000)]
- Add an entry for the SIIG Cyber 2SP1 PCIe adapter, which is based
  on an Oxford Semiconductor OX16PCI954 but uses only two ports and
  a non-default clock rate. [1]
- Add entries for the more prominent members of the Digi International
  Neo series, which are based on Exar PCI chips.
  Tested by: Patrick Powell
- Mark some unused parameters as such.
- Fix style/whitespace

PR: 176407 [1]

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

8 years agoMFC: r294362, r294414, r294753
marius [Wed, 27 Jan 2016 22:48:04 +0000 (22:48 +0000)]
MFC: r294362, r294414, r294753

- Fix tty_drain() and, thus, TIOCDRAIN of the current tty(4) incarnation
  to actually wait until the TX FIFOs of UARTs have be drained before
  returning. This is done by bringing the equivalent of the TS_BUSY flag
  found in the previous implementation back in an ABI-preserving way.
  Reported and tested by: Patrick Powell
- Make the code consistent with itself style-wise and bring it closer
  to style(9).
- Mark unused arguments as such.
- Make the ttystates table const.

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

8 years agoSync the e1000 drivers with what's in head as of r294327, modulo parts
marius [Wed, 27 Jan 2016 22:31:08 +0000 (22:31 +0000)]
Sync the e1000 drivers with what's in head as of r294327, modulo parts
that don't apply to stable/10 (driver API, if_inc_counter(), RSS changes
etc.) and modulo r287465 (which reportedly breaks igb(4)), i. e. assorted
fixes and improvements only:

o MFC r267385 (partial):
  - Don't compare bus_dma map pointers for static DMA allocations against
    NULL to determine if bus_dmamap_unload() or bus_dmamem_free() should be
    called. Instead, check the associated bus and virtual addresses.
  - Don't clear static DMA maps to NULL.
o MFC r284933:
  Delete the refernce to VLAN handling being disabled by default. This is
  no longer the case. [1]
o MFC r285639:
  Add an adapter CORE lock in the DDB hook em_dump_queue to avoid WITNESS
  panic in em_init_locked() while debugging.
o MFC r285879:
  - Remove unused txd_saved.
  - Intialize txd_upper, txd_lower and txd_used at declaration.
o MFC r286162:
  Free mbufs when busdma loading fails.
o MFC r286829:
  Add capability to disable CRC stripping as it breaks IPMI/BMC capabilities
  on certain adatpers. [2]
o MFC r286831: [3]
  - Increase EM_MAX_SCATTER to 64 such that the size of em_xmit()::
    segs[EM_MAX_SCATTER] doesn't get overrun by things like NFS that can
    and do shove more than 32 segs when being used with em(4) and TSO4.
  - Update tso handling code in em_xmit() with update from jhb@
  - Set if_hw_tsomax, if_hw_tsomaxsegcount and if_hw_tsomaxsegsize to
    appropriate values.
  - Define a TSO workaround "magic" number of 4 that is used to avoid an
    alignment issue in hardware.
  - Change a couple of integer values that were used as booleans to actual
    bool types.
  - Ensure that em_enable_intr() enables the appropriate mask of interrupts
    and not just a hardcoded define of values.
o MFC r286832:
  e1000/if_lem.c bump to 1.1.0
o MFC r286833:
  Bump all copywrite dates to 2015.
o MFC r287112:
  Style/whitespace cleanup in shared/common code.
o MFC r293331:
  - Switch em(4) to the extended RX descriptor format.
  - Split rxbuffer and txbuffer apart to support the new RX descriptor
    format structures. Move rxbuffer manipulation to em_setup_rxdesc() to
    unify the new behavior changes.
  - Add a RSSKEYLEN macro for help in generating the RSSKEY data structures
    in the card.
  - Change em_receive_checksum() to process the new rxdescriptor format
    status bit.
o MFC r293332:
  Disable the reuse of checksum offload context descriptors in the case
  of multiple queues in em(4). Document errata in the code.
o MFC r293854:
  Given that em(4), lem(4) and igb(4) hardware doesn't require the
  alignment guarantees provided by m_defrag(9), use m_collapse(9)
  instead for performance reasons.
  While at it, sanitize the statistics softc members, i. e. retire
  unused ones and add SYSCTL nodes missing for actually used ones.

PR: 118693 [1], 161277 [2], 195078 [3], 199174 [3], 200221 [3]

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

8 years agoMFC 283933: Add comments
dteske [Wed, 27 Jan 2016 15:19:48 +0000 (15:19 +0000)]
MFC 283933: Add comments

r283933: Indicate where the flag for later abort" originates.

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

8 years agoMFC r294319:
hselasky [Wed, 27 Jan 2016 15:01:08 +0000 (15:01 +0000)]
MFC r294319:
Fix an issue where the network adapter could be left in down state
after changing the HW LRO sysctl when previously in up state.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4941

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

8 years agoMFC r294318:
hselasky [Wed, 27 Jan 2016 14:59:22 +0000 (14:59 +0000)]
MFC r294318:
Add clarifying comment about CQE zipping.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4940

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

8 years agoMFC r294317:
hselasky [Wed, 27 Jan 2016 14:57:37 +0000 (14:57 +0000)]
MFC r294317:
Declare local variables at top of function.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4939

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

8 years agoMFC r294314:
hselasky [Wed, 27 Jan 2016 14:55:41 +0000 (14:55 +0000)]
MFC r294314:
Allow RX and TX pause frames to be set through ifconfig.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4817

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

8 years agoDocument SA-16:08, SA-16:09, SA-16:10.
gjb [Wed, 27 Jan 2016 14:12:10 +0000 (14:12 +0000)]
Document SA-16:08, SA-16:09, SA-16:10.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r294694:
tuexen [Wed, 27 Jan 2016 14:01:21 +0000 (14:01 +0000)]
MFC r294694:
sctp_sendx() needs to provide the assoc_id back.

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

8 years agoMFC r294688:
tuexen [Wed, 27 Jan 2016 13:59:27 +0000 (13:59 +0000)]
MFC r294688:
sctp_sendv() needs to fill in the association id on return.

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

8 years agoMFC r294900:
delphij [Wed, 27 Jan 2016 07:28:55 +0000 (07:28 +0000)]
MFC r294900:

Implement AT_SECURE properly.

AT_SECURE auxv entry has been added to the Linux 2.5 kernel to pass a
boolean flag indicating whether secure mode should be enabled. 1 means
that the program has changes its credentials during the execution.
Being exported AT_SECURE used by glibc issetugid() call.

Submitted by: imp, dchagin
Security: FreeBSD-SA-16:10.linux
Security: CVE-2016-1883

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

8 years agoMFC 293617,294669: Minor fixes
dteske [Wed, 27 Jan 2016 06:38:03 +0000 (06:38 +0000)]
MFC 293617,294669: Minor fixes

r293617: Fix improper duration for f_dialog_pause() API
r294669: Fix a typo in a comment

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

8 years agoMFC r289797: dpv(1) merged to stable/10 before release/10.2.0
dteske [Wed, 27 Jan 2016 06:30:23 +0000 (06:30 +0000)]
MFC r289797: dpv(1) merged to stable/10 before release/10.2.0

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