]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoAlways return pathname in dl_iterate_phdr's dlpi_name, as Linux does
emaste [Fri, 14 Nov 2014 21:52:31 +0000 (21:52 +0000)]
Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does

Linux LD_ITERATE_PHDR(3):
    The dlpi_name field is a null-terminated string giving the
    pathname from which the shared object was loaded.

That functionality is much more useful than returning just the short
name.

Update dl_iterate_phdr(3) to follow r272842

MFC of r272842 and r272848

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

9 years agoUpdate the FreeBSD versions in the stable/10 errata file.
gjb [Fri, 14 Nov 2014 21:12:28 +0000 (21:12 +0000)]
Update the FreeBSD versions in the stable/10 errata file.

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

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

9 years agoMFC r274383:
delphij [Fri, 14 Nov 2014 18:30:20 +0000 (18:30 +0000)]
MFC r274383:

Test errno against EEXIST as well.

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

9 years agoMFC r272717:
trasz [Fri, 14 Nov 2014 10:56:33 +0000 (10:56 +0000)]
MFC r272717:

Remove call to access(2) which didn't serve any purpose, and make it more
tolerant to errors.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273107:
trasz [Fri, 14 Nov 2014 10:53:55 +0000 (10:53 +0000)]
MFC r273107:

Make automount(8)/automountd(8) treat percent sign as a valid part
of path.  It's useful for spaces encoded as %20 as msdosfs labels.

Submitted by: glebius@

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

9 years agoMFC r273123:
trasz [Fri, 14 Nov 2014 10:05:53 +0000 (10:05 +0000)]
MFC r273123:

Silence down a warning that doesn't provide any useful information unless
debug is enabled.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274251:
kib [Fri, 14 Nov 2014 09:51:21 +0000 (09:51 +0000)]
MFC r274251:
Add DEV_MODULE_ORDERED().

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

9 years agoMFC r274206:
mav [Fri, 14 Nov 2014 00:25:10 +0000 (00:25 +0000)]
MFC r274206:
Synchronize medium rotation rate in legacy Rigid Disk Drive Geometry mode
page with modern Block Device Characteristics VPD page.

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

9 years agoMFC: 272906
gnn [Thu, 13 Nov 2014 21:58:42 +0000 (21:58 +0000)]
MFC: 272906

Change the PF hash from Jenkins to Murmur3.  In forwarding tests
this showed a conservative 3% incrase in PPS.

Original Differential Revision: https://reviews.freebsd.org/D461
Submitted by: des
Reviewed by: emaste

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

9 years agoMFC r264852
smh [Thu, 13 Nov 2014 16:45:25 +0000 (16:45 +0000)]
MFC r264852

Silence compiler warning

Sponsored by: Multiplay

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

9 years agoMFC r260800:
smh [Thu, 13 Nov 2014 16:40:15 +0000 (16:40 +0000)]
MFC r260800:
Fix a regression introduced in r237618

MFC r260801:
Re-work r260800 to include other signals which start with 'I'
such as ILL, INFO etc.

Sponsored by: Multiplay

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

9 years agoMFC r274193:
ae [Thu, 13 Nov 2014 13:08:46 +0000 (13:08 +0000)]
MFC r274193:
  When mode isn't explicitly specified (wildcard) and inner protocol isn't
  IPv4 or IPv6, assume it is the transport mode.

Sponsored by: Yandex LLC

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

9 years agoMFC r273904:
ae [Thu, 13 Nov 2014 13:05:31 +0000 (13:05 +0000)]
MFC r273904:
  Use in_localip() instead of handmade implementation.

Sponsored by: Yandex LLC

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

9 years agoMFC r271328:
np [Wed, 12 Nov 2014 20:37:23 +0000 (20:37 +0000)]
MFC r271328:

Whitespace nit.

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

9 years agoMFC r273615:
np [Wed, 12 Nov 2014 20:24:14 +0000 (20:24 +0000)]
MFC r273615:

cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

S2curity:

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

9 years agoMFC r273280:
np [Wed, 12 Nov 2014 20:07:43 +0000 (20:07 +0000)]
MFC r273280:

cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.

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

9 years agoMFC r272190:
np [Wed, 12 Nov 2014 19:53:35 +0000 (19:53 +0000)]
MFC r272190:

cxgbe(4): explicitly set various if_hw_tso* values.

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

9 years agoMFC r274081: Fix residual copy/paste in r274080.
mav [Tue, 11 Nov 2014 17:18:51 +0000 (17:18 +0000)]
MFC r274081: Fix residual copy/paste in r274080.

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

9 years agoMFC r274080: Improve error handling around duplicate lun and port enable.
mav [Tue, 11 Nov 2014 17:17:41 +0000 (17:17 +0000)]
MFC r274080: Improve error handling around duplicate lun and port enable.

This fixes kernel panic if port enabled twice and then disabled.

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

9 years agoMFC r274253: Fix LUN resize broken by r272911 commit.
mav [Tue, 11 Nov 2014 17:14:35 +0000 (17:14 +0000)]
MFC r274253: Fix LUN resize broken by r272911 commit.

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

9 years agoMFC r272936:
mav [Tue, 11 Nov 2014 17:13:03 +0000 (17:13 +0000)]
MFC r272936:
Update isp_tgt_map and send new arrival notification if target that departed
earlier has returned.  Previously that code worked only once, confusing CTL.

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

9 years agoMFC r274100:
kib [Tue, 11 Nov 2014 11:06:10 +0000 (11:06 +0000)]
MFC r274100:
Fix mis-spelling of bits and types names in the
default_pager_putpages() and swap_pager_putpages().

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

9 years agoMFC r274286:
dim [Tue, 11 Nov 2014 08:00:49 +0000 (08:00 +0000)]
MFC r274286:

Pull in r201784 from upstream llvm trunk (by Benjamin Kramer):

  AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.

  There is code in the wild that relies on $0 not being expanded.

This fixes some cases of using $ signs in literals being incorrectly
assembled.

Reported by: Richard Henderson
Upstream PR: http://llvm.org/PR21500

MFC r274294:

Add llvm patch corresponding to r274286.

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

9 years agoMFV r273747:
delphij [Tue, 11 Nov 2014 05:55:37 +0000 (05:55 +0000)]
MFV r273747:

Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by: jmg [1]
Reviewed by: jmg

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

9 years agoAnticipate when we'll be ready to announce 10.1-RELEASE.
gjb [Tue, 11 Nov 2014 05:49:35 +0000 (05:49 +0000)]
Anticipate when we'll be ready to announce 10.1-RELEASE.

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

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

9 years agoMFC Intel I40E drivers: r274205,r274218, and r274228
jfv [Mon, 10 Nov 2014 23:56:06 +0000 (23:56 +0000)]
MFC Intel I40E drivers: r274205,r274218, and r274228
The MFC was pushed early as it fixes a panic in the
exiting driver of 10.1 that Intel discovered in validation.

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

9 years agoAdd missing /usr/lib/debug directories
emaste [Mon, 10 Nov 2014 14:26:56 +0000 (14:26 +0000)]
Add missing /usr/lib/debug directories

Directories for /usr/lib{,32}/{i18n,private} were missing from the mtree
file, which caused installworld to install the files that should be in
the directory as the name of the directory.

MFC of r273780

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

9 years agoMFC r274038:
kib [Mon, 10 Nov 2014 09:11:23 +0000 (09:11 +0000)]
MFC r274038:
Clean up confusing comment.

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

9 years agoMFC: 258080
jpaetzel [Sun, 9 Nov 2014 20:08:43 +0000 (20:08 +0000)]
MFC: 258080

Add support for multiple instances of ftp-proxy
and pflog devices.

PR:     conf/158171
Submitted by:   Thomas Johnson <tom@claimlynx.com>

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

