]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r258902:
markj [Fri, 24 Oct 2014 17:24:29 +0000 (17:24 +0000)]
MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

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

9 years agoMFC 272763:
markj [Thu, 23 Oct 2014 18:48:43 +0000 (18:48 +0000)]
MFC 272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

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

9 years agoMFC r271692:
markj [Wed, 22 Oct 2014 23:55:06 +0000 (23:55 +0000)]
MFC r271692:
Fix a typo.

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

9 years agoDocument the following security advisories:
gjb [Tue, 21 Oct 2014 21:44:24 +0000 (21:44 +0000)]
Document the following security advisories:
 FreeBSD-SA-14:20.rtsold
 FreeBSD-SA-14:21.routed
 FreeBSD-SA-14:22.namei
 FreeBSD-SA-14:23.openssl

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

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

9 years agoBump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
gjb [Tue, 21 Oct 2014 21:37:53 +0000 (21:37 +0000)]
Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

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

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

9 years agoMFC r272833 (des):
delphij [Tue, 21 Oct 2014 21:11:25 +0000 (21:11 +0000)]
MFC r272833 (des):

Two more places where login_setcryptfmt() defaults to MD5 were missed
in r252688.

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

9 years agoMFC r272830 (des):
delphij [Tue, 21 Oct 2014 21:09:54 +0000 (21:09 +0000)]
MFC r272830 (des):

Change the hardcoded default back from SHA512 to DES.

This will become EN-14:11.crypt.

PR: 192277

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

9 years agoFix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]
delphij [Tue, 21 Oct 2014 20:20:17 +0000 (20:20 +0000)]
Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

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

9 years agoMFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
dteske [Tue, 21 Oct 2014 18:31:08 +0000 (18:31 +0000)]
MFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
270283, 270505, 270954, 270989, 273067, and 273068:
r253175: Introduce f_which() to common.subr
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954
r273067: Fix awk(1) asorti() implementation to work when called in a loop
r273068: Rename awk(1) asorti() to prevent conflict with GNU awk(1)

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

9 years agoMFC r271287:
brooks [Tue, 21 Oct 2014 16:44:03 +0000 (16:44 +0000)]
MFC r271287:

Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>

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

9 years agoMFC: r273034
brueffer [Tue, 21 Oct 2014 13:09:52 +0000 (13:09 +0000)]
MFC: r273034

Add one more AMD Kaveri APU device ID.

Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>

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

9 years agoMFC r272731:
yongari [Tue, 21 Oct 2014 04:55:55 +0000 (04:55 +0000)]
MFC r272731:
  Document newly added controller AR816x/AR817x.

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

9 years agoMFC r272730,273018:
yongari [Tue, 21 Oct 2014 04:50:07 +0000 (04:50 +0000)]
MFC r272730,273018:
  Add support for QAC AR816x/AR817x Gigabit/Fast Ethernet controllers.
  These controllers seem to have the same feature of AR813x/AR815x and
  improved RSS support(4 TX queues and 8 RX queues).  alc(4) supports
  all hardware features except RSS.  I didn't implement RX checksum
  offloading for AR816x/AR817x just because I couldn't get
  confirmation from the Vendor whether AR816x/AR817x corrected its
  predecessor's RX checksum offloading bug on fragmented packets.
  This change adds supports for the following controllers.
   o AR8161 PCIe Gigabit Ethernet controller
   o AR8162 PCIe Fast Ethernet controller
   o AR8171 PCIe Gigabit Ethernet controller
   o AR8172 PCIe Fast Ethernet controller
   o Killer E2200 Gigabit Ethernet controller

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

9 years agoMFC r272729,272732:
yongari [Tue, 21 Oct 2014 01:49:07 +0000 (01:49 +0000)]
MFC r272729,272732:
  Add new quirk PCI_QUIRK_MSI_INTX_BUG to pci(4).
  QAC AR816x/E2200 controller has a silicon bug that MSI interrupt
  does not assert if PCIM_CMD_INTxDIS bit of command register is set.

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

9 years agoMFC r272721:
yongari [Tue, 21 Oct 2014 01:15:43 +0000 (01:15 +0000)]
MFC r272721:
  Fix a long standing bug in MAC statistics register access.  One
  additional register was erroneously added in the MAC register set
  such that 7 TX statistics counters were wrong.

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

9 years agoMFC r271073:
yongari [Mon, 20 Oct 2014 07:27:34 +0000 (07:27 +0000)]
MFC r271073:
  Do not blindly announce 1000baseT half-duplex capability in
  autonegotiation.  Some controllers like cgem(4) do not support
  half-duplex at gigabit speeds.

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

9 years agoMFC 272668:
jhb [Fri, 17 Oct 2014 19:55:12 +0000 (19:55 +0000)]
MFC 272668:
Properly set the timeout in a query_state.  The global query_timeout
configuration value is an integer count of seconds, it is not a timeval.
Using memcpy() to copy a timeval from it put garbage into the tv_usec
field.

PR: 194025

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

9 years agoMFC 272449:
jhb [Fri, 17 Oct 2014 19:28:21 +0000 (19:28 +0000)]
MFC 272449:
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().

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

9 years agoMFC 272182:
jhb [Fri, 17 Oct 2014 15:29:47 +0000 (15:29 +0000)]
MFC 272182:
Don't panic if a resource is allocated twice.  Instead, print a warning and
fail the allocation request.  Allocations of "reserved" resources such as
PCI BARs already fail the request instead of panic'ing in this case.

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

9 years agoMerge OpenSSL 0.9.8zc.
jkim [Wed, 15 Oct 2014 20:28:31 +0000 (20:28 +0000)]
Merge OpenSSL 0.9.8zc.

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

9 years agoMake kern.nswbuf tunable from loader.
jkim [Wed, 15 Oct 2014 19:46:49 +0000 (19:46 +0000)]
Make kern.nswbuf tunable from loader.

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

9 years agoProperly cast nswbuf to long.
jkim [Wed, 15 Oct 2014 19:41:51 +0000 (19:41 +0000)]
Properly cast nswbuf to long.

Note this is a direct commit to stable/9 because head was fixed with vmem(9)
commit (r252330).

Reported by: John Hood (jhood at niksun dot com)

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

9 years agoMFC r272756: Properly report 12Gbps connection rate.
mav [Wed, 15 Oct 2014 08:04:43 +0000 (08:04 +0000)]
MFC r272756:  Properly report 12Gbps connection rate.

Reviewed by: kadesai, slm

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

9 years agoMFC r272749:
ae [Wed, 15 Oct 2014 05:22:48 +0000 (05:22 +0000)]
MFC r272749:
  Fix comment.

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

9 years agoMFC r272487:
ae [Sat, 11 Oct 2014 06:22:57 +0000 (06:22 +0000)]
MFC r272487:
  Add UUID of FreeBSD slice to GPT scheme.

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

9 years agoMFC r272762: Correct scale factor for T terabyte suffix
emaste [Sat, 11 Oct 2014 01:00:37 +0000 (01:00 +0000)]
MFC r272762: Correct scale factor for T terabyte suffix

PR: 194250

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

9 years agoMFC r271879:
pfg [Fri, 10 Oct 2014 23:19:34 +0000 (23:19 +0000)]
MFC r271879:
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

PR: 193147

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

9 years agoMFC r238273 (by hrs):
ae [Thu, 9 Oct 2014 03:07:13 +0000 (03:07 +0000)]
MFC r238273 (by hrs):
  Remove "prefer_source" address selection option.  FreeBSD has had an
  implementation of RFC 3484 for this purpose for a long time and "prefer_source"
  was never implemented actually.  ND6_IFF_PREFER_SOURCE macro is left intact.

MFC r271307:
  Add the ability to set `prefer_source' flag to an IPv6 address.
  It affects the IPv6 source address selection algorithm (RFC 6724)
  and allows override the last rule ("longest matching prefix") for
  choosing among equivalent addresses. The address with `prefer_source'
  will be preferred source address.

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

9 years agoRevert botched r272755.
brooks [Wed, 8 Oct 2014 16:35:57 +0000 (16:35 +0000)]
Revert botched r272755.