9 years agoMFC: 273641
jpaetzel [Sun, 9 Nov 2014 20:04:29 +0000 (20:04 +0000)]
MFC: 273641

This change addresses 4 bugs in ZFS exposed by Richard Kojedzinszky's
crash.sh script attached to FreeNAS bug 4109:
https://bugs.freenas.org/issues/4109

Three are in the snapshot layer:
a) AVG explains in his notes: https://wiki.freebsd.org/AvgVfsSolarisVsFreeBSD

"VOP_INACTIVE must not do any destructive actions to a vnode
and its filesystem node, nor invalidate them in any way."
gfs_vop_inactive and zfsctl_snapshot_inactive did just that. In
OpenSolaris VOP_INACTIVE is much closer to FreeBSD's VOP_RECLAIM.
Rename & move them to gfs_vop_reclaim and zfsctl_snapshot_reclaim
and merge in the requisite vnode_destroy from zfsctl_common_reclaim.

b) gfs_lookup_dot and various zfsctl functions do not honor the
FreeBSD VFS convention of only locking from the root downward. When
looking up ".." the convention is to drop the current leaf vnode lock before
acquiring the directory vnode and then subsequently re-acquiring the lock on the
leaf vnode. This fixes that in all the places that our exercised by crash.sh.

c) The snapshot may already be unmounted when the directory vnode is reclaimed.
Check for this case and return.

One in the common layer:
d) Callers of traverse expect the reference to the vnode passed in to be
maintained. Don't release it.

This last one may be an unclear contract. There may in fact be some callers that
do expect the reference to be dropped on success in addition to callers that
expect it to be released. In this case a further audit of the callers is needed
and a consensus on the correct behavior.

PR:     184677
Submitted by: kmacy
Reviewed by: delphij, will, avg
Sponsored by: iXsystems

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

9 years agoFix an apparent mis-merge that happened in r274082. Before that, on the
ian [Sun, 9 Nov 2014 19:56:26 +0000 (19:56 +0000)]
Fix an apparent mis-merge that happened in r274082.  Before that, on the
10-stable branch, this makefile had WARNS=2, and on head the value is
still 2, but in the MFC done in r274082 it got changed to 3, causing build
failures when building with gcc.  This direct commit to 10 goes back to
WARNS=2.

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

9 years agoMFC r273967:
kib [Sun, 9 Nov 2014 09:44:09 +0000 (09:44 +0000)]
MFC r273967:

Only trigger a panic when forced operation is done.  Convert direct
panic() call into KASSERT().

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

9 years agoMFC r268836: Fix a typo in a gpio node name.
ian [Sat, 8 Nov 2014 04:18:33 +0000 (04:18 +0000)]
MFC r268836: Fix a typo in a gpio node name.

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

9 years agoMFC r273703:
ian [Sat, 8 Nov 2014 03:42:19 +0000 (03:42 +0000)]
MFC r273703:

  Remove the ARM_DEVICE_MULTIPASS option and make its effect be the default.

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

9 years agoMFC r272844:
bryanv [Sat, 8 Nov 2014 02:53:55 +0000 (02:53 +0000)]
MFC r272844:

Add missing UDP multicast receive dtrace probes

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

9 years agoMFC r272801:
bryanv [Sat, 8 Nov 2014 02:47:23 +0000 (02:47 +0000)]
MFC r272801:

Move the calls to u_tun_func() into udp6_append()

A similar cleanup for UDPv4 was performed in r220620.

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

9 years agoMFC r272797:
bryanv [Sat, 8 Nov 2014 02:40:00 +0000 (02:40 +0000)]
MFC r272797:

Check for mbuf copy failure when there are multiple multicast sockets

This partitular case is the only path where the mbuf could be NULL.
udp_append() checked for a NULL mbuf only after invoking the tunneling
callback. Our only in tree tunneling callback - SCTP - assumed a non
NULL mbuf, and it is a bit odd to make the callbacks responsible for
checking this condition.