PR: 193447

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

9 years agoMFC r272273, r272387, r272443, r272533 :
pfg [Wed, 8 Oct 2014 16:32:01 +0000 (16:32 +0000)]
MFC r272273, r272387, r272443, r272533 :

Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR: 137307
Relnotes: yes

MFC r272441 :

strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by: ache

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

9 years agoMFC r271287:
brooks [Wed, 8 Oct 2014 15:58:28 +0000 (15:58 +0000)]
MFC r271287:

Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>

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

9 years agoMFC 272550:
bryanv [Wed, 8 Oct 2014 04:11:05 +0000 (04:11 +0000)]
MFC 272550:

  Remove stray uma_mtx lock/unlock in zone_drain_wait()

  Callers of zone_drain_wait(M_WAITOK) do not need to hold (and were not)
  the uma_mtx, but we would attempt to unlock and relock the mutex if we
  had to sleep because the zone was already draining. The M_NOWAIT callers
  may hold the uma_mtx, but we do not sleep in that case.

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

9 years agoMFC r265232
asomers [Tue, 7 Oct 2014 15:21:20 +0000 (15:21 +0000)]
MFC r265232

Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed.
The thread that is destroying the lagg has already set sc->sc_psc=NULL when
the "ifconfig -am" thread gets to lacp_req().  It tries to dereference
sc->sc_psc and panics.  The solution is for lacp_req() to check the value of
sc->sc_psc.  If NULL, harmlessly return an lacp_opreq structure full of
zeros.  Full details in GNATS.

PR:   189003

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

9 years agoMFC r235978: device_add_child: protect against child device with no
avg [Tue, 7 Oct 2014 13:47:54 +0000 (13:47 +0000)]
MFC r235978: device_add_child: protect against child device with no
driver but fixed unit number

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

9 years agoMFC r246531: zfs: update comments about zfid_long_t to match the FreeBSD definitions
avg [Tue, 7 Oct 2014 13:42:34 +0000 (13:42 +0000)]
MFC r246531: zfs: update comments about zfid_long_t to match the FreeBSD definitions

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

9 years agoMFC r271609: add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages
avg [Tue, 7 Oct 2014 13:37:10 +0000 (13:37 +0000)]
MFC r271609: add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages

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

9 years agoMFC r261894: move devd rules for zfs events into a separate file
avg [Tue, 7 Oct 2014 13:30:42 +0000 (13:30 +0000)]
MFC r261894: move devd rules for zfs events into a separate file

... and fix stale event types

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

9 years agoMFC r261893: zfs.8: fix garbled options in a sample zfs send -R command line
avg [Tue, 7 Oct 2014 13:24:07 +0000 (13:24 +0000)]
MFC r261893: zfs.8: fix garbled options in a sample zfs send -R command line

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

9 years agoMFC r261892: zpool.8: fix typo in option description of labelclear command
avg [Tue, 7 Oct 2014 13:20:28 +0000 (13:20 +0000)]
MFC r261892: zpool.8: fix typo in option description of labelclear command

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

9 years agoMFC r272176:
ae [Tue, 7 Oct 2014 08:19:21 +0000 (08:19 +0000)]
MFC r272176:
  Keep list of lagg ports sorted by if_index.

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

9 years agoMake external NFS clients know when files have their attributes changed and
araujo [Tue, 7 Oct 2014 06:00:32 +0000 (06:00 +0000)]
Make external NFS clients know when files have their attributes changed and
avoid cache the file's state indefinitely. The va_filerev is what is sent
to the client as the "change" attribute, the client is periodically fetching
the attributes and without this option the attribute remains as some garbage
value.

Phabric: D905
Reported by: Kevin Buhr <buhr@asaurus.net>
Reviewed by: rmacklem, delphij
Approved by: delphij
Obtained from: r272467
Sponsored by: QNAP Systems Inc.

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

9 years agoAccount for the mapped pages in the kernel_pmap on x86 in
kib [Mon, 6 Oct 2014 18:15:13 +0000 (18:15 +0000)]
Account for the mapped pages in the kernel_pmap on x86 in
pmap_mapdev().  The pmap_unmapdev() on stable/9 calls pmap_remove() to
clear the range, which decrements kernel_pmap.pm_stats.resident_count.
Misaccounting causes miscellaneous failures, since pmap_remove() tests
the counter for zero and does nothing.

This is direct commit to stable/9, since HEAD and stable/10 use vmem
and do not utilize pmap_remove() etc.

Based on the submission by: Kohji Okuno <okuno.kohji at jp.panasonic.com>

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

9 years agoMFC r272480:
hselasky [Mon, 6 Oct 2014 06:07:02 +0000 (06:07 +0000)]
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

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

9 years agoMFC r272349, r272422 and r272479:
hselasky [Mon, 6 Oct 2014 05:58:16 +0000 (05:58 +0000)]
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

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

9 years agoMFC r271424,r272579:
bdrewery [Mon, 6 Oct 2014 00:31:31 +0000 (00:31 +0000)]
MFC r271424,r272579:

    - Add $netif_ipexpand_max to specify the upper limit for the number of
      addresses generated by an address range specification.  The default value
      is 2048.  This can be increased by setting $netif_ipexpand_max in
      rc.conf.
    - Bump .Dd missed in r271424

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

9 years agoRevert r272532,
pfg [Sat, 4 Oct 2014 20:35:07 +0000 (20:35 +0000)]
Revert r272532,

It broke the build.

Pointyhat: me

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

9 years agoMFC r271467, r271468:
pfg [Sat, 4 Oct 2014 17:49:36 +0000 (17:49 +0000)]
MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with: fsx

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

9 years agoMFC r272288,272289:
delphij [Thu, 2 Oct 2014 18:32:17 +0000 (18:32 +0000)]
MFC r272288,272289:

When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from: OpenBSD (r1.63 millert)

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

9 years agoMFC r271720:
bdrewery [Thu, 2 Oct 2014 18:12:18 +0000 (18:12 +0000)]
MFC r271720:

  If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a
  FILE* leak in getbounds().

PR: 192032

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

9 years agoMFC r272028:
bdrewery [Thu, 2 Oct 2014 18:09:31 +0000 (18:09 +0000)]
MFC r272028:

  Make it more explicitly clear that -t will not change filename.

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

9 years agoMFC r271321:
bdrewery [Thu, 2 Oct 2014 18:05:53 +0000 (18:05 +0000)]
MFC r271321:

  Don't cross mount boundaries when cleaning tmp files.

Relnotes: yes

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

9 years agoMFC r270183:
bdrewery [Thu, 2 Oct 2014 18:00:16 +0000 (18:00 +0000)]
MFC r270183:

  Avoid showing stale errors when nmount(2) fails.

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

9 years agoMFC r272389:
delphij [Thu, 2 Oct 2014 17:42:02 +0000 (17:42 +0000)]
MFC r272389:

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR: 194071

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

9 years agoMFC r272254:
hselasky [Thu, 2 Oct 2014 16:48:05 +0000 (16:48 +0000)]
MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

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

9 years agoMFC r272253:
hselasky [Thu, 2 Oct 2014 16:43:37 +0000 (16:43 +0000)]
MFC r272253:

Regenerate usb.conf

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

9 years agoMFC r268376 (imp):
gjb [Wed, 1 Oct 2014 16:18:59 +0000 (16:18 +0000)]
MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFH (r272280, r272281, r272348): allow use with null user and rhost
des [Wed, 1 Oct 2014 10:29:14 +0000 (10:29 +0000)]
MFH (r272280, r272281, r272348): allow use with null user and rhost

PR: 83099 193927

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

9 years agoMFC Clang debug info crash fix
emaste [Tue, 30 Sep 2014 15:10:40 +0000 (15:10 +0000)]
MFC Clang debug info crash fix

271282: Merge Clang debug info crash fix rev 200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

  200798:

    Simplify testcase from r200797 some more.

  200805:

    Further simplify r200797 and add an explanatory comment.

PR: 193347

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