This also reduces the differences between the IPv4 and IPv6 code.

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

9 years agoMFC r273619: MFV r273617: netcat from OpenBSD 5.6.
delphij [Sat, 8 Nov 2014 00:55:06 +0000 (00:55 +0000)]
MFC r273619: MFV r273617: netcat from OpenBSD 5.6.

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

9 years agoMFC r273507: Sync with NetBSD.
delphij [Sat, 8 Nov 2014 00:51:31 +0000 (00:51 +0000)]
MFC r273507: Sync with NetBSD.

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

9 years agoMFC r273498: MFV r273494: xz 5.0.7.
delphij [Sat, 8 Nov 2014 00:49:45 +0000 (00:49 +0000)]
MFC r273498: MFV r273494: xz 5.0.7.

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

9 years agoMFC: 273279
gnn [Sat, 8 Nov 2014 00:47:16 +0000 (00:47 +0000)]
MFC: 273279

Add new quirks for the latest Samsung SSD, model 850.

Submitted by: sbruno

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

9 years agoMFC: 272962
gnn [Sat, 8 Nov 2014 00:42:11 +0000 (00:42 +0000)]
MFC: 272962

Add a new option, -P, to pkt-gen which reads a single packet from a stored
pcap file and transmits it instead of the default UDP packet.

Reviewed by: luigi

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

9 years agoMFC r272931:
trasz [Fri, 7 Nov 2014 15:52:32 +0000 (15:52 +0000)]
MFC r272931:

Add assertion to catch duplicated nodes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272836:
trasz [Fri, 7 Nov 2014 15:50:40 +0000 (15:50 +0000)]
MFC r272836:

Remove remnants of some cleanup; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272743:
trasz [Fri, 7 Nov 2014 15:49:04 +0000 (15:49 +0000)]
MFC r272743:

Simplify; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272512:
trasz [Fri, 7 Nov 2014 15:47:22 +0000 (15:47 +0000)]
MFC r272512:

Make autofs use shared vnode locks.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272471:
trasz [Fri, 7 Nov 2014 15:45:34 +0000 (15:45 +0000)]
MFC r272471:

Fix autofs debug macros.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272470:
trasz [Fri, 7 Nov 2014 15:44:03 +0000 (15:44 +0000)]
MFC r272470:

Make autofs(4) use shared lock for lookups, instead of exclusive one.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272405:
trasz [Fri, 7 Nov 2014 15:42:11 +0000 (15:42 +0000)]
MFC r272405:

Call uma_zfree() outside of lock, and improve comment.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r272403:
trasz [Fri, 7 Nov 2014 15:40:34 +0000 (15:40 +0000)]
MFC r272403:

Make autofs timeout handling use timeout task instead of callout;
that's because the handler can sleep on sx lock.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273922:
nwhitehorn [Fri, 7 Nov 2014 04:11:43 +0000 (04:11 +0000)]
MFC r273922:
Rewrite some of the disk setup documentation to be clearer and contain
less obsolete information. Also move the entropy command down the list --
the list is ordered by likelihood of use rather than alphabetically.

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

9 years agoMFC r273548
emax [Thu, 6 Nov 2014 16:32:00 +0000 (16:32 +0000)]
MFC r273548

Change the code to use the openpty(3) API which uses the pts(4) driver
instead of the pty(4) driver.

PR: 184597
Submitted by: tobias.rehbein

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

9 years agoMFC r273855:
ae [Thu, 6 Nov 2014 09:16:52 +0000 (09:16 +0000)]
MFC r273855:
  Fix mbuf leak in IPv6 multicast code.
  When multicast capable interface goes away, it leaves multicast groups,
  this leads to generate MLD reports, but MLD code does deffered send and
  MLD reports are queued in the in6_multi's in6m_scq ifq. The problem is
  that in6_multi structures are freed when interface leaves multicast groups
  and thread that does deffered send will not take these queued packets.

  PR: 194577