9 years agoMFC r271433: Add clang patch corresponding to r271432
emaste [Tue, 30 Sep 2014 15:07:06 +0000 (15:07 +0000)]
MFC r271433: Add clang patch corresponding to r271432

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

9 years agoMFC r271432: Merge upstream Clang rev 205331 debuginfo crash fix:
emaste [Tue, 30 Sep 2014 15:05:27 +0000 (15:05 +0000)]
MFC r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

    Debug info: fix a crash when emitting IndirectFieldDecls, which were
    previously not handled at all.
    rdar://problem/16348575

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

9 years agoMFC r272137:
wblock [Sun, 28 Sep 2014 23:22:46 +0000 (23:22 +0000)]
MFC r272137:

Revised to better point to release notes and errata, security advisories,
and be more specific about the -questions list.

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

9 years agoMFC r271874:
hselasky [Sat, 27 Sep 2014 18:10:52 +0000 (18:10 +0000)]
MFC r271874:
Add new USB IDs.

PR: 193775

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

9 years agoMFC r272059:
mav [Sat, 27 Sep 2014 08:35:23 +0000 (08:35 +0000)]
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC rev. 258705 to stable/9:
thomas [Fri, 26 Sep 2014 19:13:13 +0000 (19:13 +0000)]
MFC rev. 258705 to stable/9:

Define NANO_MAKE (single threaded MAKE) and use it for installworld,
installkernel, and distribution.

Required in order to fix regression introduced by MFC rev. 265894
for kern/162736, since that change depends on this one.

PR: 193808

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

9 years agoMFC r271953:
hselasky [Thu, 25 Sep 2014 05:59:12 +0000 (05:59 +0000)]
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.

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

9 years agoMFC r236360,r236361:
pjd [Tue, 23 Sep 2014 22:27:34 +0000 (22:27 +0000)]
MFC r236360,r236361:

- Add missing system calls.
- Remove rmdirat system call which doesn't exist.

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

9 years agoMFC r271577:
pjd [Tue, 23 Sep 2014 21:56:15 +0000 (21:56 +0000)]
MFC r271577:

Fix descriptors leak.

PR: bin/191002
Reported by: Ryan Steinmetz
Submitted by: mjg

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

9 years agoAfter r266269 unbreak the pc98 builds by only building the xenhvm
bz [Tue, 23 Sep 2014 19:32:42 +0000 (19:32 +0000)]
After r266269 unbreak the pc98 builds by only building the xenhvm
module for amd64 and i386 but not for pc98.

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

9 years ago This is a direct commit rather than an MFC of r271744.
bz [Tue, 23 Sep 2014 16:06:28 +0000 (16:06 +0000)]
 This is a direct commit rather than an MFC of r271744.

   Re-gen after r272029 (r271743 in head) implementing most of
   timer_{create,settime,gettime,getoverrun,delete}.

Sponsored by: DARPA/AFRL

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

9 years agoMFC r269669,271743:
bz [Tue, 23 Sep 2014 16:03:57 +0000 (16:03 +0000)]
MFC r269669,271743:

 Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant
 and export the kern_ version needed by an upcoming linuxolator change.

 Implement most of timer_{create,settime,gettime,getoverrun,delete}
 for amd64/linux32.  Fix the entirely bogus (untested) version from
 r161310 for i386/linux using the same shared code in compat/linux.

 Reviewed by: jhb
 Differential Revision: D784
Sponsored by: DARPA/AFRL

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

9 years agoMFC r271728
davidcs [Mon, 22 Sep 2014 19:42:18 +0000 (19:42 +0000)]
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message.

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

9 years agoMFC r271727
davidcs [Mon, 22 Sep 2014 19:37:03 +0000 (19:37 +0000)]
MFC r271727
remove clean option from Makefile

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

9 years agoMFC r271726
davidcs [Mon, 22 Sep 2014 19:28:21 +0000 (19:28 +0000)]
MFC r271726
remove clean option from Makefile

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

9 years agoMFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
jilles [Sat, 20 Sep 2014 12:59:28 +0000 (12:59 +0000)]
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
characters.

This was not broken on architectures such as ARM where char is unsigned.

Also, remove the first non-portable character from the output. POSIX does
not require this, and printing the first byte may yield an invalid byte
sequence with UTF-8.

PR: 165988
Reported by: Nicolas Rachinsky
Relnotes: yes

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

9 years agoMFC r271492:
hselasky [Sat, 20 Sep 2014 08:01:50 +0000 (08:01 +0000)]
MFC r271492:
Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.

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

9 years agoMFC r265092, except for the ATF bits.
asomers [Thu, 18 Sep 2014 22:12:52 +0000 (22:12 +0000)]
MFC r265092, except for the ATF bits.

Fix a panic when removing an IP address from an interface, if the same address
exists on another interface.  The panic was introduced by change 264887, which
changed the fibnum parameter in the call to rtalloc1_fib() in
ifa_switch_loopback_route() from RT_DEFAULT_FIB to RT_ALL_FIBS.  The solution
is to use the interface fib in that call.  For the majority of users, that will
be equivalent to the legacy behavior.

PR:             kern/189089

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

9 years agoMFC r264905 and r266860, except for the ATF parts.
asomers [Thu, 18 Sep 2014 21:48:05 +0000 (21:48 +0000)]
MFC r264905 and r266860, except for the ATF parts.

r266860
Fix unintended KBI change from r264905.  Add _fib versions of
ifa_ifwithnet() and ifa_ifwithdstaddr()  The legacy functions will call the
_fib() versions with RT_ALL_FIBS, preserving legacy behavior.

sys/net/if_var.h
sys/net/if.c
        Add legacy-compatible functions as described above.  Ensure legacy
        behavior when RT_ALL_FIBS is passed as fibnum.

sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/net/route.c
sys/net/rtsock.c
sys/netinet6/nd6.c
        Call with _fib() functions if we must use a specific fib, or the
        legacy functions otherwise.

r264905
Fix subnet and default routes on different FIBs on the same subnet.

These two bugs are closely related.  The root cause is that ifa_ifwithnet
does not consider FIBs when searching for an interface address.

sys/net/if_var.h
sys/net/if.c
        Add a fib argument to ifa_ifwithnet and ifa_ifwithdstadddr.  Those
        functions will only return an address whose interface fib equals the
        argument.

sys/net/route.c
        Update calls to ifa_ifwithnet and ifa_ifwithdstaddr with fib
        arguments.

sys/netinet/in.c
        Update in_addprefix to consider the interface fib when adding
        prefixes.  This will prevent it from not adding a subnet route when
        one already exists on a different fib.

sys/net/rtsock.c
sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/netinet6/nd6.c
        Add RT_DEFAULT_FIB arguments to ifa_ifwithdstaddr and ifa_ifwithnet.
        In some cases it there wasn't a clear specific fib number to use.
        In others, I was unable to test those functions so I chose
        RT_DEFAULT_FIB to minimize divergence from current behavior.  I will
        fix some of the latter changes along with PR kern/187553.

PR:             kern/187550
PR:             kern/187552

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

9 years agoMFC r264887, except for the ATF test change. Also,
asomers [Thu, 18 Sep 2014 20:53:36 +0000 (20:53 +0000)]
MFC r264887, except for the ATF test change.  Also,
ifa_switch_loopback_route doesn't exist in stable/9, so the relevant change
to that function went into in_scrubprefix instead.

Fix host and network routes for new interfaces when net.add_addr_allfibs=0

sys/net/route.c
        In rtinit1, use the interface fib instead of the process fib.  The
        latter wasn't very useful because ifconfig(8) is usually invoked
        with the default process fib.  Changing ifconfig(8) to use setfib(2)
        would be redundant, because it already sets the interface fib.

tests/sys/netinet/fibs_test.sh
        Clear the expected ATF failure

sys/net/if.c
        Pass the interface fib in calls to rtrequest1_fib and rtalloc1_fib

sys/netinet/in.c
sys/net/if_var.h
        Add a fibnum argument to ifa_switch_loopback_route, a subroutine of
        in_scrubprefix.  Pass it the interface fib.