MFC r273857:
  Move ifq drain into in6m_purge().

  Suggested by: bms

Sponsored by: Yandex LLC

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

9 years agoBump __FreeBSD_version after SA-14:23, SA-14:24,
gjb [Thu, 6 Nov 2014 02:41:38 +0000 (02:41 +0000)]
Bump __FreeBSD_version after SA-14:23, SA-14:24,
SA-14:25.

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

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

9 years agoMFC r273342:
markj [Thu, 6 Nov 2014 01:34:43 +0000 (01:34 +0000)]
MFC r273342:
Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock
and unp_link_rwlock.

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

9 years agoMFC r273236:
markj [Thu, 6 Nov 2014 01:30:13 +0000 (01:30 +0000)]
MFC r273236:
Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is
consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy
PMCs if a process exits or execs without explicitly releasing them.

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

9 years agoMFC: r273486
rmacklem [Wed, 5 Nov 2014 23:12:39 +0000 (23:12 +0000)]
MFC: r273486
Clip the settings for the NFS rsize, wsize mount options
to a power of 2. For non-power of 2 settings, intermittent
page faults have been reported. Although the bug that causes
these page faults/crashes has not been identified, it does
not appear to occur when rsize, wsize is a power of 2.

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

9 years agoMFC r271992
lwhsu [Wed, 5 Nov 2014 16:24:57 +0000 (16:24 +0000)]
MFC r271992

  Reflect the chanages in sleepqueue.h and subr_sleepqueue.c
  - Priority argument is introduced to sleepq_*wait* in r177085
  - sleepq_calc_signal_retval is removed from implementation
  - sleepq_catch_signals is internal now

MFC r272475

  - Bump .Dd

Approved by:  kevlo

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

9 years agoMFC r266800 by vanhu:
ae [Wed, 5 Nov 2014 09:23:29 +0000 (09:23 +0000)]
MFC r266800 by vanhu:
  IPv4-in-IPv6 and IPv6-in-IPv4 IPsec tunnels.
  For IPv6-in-IPv4, you may need to do the following command
  on the tunnel interface if it is configured as IPv4 only:
  ifconfig <interface> inet6 -ifdisabled

  Code logic inspired from NetBSD.
  PR: kern/169438

MC r266822 by bz:
  Use IPv4 statistics in ipsec4_process_packet() rather than the IPv6
  version.  This also unbreaks the NOINET6 builds after r266800.

MFC r268083 by zec:
  The assumption in ipsec4_process_packet() that the payload may be
  only IPv4 is wrong, so check the IP version before mangling the
  payload header.

MFC r272394:
  Do not strip outer header when operating in transport mode.
  Instead requeue mbuf back to IPv4 protocol handler. If there is one extra IP-IP
  encapsulation, it will be handled with tunneling interface. And thus proper
  interface will be exposed into mbuf's rcvif. Also, tcpdump that listens on tunneling
  interface will see packets in both directions.

PR: 194761

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

9 years agoMFC r273985:
wblock [Wed, 5 Nov 2014 04:25:23 +0000 (04:25 +0000)]
MFC r273985:

Add the less-ambiguous freebsd-version command.

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

9 years ago[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
des [Tue, 4 Nov 2014 23:29:57 +0000 (23:29 +0000)]
[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
[SA-14:26] Fix remote command execution in ftp(1).

Approved by: so (des)

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

9 years agoMFC r274095:
gjb [Tue, 4 Nov 2014 23:02:16 +0000 (23:02 +0000)]
MFC r274095:
  Fix VOLUME_LABEL when BRANCH contains '-' and '.'
  characters, in particular '-' and '.'.

Insta-MFC ok: re (hrs)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273796
brooks [Tue, 4 Nov 2014 22:47:51 +0000 (22:47 +0000)]
MFC r273796

Import in latest mtree from NetBSD to fix a bug in parsing group files
that jmg fixed upstream.

Sponsored by: DARPA, AFRL

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

9 years agoMFC: 272445,272578,273772,273779,273782,273786,273787,273791
bapt [Tue, 4 Nov 2014 07:50:48 +0000 (07:50 +0000)]
MFC: 272445,272578,273772,273779,273782,273786,273787,273791

Add a test for bug 191427 where pw(8) will go into an infinite loop
Add some tests for modifying groups
When a group is renamed then the group has been invalidated for sure.
In that case get the group information using the new name.

Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.

Do not delete the group wheel when bad argument is passed to pw groupdel -g

Check that the -g argument is actually a number, if not report an error.
This argument is converted without checking with atoi(3) later so without this
check it converts any alpha entries into 0 meaning it deletes the group wheel

Ensure pw userdel -u <invalid> do not try to remove root

Check the uid passed is actually a number as early as possible

Fix renaming a group via the gr_copy function

Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod

PR: 193704 [1], 185666 [2], 90114 [3], 187189 [4]
Submitted by: Marc de la Gueronniere [4]
Reported by: az [1], sub.mesa@gmail.com [2], bkoenig@cs.tu-berlin.de [3],
mcdouga9@egr.msu.edu [4]

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

9 years agoMFC r271946 and r272595:
hselasky [Mon, 3 Nov 2014 12:38:29 +0000 (12:38 +0000)]
MFC r271946 and r272595:
Improve transmit sending offload, TSO, algorithm in general. This
change allows all HCAs from Mellanox Technologies to function properly
when TSO is enabled. See r271946 and r272595 for more details about
this commit.

Sponsored by: Mellanox Technologies

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

9 years agoMFC: r268474 and r268476 (by imp)
nyan [Mon, 3 Nov 2014 12:07:04 +0000 (12:07 +0000)]
MFC: r268474 and r268476 (by imp)
  - Merge the clang support from i386.
  - Compile boot2 with clang on pc98.

MFC: r272250 (by nyan)
  - Reduce diffs against i386.

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

9 years agoMFC: r268475 (by imp)
nyan [Mon, 3 Nov 2014 11:58:32 +0000 (11:58 +0000)]
MFC: r268475 (by imp)

  Make SERIAL support optional again. Enable it for i386 because a huge
  percentage of machines has a 16550. Disable it for pc98 since only a
  tiny fraction of them have one.

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

9 years agoMFC: r272258
nyan [Mon, 3 Nov 2014 11:21:43 +0000 (11:21 +0000)]
MFC: r272258
  - Cosmetic changes.
  - Reduce diffs against i386.

MFC: 272259
  MFi386: Enable QUOTA, PRINTF_BUFR_SIZE and puc.

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

9 years agoMFC: r272256
nyan [Mon, 3 Nov 2014 11:08:00 +0000 (11:08 +0000)]
MFC: r272256

  Switch from lib/libstand to sys/boot/libstand32.

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

9 years agoMFC: r272255
nyan [Mon, 3 Nov 2014 11:01:12 +0000 (11:01 +0000)]
MFC: r272255

  Supress clang warning for FreeBSD printf %b and %D formats.

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

9 years agoMFC: r272252
nyan [Mon, 3 Nov 2014 10:38:03 +0000 (10:38 +0000)]
MFC: r272252

  Drop the 3rd clause from all 3 clause BSD licenses.

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

9 years agoMFC r273728:
kib [Mon, 3 Nov 2014 10:33:01 +0000 (10:33 +0000)]
MFC r273728:
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.

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

9 years agoMFC r273727:
kib [Mon, 3 Nov 2014 10:30:44 +0000 (10:30 +0000)]
MFC r273727:
Original commit message was
Allow the vfs.nfsd knobs to be set from loader.conf (or using
kenv(8)).  This is useful when nfsd is loaded as module.

As I understand, automatic fetch from kenv does not work in stable/10.
Merge the change still, to reduce code difference.

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

9 years agoMFC: r272248
nyan [Mon, 3 Nov 2014 10:26:29 +0000 (10:26 +0000)]
MFC: r272248

  - Cleanups pc98 code.
  - Remove unworked formats.

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

9 years agoMFC r273737, 273739
bapt [Mon, 3 Nov 2014 08:48:48 +0000 (08:48 +0000)]
MFC r273737, 273739

Clarify the documentation of pmcstat:
the -d argument should be passed before -p, -s, -P or -S to be taken in account

Differential Revision: https://reviews.freebsd.org/D1011
Reviewed by: adrian, gnn

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

9 years agoMFC: r272245
nyan [Mon, 3 Nov 2014 06:33:52 +0000 (06:33 +0000)]
MFC: r272245

  Remove duplicate prog.

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

9 years agoMFC: r272243
nyan [Mon, 3 Nov 2014 05:35:45 +0000 (05:35 +0000)]
MFC: r272243

  Add missing library dependencies.

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

9 years agoMFC r273809:
mav [Mon, 3 Nov 2014 03:45:41 +0000 (03:45 +0000)]
MFC r273809:
Implement better handling for ENOSPC error for both CTL and CAM.

This makes VMWare VAAI Thin Provisioning Stun primitive activate, pausing
the virtual machine, when backing storage (ZFS pool) is getting overflowed.

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

9 years agoMFC r273730, r273731:
mav [Mon, 3 Nov 2014 03:44:59 +0000 (03:44 +0000)]
MFC r273730, r273731:
Reduce code duplication around Write Exclusive persistent reservation.

While there, allow some more commands to pass persistent reservation.

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

9 years agoMFC r273711:
mav [Mon, 3 Nov 2014 03:43:40 +0000 (03:43 +0000)]
MFC r273711:
Allocate buffer for READ BUFFER/WRITE BUFFER commands on demand.

These commands are rare, but consume additional 256KB RAM per LUN.

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

9 years agoMFC 273598 273602 273607 273613 273647:
rpaulo [Mon, 3 Nov 2014 03:17:58 +0000 (03:17 +0000)]
MFC 273598 273602 273607 273613 273647:

    Userland HPET support.

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

9 years agoMFC 273834:
jhb [Mon, 3 Nov 2014 00:13:20 +0000 (00:13 +0000)]
MFC 273834:
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

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

9 years agoMFC 273644,273738:
jhb [Sun, 2 Nov 2014 23:22:22 +0000 (23:22 +0000)]
MFC 273644,273738:
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR: 194280
Submitted by: dr2867.business@pacbell.net

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

9 years agoMFC r272974,272976:
hrs [Sun, 2 Nov 2014 22:41:55 +0000 (22:41 +0000)]
MFC r272974,272976:

Add ${name}_env and ${name}_prepend.  ${name}_env is an argument list which
will be passed to env(1).  ${name}_prepend is simply prepended to the command
line for $command.

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

9 years agoMFC r273026:
delphij [Sun, 2 Nov 2014 19:16:41 +0000 (19:16 +0000)]
MFC r273026:

Add a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) that
controls how much fraction, 1/2^arc_shrink_shift, should be reclaimed
when there is memory pressure.

Submitted by: Richard Kojedzinszky <krichy at tvnetwork.hu>

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

9 years agoMFC r273267:
delphij [Sun, 2 Nov 2014 19:09:34 +0000 (19:09 +0000)]
MFC r273267:

Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.

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

9 years agoMFC r273708: Fix support for LUN flat space addressing.
mav [Sun, 2 Nov 2014 17:31:45 +0000 (17:31 +0000)]
MFC r273708: Fix support for LUN flat space addressing.

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

9 years agoMFC r273693: Fix printing non-terminated strings in devlist XML.
mav [Sun, 2 Nov 2014 17:31:10 +0000 (17:31 +0000)]
MFC r273693: Fix printing non-terminated strings in devlist XML.

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

9 years agoMFC r273687:
mav [Sun, 2 Nov 2014 17:30:30 +0000 (17:30 +0000)]
MFC r273687:
Add "rpm" and "formfactor" LUN options to match istgt functionality.

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

9 years agoMFC r273640: Add support for 12/16-byte EUI and 16-byte NAA IDs.
mav [Sun, 2 Nov 2014 17:29:48 +0000 (17:29 +0000)]
MFC r273640: Add support for 12/16-byte EUI and 16-byte NAA IDs.

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

9 years agoMFC r273075: Remove couple Copan's vendor-specific mode pages.
mav [Sun, 2 Nov 2014 17:28:44 +0000 (17:28 +0000)]
MFC r273075: Remove couple Copan's vendor-specific mode pages.

Those pages are highly system-/hardware-specific, the code is incomplete,
and so they hardly can be useful for anybody else.

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

9 years agoMFC r273073: Some groundwork for later Informational Exceptions support.
mav [Sun, 2 Nov 2014 17:28:08 +0000 (17:28 +0000)]
MFC r273073: Some groundwork for later Informational Exceptions support.

This includes support for:
 - Read-Write Error Recovery mode page;
 - Informational Exceptions Control mode page;
 - Logical Block Provisioning mode page;
 - LOG SENSE command.

No real Informational Exceptions features yet. This is only a placeholder.

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

9 years agoMFC r272409:
mav [Sun, 2 Nov 2014 17:26:13 +0000 (17:26 +0000)]
MFC r272409:
Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.

SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other
then LUN 0.  If we see LUN 0 disconnected, guess there may be others, and
so REPORT LUNS shall be supported.

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

9 years agoMFC r272406:
mav [Sun, 2 Nov 2014 17:25:03 +0000 (17:25 +0000)]
MFC r272406:
Make disconnected LUN 0 don't remain in half-configured state if there are
no LUNs on SPC-3 target after we tried REPORT LUNS.

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

9 years agoMFC r272401, r272402: Rework the logic of sequential SCSI LUN scanner.
mav [Sun, 2 Nov 2014 17:23:44 +0000 (17:23 +0000)]
MFC r272401, r272402: Rework the logic of sequential SCSI LUN scanner.

Previous logic was not differentiating disconnected LUNs and absent targets.
That made it to stop scan if LUN 0 was not found for any reason.  That made
problematic, for example, using iSCSI targets declaring SPC-2 compliance and
having no LUN 0 configured.

The new logic continues sequential LUN scan if:
 -- we have more configured LUNs that need recheck;
 -- this LUN is connected and its SCSI version allows more LUNs;
 -- this LUN is disconnected, its SCSI version allows more LUNs and we
    guess they may be connected (we haven't scanned first 8 LUNs yet or
    kern.cam.cam_srch_hi sysctl is set to scan more).

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

9 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

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

9 years agoMFC r273551:
rpaulo [Sat, 1 Nov 2014 05:45:05 +0000 (05:45 +0000)]
MFC r273551:

  puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P
  card.

  Submitted by: Alex Burlyga <alex.burlyga.ietf at gmail.com>

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

9 years agovt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font
dumbbell [Fri, 31 Oct 2014 23:10:58 +0000 (23:10 +0000)]
vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font

To restore the default font using vidcontrol(1), use the "-f" flag
without an argument:
    vidcontrol -f < /dev/ttyv0

PR: 193910
Differential Revision: https://reviews.freebsd.org/D971
Submitted by: Marcin Cieslak <saper@saper.info>
Reviewed by: ray@, emaste@
Approved by: ray@
MFC of: r273544

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

9 years agoMFC 258028:
hselasky [Fri, 31 Oct 2014 10:07:56 +0000 (10:07 +0000)]
MFC 258028:
Unbreak build of RSU module.
Use the real product name for Edimax rsu(4) id.

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

9 years agoMFC r264801, r264802, r264934, r273181, r273216 and r273252:
hselasky [Fri, 31 Oct 2014 07:55:42 +0000 (07:55 +0000)]
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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