PR:             kern/187549

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

9 years agoMFC 263779, except for the ATF test change.
asomers [Thu, 18 Sep 2014 20:17:42 +0000 (20:17 +0000)]
MFC 263779, except for the ATF test change.

Correct ARP update handling when the routes for network interfaces are
restricted to a single FIB in a multifib system.

Restricting an interface's routes to the FIB to which it is assigned (by
setting net.add_addr_allfibs=0) causes ARP updates to fail with "arpresolve:
can't allocate llinfo for x.x.x.x".  This is due to the ARP update code hard
coding it's lookup for existing routing entries to FIB 0.

sys/netinet/in.c:
        When dealing with RTM_ADD (add route) requests for an interface, use
        the interface's assigned FIB instead of the default (FIB 0).

sys/netinet/if_ether.c:
        In arpresolve(), enhance error message generated when an
        lla_lookup() fails so that the interface causing the error is
        visible in logs.

PR:             kern/167947

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

9 years agoMFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.
des [Thu, 18 Sep 2014 14:31:18 +0000 (14:31 +0000)]
MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

PR: 83099

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

9 years agoMFC r271644:
mav [Thu, 18 Sep 2014 09:22:37 +0000 (09:22 +0000)]
MFC r271644:
Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives.

Submitted by: Sean Fagan <sef@ixsystems.com>

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

9 years agoMFC r271597:
dim [Thu, 18 Sep 2014 05:40:33 +0000 (05:40 +0000)]
MFC r271597:

Pull in r217410 from upstream llvm trunk (by Bob Wilson):

  Set trunc store action to Expand for all X86 targets.

  When compiling without SSE2, isTruncStoreLegal(F64, F32) would return
  Legal, whereas with SSE2 it would return Expand. And since the Target
  doesn't seem to actually handle a truncstore for double -> float, it
  would just output a store of a full double in the space for a float
  hence overwriting other bits on the stack.

  Patch by Luqman Aden!

This should fix clang -O0 on i386 assigning garbage to floats, in
certain scenarios.

PR: 187437
Submitted by: cebd@gmail.com
Obtained from: http://llvm.org/viewvc/llvm-project?rev=217410&view=rev

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

9 years agoMFC 270830:
jhb [Wed, 17 Sep 2014 18:17:18 +0000 (18:17 +0000)]
MFC 270830:
When anouncing link state changes on an 802.11 interface with a vap,
announce the change on the vap's ifnet instead of the main ifnet.  This
matches the behavior of other wireless drivers in the tree and allows the
default devd configuration to correctly start dhclient automatically after
an ndis wireless device associates.

Approved by: re (marius for 10)

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

9 years agoMFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.
mav [Wed, 17 Sep 2014 14:20:04 +0000 (14:20 +0000)]
MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.

This device reports RAID subclass, but appears to be AHCI compatible.

Submitted by: Yuri Perejilin <yuri@rivera.ru>

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

9 years agoMFC r271604, r271616:
mav [Wed, 17 Sep 2014 14:07:40 +0000 (14:07 +0000)]
MFC r271604, r271616:
Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses.

This change fixes transient performance drops in some of my benchmarks,
vanishing as soon as I am trying to collect any stats from the scheduler.
It looks like reordered access to those variables sometimes caused loss of
IPI_PREEMPT, that delayed thread execution until some later interrupt.

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

9 years agoDocument SA-14:19
gjb [Tue, 16 Sep 2014 19:25:27 +0000 (19:25 +0000)]
Document SA-14:19

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

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

9 years agoBump __FreeBSD_version after SA-14:19.tcp
gjb [Tue, 16 Sep 2014 19:20:06 +0000 (19:20 +0000)]
Bump __FreeBSD_version after SA-14:19.tcp

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

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

9 years agoFix Denial of Service in TCP packet processing.
delphij [Tue, 16 Sep 2014 09:49:11 +0000 (09:49 +0000)]
Fix Denial of Service in TCP packet processing.

Security: FreeBSD-SA-14:19.tcp

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

9 years agoMFC r270160:
lstewart [Tue, 16 Sep 2014 00:04:38 +0000 (00:04 +0000)]
MFC r270160:

Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload
panic easily triggered by running "sysctl -a" after unload.

Reported and tested by: Grenville Armitage <garmitage@swin.edu.au>

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

9 years agoMFC: r271286
brueffer [Mon, 15 Sep 2014 12:44:44 +0000 (12:44 +0000)]
MFC: r271286

Use the right constants in comparisons.  This is currently a nop, as
MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD.

Reviewed by:    Eric Joyner @ Intel
Approved by:    re (kib)

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

9 years agoMFC r271434:
wblock [Sun, 14 Sep 2014 03:01:18 +0000 (03:01 +0000)]
MFC r271434:

Update motd, clarifying the information and adding pointers to other
resources.

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

9 years agoMFC r271149:
pfg [Sat, 13 Sep 2014 18:34:56 +0000 (18:34 +0000)]
MFC r271149:
Apply known workarounds for less modern MacBooks.

The legacy USB circuit tends to give trouble on older MacBooks.
While the original report covered MacBook4, extend the fix
preemptively for the newer MacBookPro4 too.

PR: 191693
Reviewed by: emaste

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

9 years agoMFC r271407: Extend UNMAP blacklist on all STEC SSD models.
mav [Sat, 13 Sep 2014 17:14:01 +0000 (17:14 +0000)]
MFC r271407: Extend UNMAP blacklist on all STEC SSD models.

None of existing STEC devices need UNMAP or even support it well,
having many limitations and even hanging sometimes executing those
commands. New devices that may use UNMAP going to be released under
HGST name.

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

9 years agoMFC r271163, r271196:
mav [Sat, 13 Sep 2014 16:07:43 +0000 (16:07 +0000)]
MFC r271163, r271196:
Invert AHCI_Q_NOBSYRES quirk meaning, waiting for readiness by default.

I gave up to update list of Marvell chips that require this quirk.
The final nail was growing number of PCIe/M.2 SSDs where Marvell
chips have PCI IDs of different vendors.

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

9 years agoMFC r269228:
mav [Sat, 13 Sep 2014 15:20:49 +0000 (15:20 +0000)]
MFC r269228:
Add support for SOUND_MIXER_INFO IOCTL, used by gstreamer.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC r269583:
bz [Sat, 13 Sep 2014 13:36:17 +0000 (13:36 +0000)]
MFC r269583:

   Provide -o vers= support for mount_nfs.

   Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version.
   OSX (these days), Solaris, and Linux use -o vers=<2,3,4>.

   With the upcoming autofs support we can make a lot of (entrerprisy) setups
   getting mount options from LDAP just work by providing -o vers= compatibility.

   Reviewed by: wblock, bjk (man page), rmacklem, emaste
Sponsored by: DARPA,AFRL
PR: 192379

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

9 years agoMFC r268854
davidcs [Fri, 12 Sep 2014 18:20:35 +0000 (18:20 +0000)]
MFC r268854
  Initiate error recovery stats fail to update after 3 retries.
  Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
  panic only if ECORE_STOP_ON_ERROR is defined.

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

9 years agoMFC r271284:
gjb [Fri, 12 Sep 2014 17:07:19 +0000 (17:07 +0000)]
MFC r271284:
  Include the gssapi_krb5 library in KRB5_LDFLAGS.

PR: 156245
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271331:
gjb [Fri, 12 Sep 2014 17:02:13 +0000 (17:02 +0000)]
MFC r271331:
  Change how the recommended mailing list to track is
  added to the footer of the release/doc/ pages by
  moving a hard-coded value (that is subject to human
  error to change) to release.ent where other values
  are regularly changed, and adding parsing logic to
  release.xsl.

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

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

9 years agoMFC 270823,270825,270829:
jhb [Wed, 10 Sep 2014 15:45:18 +0000 (15:45 +0000)]
MFC 270823,270825,270829:
Use a unit number allocator to provide suitable st_dev and st_ino values
for POSIX shared memory descriptors.  The implementation is similar to
that used for pipes.

Approved by: re (gjb for 10)

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