]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r277433: MFV r277432:
delphij [Wed, 4 Feb 2015 00:52:26 +0000 (00:52 +0000)]
MFC r277433: MFV r277432:

Plug various memory leaks in libzfs import implementation.

Illumos issue:
    5518 Memory leaks in libzfs import implementation

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

9 years agoMFC r277463:
delphij [Wed, 4 Feb 2015 00:45:28 +0000 (00:45 +0000)]
MFC r277463:

Fix xz handling for files larger than 32K.

Submitted by: Stefan Ehmann <shoesoft gmx net>
PR: bin/186861

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

9 years agoMFV r277814, r277868, r277869:
pfg [Tue, 3 Feb 2015 14:37:38 +0000 (14:37 +0000)]
MFV r277814, r277868, r277869:
amd: Add extra check for NULL before deref.

MFV r277841:
Fix a clang 3.6.0 warning (from dim)

CID: 274421
Obtained from: NetBSD
MFC after: 4 days

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

9 years agoMFC r277419:
mav [Tue, 3 Feb 2015 08:06:59 +0000 (08:06 +0000)]
MFC r277419:
Allow skipping dmu_buf_will_dirty() call in dsl_dir_transfer_space().

dsl_dir_transfer_space() is mostly called after dsl_dir_diduse_space(),
which already calls dmu_buf_will_dirty() for the same dbuf and tx, so
its duplicate call in those cases will change nothing, only spend time.

Skipping this call by four times reduces time spent in dbuf_write_done()
and descendants, updating dataset statistics with several congested lock
acquisitions.  When rewriting 8K zvol blocks at 1GB/s rate, this reduces
CPU time spent inside dbuf_write_done(), according to profiling, from 45%
of 683K samples to 18% of 422K.

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

9 years agoMFC r277952:
dim [Tue, 3 Feb 2015 08:03:19 +0000 (08:03 +0000)]
MFC r277952:

Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST.  No
functional change.

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

9 years agoMFC r277951:
dim [Tue, 3 Feb 2015 07:59:33 +0000 (07:59 +0000)]
MFC r277951:

Fix a bunch of -Wcast-qual warnings in netgraph's ng_parse.c, by using
__DECONST.  No functional change.

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

9 years agoMFC r277806:
delphij [Mon, 2 Feb 2015 18:48:49 +0000 (18:48 +0000)]
MFC r277806:

Use unsigned int for index value.

Without this change a local attacker could trigger a panic by
tricking the kernel into accessing undefined kernel memory.

We would like to acknowledge Francisco Falcon from CORE Security
Technologies who discovered the issue and reported to the
FreeBSD Security Team.

More information can be found at CORE Security's advisory at:
http://www.coresecurity.com/content/freebsd-kernel-multiple-vulnerabilities

This is an errata candidate for releng/10.1 and releng/9.3.  Earlier
releases are not affected.

Reported by:  Francisco Falcon from CORE Security Technologies
Security:     CVE-2014-0998
Reviewed by:  dumbbell

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

9 years agoMFC r277354, r277365:
pfg [Mon, 2 Feb 2015 15:53:01 +0000 (15:53 +0000)]
MFC r277354, r277365:
ext2: Garbage-collect some unused variables

Reported by: clang static analysis

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

9 years agoMFC r277758: Fix several potential overflows in UNMAP code.
mav [Mon, 2 Feb 2015 12:10:24 +0000 (12:10 +0000)]
MFC r277758: Fix several potential overflows in UNMAP code.

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

9 years agoMFC r278067:
ngie [Mon, 2 Feb 2015 10:00:45 +0000 (10:00 +0000)]
MFC r278067:

r278067:

  MFC r277541:

  r277541:

    Add sample log rotation support for opensm

    Up to 7 archives of the log will be kept (just for consistency with the other
    log rotation rules)

    PR: 196788
    Reviewed by: hselasky
    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277666,r277685:
ngie [Mon, 2 Feb 2015 09:23:18 +0000 (09:23 +0000)]
MFC r277666,r277685:

r277666:

  Only build share/dtrace if MK_CDDL != no

  Sponsored by: EMC / Isilon Storage Division

r277685:

  Fill in some dtrace entries when MK_CDDL == no

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277674:
ngie [Mon, 2 Feb 2015 08:37:45 +0000 (08:37 +0000)]
MFC r277674:

r277674 (by ngie):

  Fix building rcorder with -DDEBUG by using libutil.h instead of util.h from
  usr.bin/make

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277901:
dim [Mon, 2 Feb 2015 08:05:11 +0000 (08:05 +0000)]
MFC r277901:

Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST.  No
functional change.

MFC r277903:

Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(),
strtoul() and strtouq(), by using __DECONST.  No functional change.

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

9 years agoMFC r228099,r245171,r277939:
ngie [Mon, 2 Feb 2015 08:04:38 +0000 (08:04 +0000)]
MFC r228099,r245171,r277939:

r228099:

  - Create links to the xz and lzma versions even if BSD grep is not the
    default. Nor GNU nor liblzma in base provides such functionality so
    it may be useful.

r245171:

  Following r226271, allow disabling lzma support with "WITHOUT_LZMA_SUPPORT".
  Correct r226271 which should have used WITHOUT_BZIP2_SUPPORT per r166255.

  Obtained from: Juniper Networks

r277939:

  Create MANLINKS for lzgrep, etc when MK_LZMA_SUPPORT != no

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277899:
dim [Mon, 2 Feb 2015 07:42:03 +0000 (07:42 +0000)]
MFC r277899:

Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using
__DECONST.  No functional change.

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

9 years agoMFC r277898:
dim [Mon, 2 Feb 2015 07:37:25 +0000 (07:37 +0000)]
MFC r277898:

Fix a bunch of -Wcast-qual warnings in msdosfs_conv.c, by using
__DECONST.  No functional change.

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

9 years agoMFC r277883:
dim [Mon, 2 Feb 2015 07:30:00 +0000 (07:30 +0000)]
MFC r277883:

Ensure that lint does not pick up C11 keywords (e.g.  _Noreturn), even
if C11 mode is used.  It does not support any C11 constructs.

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

9 years agoRevert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)
dim [Sun, 1 Feb 2015 02:29:58 +0000 (02:29 +0000)]
Revert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)
until I can figure out why it leads to link failures in some scenarios.

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

9 years agoMFC r273434 (by bapt):
dim [Sun, 1 Feb 2015 01:42:38 +0000 (01:42 +0000)]
MFC r273434 (by bapt):

Do not define bad_array_new_length::bad_array_new_length in libc++ anymore
when used in combinaison with libcxxrt since it is now defined there already.
This fixes building world

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

9 years agoMFC r273381 (by bapt):
dim [Sat, 31 Jan 2015 23:48:59 +0000 (23:48 +0000)]
MFC r273381 (by bapt):

Add support for __cxa_throw_bad_array_new_length in libcxxrt

It is required for use with newer g++49

Differential Revision: https://reviews.freebsd.org/D982
Reviewed by: theraven
Approved by: theraven

MFC r276417:

Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604.

Interesting fixes:
76584a0  Reorganize code to use only 32bit atomic ops for 32bit platforms
30d2ae5  Implement __cxa_throw_bad_array_new_length

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D1390

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

9 years agoMFC 274398,274537:
jhb [Fri, 30 Jan 2015 18:55:16 +0000 (18:55 +0000)]
MFC 274398,274537:
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
gzip, and split).

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

9 years agoMFC r277802, r277811:
pfg [Fri, 30 Jan 2015 14:37:59 +0000 (14:37 +0000)]
MFC r277802, r277811:

sed: Fix resource leak and dereference after NULL.

process.c:
Protect access against NULL.

main.c:
Prevent outfile overwrite resource leak.

CID: 271181
CID: 1006930

Obtained from: NetBSD

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

9 years agoMFC r277185:
mav [Thu, 29 Jan 2015 16:19:05 +0000 (16:19 +0000)]
MFC r277185:
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.

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

9 years agoMFC r276983: When aggregating TRIM segments, move the new one to the end.
mav [Thu, 29 Jan 2015 16:16:20 +0000 (16:16 +0000)]
MFC r276983: When aggregating TRIM segments, move the new one to the end.

New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.

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

9 years agoMFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-ID
des [Thu, 29 Jan 2015 09:06:21 +0000 (09:06 +0000)]
MFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-ID

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

9 years agoMFC r277246:
hselasky [Wed, 28 Jan 2015 19:59:26 +0000 (19:59 +0000)]
MFC r277246:
Add more USB device IDs.

PR: 196362

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

9 years agoMFC r277245:
hselasky [Wed, 28 Jan 2015 19:53:00 +0000 (19:53 +0000)]
MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

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

9 years agoMFC r277417:
hselasky [Wed, 28 Jan 2015 19:43:33 +0000 (19:43 +0000)]
MFC r277417:
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.

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

9 years agoMFC r277340, r277349:
pfg [Wed, 28 Jan 2015 15:37:35 +0000 (15:37 +0000)]
MFC r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID: 1062344
CID: 1008669

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

9 years agoMFC r277608, r277656, r277659:
pfg [Wed, 28 Jan 2015 02:33:06 +0000 (02:33 +0000)]
MFC r277608, r277656, r277659:

Small upstream fixes for GDB.

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green@redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by: Dirk Engling

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb@redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis@gnu.org>

      * corelow.c (get_core_register_section): Replace usage of sprintf
      and strcpy with xstrprintf and xstrdup.

CID: 604160, 604161, 604162, 604163
CID: 1006819 1008254

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

9 years agoFix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
delphij [Tue, 27 Jan 2015 19:36:08 +0000 (19:36 +0000)]
Fix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
and SCTP stream reset vulnerability.

Security: FreeBSD-SA-15:02.kmem
Security: CVE-2014-8612
Security: FreeBSD-SA-15:03.sctp
Security: CVE-2014-8613

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

9 years agoMFC: r277579
jkim [Mon, 26 Jan 2015 19:33:35 +0000 (19:33 +0000)]
MFC: r277579

Revert r216942.  This commit was premature and caused too many complaints.

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

9 years agoMFC r277295:
ae [Sun, 25 Jan 2015 14:50:49 +0000 (14:50 +0000)]
MFC r277295:
  Fix condition and really sort ports. Also add comment describing
  the intent of this code.

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

9 years agoMFC r277301:
pfg [Sat, 24 Jan 2015 21:25:55 +0000 (21:25 +0000)]
MFC r277301:
ext2: cosmetical issues

Minor sorting and note when the cases are expected to fall through.

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

9 years agoMFC r277272:
ngie [Sat, 24 Jan 2015 03:04:08 +0000 (03:04 +0000)]
MFC r277272:

  Don't call abort on usage errors; print out the usage message instead

  PR: 196793
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276804:
ngie [Fri, 23 Jan 2015 23:09:38 +0000 (23:09 +0000)]
MFC r276804:

  Fix 'make depend' before infiniband headers have been installed to build host
  by removing space between -I and the header directory

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276806:
ngie [Fri, 23 Jan 2015 22:39:27 +0000 (22:39 +0000)]
MFC r276806:

  Remove unnecessary .include of bsd.own.mk

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276577: MFV r276568:
delphij [Fri, 23 Jan 2015 18:50:36 +0000 (18:50 +0000)]
MFC r276577: MFV r276568:

Update file to 5.22.

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

9 years agoMFC r277216:
gjb [Thu, 22 Jan 2015 02:24:42 +0000 (02:24 +0000)]
MFC r277216:
  Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276892:
hselasky [Tue, 20 Jan 2015 05:14:07 +0000 (05:14 +0000)]
MFC r276892:
Add support for USB device side mode to the USB modem driver.

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

9 years agoMFC r276825 and r277372:
hselasky [Tue, 20 Jan 2015 05:02:35 +0000 (05:02 +0000)]
MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".

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

9 years agoMFH: r277085
brueffer [Mon, 19 Jan 2015 10:58:52 +0000 (10:58 +0000)]
MFH: r277085

Fix a typo in the FFS maxbpg option, it was erroneously spelled maxbpf.

The error has been reported to and fixed in the NetBSD upstream version as well.

PR:             196598
Submitted by:   Dan McGregor

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

9 years agoMFC r276798:
hselasky [Mon, 19 Jan 2015 07:20:20 +0000 (07:20 +0000)]
MFC r276798:
Fix handling of an error case when the MUSB driver is operating in USB
device side mode.

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

9 years agoMFC r277044:
hselasky [Mon, 19 Jan 2015 07:03:40 +0000 (07:03 +0000)]
MFC r277044:
Increase the maximum number of dynamic USB quirks. USB memory stick
devices which don't support the synchronize cache SCSI command are
likely to also not support the prevent-allow medium removal SCSI
command.

PR: 185747

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

9 years agoMFC 277212:
hselasky [Mon, 19 Jan 2015 06:59:40 +0000 (06:59 +0000)]
MFC 277212:
Fix compilation for 32-bit architectures.

PR: 196580
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276959:
np [Sun, 18 Jan 2015 20:39:24 +0000 (20:39 +0000)]
MFC r276959:
cxgb: replace r273280 with a more comprehensive fix.

Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.

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

9 years agoMFC r276517:
dim [Sat, 17 Jan 2015 12:54:02 +0000 (12:54 +0000)]
MFC r276517:

Pull in r200010 from upstream libc++ trunk (by Marshall Clow):

  Rename some internal templates to avoid conflict with complier
  intrinsics. __is_constructible --> __libcpp_is_constructible,
  __is_nothrow_constructible --> __libcpp_is_nothrow_constructible, and
  __is_nothrow_assignable --> __libcpp_is_nothrow_assignable. No
  functionality change.

Pull in r206805 from upstream libc++ trunk (by Marshall Clow):

  Use compiler intrinsic __is_constructible if available

This should fix building parts of world with -std=c++11 enabled.

Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

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

9 years agoMFC r277147:
dim [Sat, 17 Jan 2015 11:41:04 +0000 (11:41 +0000)]
MFC r277147:

Since the merge of file 5.21 in r276415 and r276416, stable/9 and
stable/10 cannot be built from FreeBSD 8.x.  This is because the
build-tools stage requires libmagic, but lib/libmagic/config.h was
generated on head, and it now enables using the xlocale.h APIs, which
are not supported on 8.x (and on 9.x before __FreeBSD_version 900506).

See also the start of this thread on -stable:
https://lists.freebsd.org/pipermail/freebsd-stable/2015-January/081521.html

To fix this, conditionalize the use of xlocale.h APIs to make
bootstrapping from older FreeBSD versions work correctly.

Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D1518

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

9 years agoMFC r276906:
dchagin [Sat, 17 Jan 2015 06:17:54 +0000 (06:17 +0000)]
MFC r276906:

Allow clock_getcpuclockid() on the CPU-time clock for zombie process.
Posix does not prohibit this.

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

9 years agoMFC r272947, r272950:
pfg [Sat, 17 Jan 2015 01:21:30 +0000 (01:21 +0000)]
MFC r272947, r272950:

tcpd: complete function prototypes.
tcpd.h: add prototype for hosts_ctl

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR: 32808
PR: 42336

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

9 years agoMFC r277158:
jamie [Sat, 17 Jan 2015 01:16:24 +0000 (01:16 +0000)]
MFC r277158:

  Don't set prison's pr_ip4s or pr_ip6s to -1.

PR: 196474

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

9 years agoMFC r276981:
hselasky [Wed, 14 Jan 2015 05:32:16 +0000 (05:32 +0000)]
MFC r276981:
Fix support for ConnectX2 hardware.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276749:
hselasky [Tue, 13 Jan 2015 17:16:06 +0000 (17:16 +0000)]
MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276879:
hselasky [Tue, 13 Jan 2015 17:02:21 +0000 (17:02 +0000)]
MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband.

PR:             196631
Sponsored by:   Mellanox Technologies

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

9 years agoAvoid crash in vt_blank() and improve performance
emaste [Mon, 12 Jan 2015 18:38:09 +0000 (18:38 +0000)]
Avoid crash in vt_blank() and improve performance

MFC of r268771 (partial), r268796

PR: 196510
Reported by: Andre Albsmeier
Sponsored by: The FreeBSD Foundation

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

9 years agoAdd missing libexec/bsdconfig subdirectories
emaste [Mon, 12 Jan 2015 18:20:37 +0000 (18:20 +0000)]
Add missing libexec/bsdconfig subdirectories

MFC of r266902.

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

9 years agoAvoid ./ in zoneinfo entries in METALOG
emaste [Mon, 12 Jan 2015 18:19:07 +0000 (18:19 +0000)]
Avoid ./ in zoneinfo entries in METALOG

Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

MFC of r271047.

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

9 years agoMFC r276991:
ngie [Sun, 11 Jan 2015 20:22:12 +0000 (20:22 +0000)]
MFC r276991:

  MFC r275687,r275692:

  Relnotes: yes

  r275687:

    Remove termcap entry reordering; install the file verbatim instead

    termcap entry reordering requires ex (which is available via usr.bin/vi), which
    breaks on build hosts where installworld is run with MK_VI == no (or when
    make delete-old is run on ^/projects/building-blocks as vi, et al, are
    removed on the branch when the knob is tweaked to => "no")

    Reordering termcap was believed to improve performance, but the file is now
    accessed via /etc/termcap.db, so /etc/termcap (and /usr/share/misc/termcap by
    proxy) access is less preferred.

    Reordering the file broke the historical comment <-> entry mapping as well,
    which could muddle the purpose of entries in the file, so it could be
    potentially harmful to readers in its reordered state.

    Discussion took place on hackers@ here:
    https://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046657.html

    Discussed with: -hackers, mp
    Sponsored by: EMC / Isilon Storage Division

  r275692:

    Fix building termcap.db when make obj is run beforehand from a clean tree by
    using make variables for the filenames, which helps resolve pathing
    appropriately when running cap_mkdb

    Pointyhat to: me

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

9 years agoMFC r228993 (by uqs):
ngie [Sun, 11 Jan 2015 19:28:37 +0000 (19:28 +0000)]
MFC r228993 (by uqs):

  Spelling fixes for share/

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

9 years agoCorrect comparison of IPv6 wildcard address.
ume [Sun, 11 Jan 2015 18:50:49 +0000 (18:50 +0000)]
Correct comparison of IPv6 wildcard address.

MFH: r276814

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

9 years agoMFC r265329:
nwhitehorn [Sun, 11 Jan 2015 17:18:14 +0000 (17:18 +0000)]
MFC r265329:
Disable ACPI and P4TCC throttling by default, following discussion on
freebsd-current. These CPU speed control techniques are usually unhelpful
at best. For now, continue building the relevant code into GENERIC so that
it can trivially be re-enabled at runtime if anyone wants it.

Relnotes: yes

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

9 years agoUnset BINDIR for osmtest, because ${TESTSBASE} is unset.
hselasky [Sun, 11 Jan 2015 14:49:18 +0000 (14:49 +0000)]
Unset BINDIR for osmtest, because ${TESTSBASE} is unset.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276815:
hselasky [Sun, 11 Jan 2015 14:33:16 +0000 (14:33 +0000)]
MFC r276815:
Fix for compilation issue. Don't use the "abs()" function for unsigned
computations.

PR: 196597
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276823:
hselasky [Sun, 11 Jan 2015 14:30:50 +0000 (14:30 +0000)]
MFC r276823:
Add makefile for the "osmtest" utility. While at it:
- Fix depend target by removing a space after an "-I" inclusion option.
- Fix some minor compile issues in the "osmtest" utility.

PR: 196580
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276532 and r276626:
hselasky [Sun, 11 Jan 2015 12:19:49 +0000 (12:19 +0000)]
MFC r276532 and r276626:
The "cnputs_mtx" mutex must be allowed to recurse. Debug prints and/or
witness printouts in the console driver clients can cause this mutex
to recurse by calls to "printf()" from witness for example. In
particular this can happen if "debug.witness.skipspin=0" is set in the
boot environment.

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

9 years agoMFC r251499, r271156, r276321, r276404, r276407, r276799 and r273376:
hselasky [Sun, 11 Jan 2015 11:53:12 +0000 (11:53 +0000)]
MFC r251499, r271156, r276321, r276404, r276407, r276799 and r273376:
Various XHCI fixes and improvements:
- Add IDs for Intel Patsburg USB 2.0 controller (dependancy).
- Add support for polling the XHCI interrupt handler when
  the regular interrupt handler is not working properly or
  in case of MSI interrupts which are not yet supported.
  Remove interrupt setup code for FreeBSD versions older
  than 700031.
- Improve and fix MSI interrupt allocation, setup and release.
- Add missed flushing of data which can happen when "xhci_configure_mask()"
  is called from "xhci_configure_reset_endpoint()". Ensure the 3-strikes
  error feature is always enabled except for ISOCHRONOUS transfers.
- Allow systems having a page size greater than 4K to use fewer
  scatter-gather XHCI TRB entries for its payload data. The XHCI
  controller can handle at least 65536 bytes per scatter-gather list
  entry.
- Add the Intel BayTrail USB device which needs port routing for USB 3.0.

PR: 179342

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

9 years agoMFH r276083:
marck [Sun, 11 Jan 2015 08:40:01 +0000 (08:40 +0000)]
MFH r276083:

  Add VAMI (VMware Appliance Management Interface) port.

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

9 years agoRegen for r276957 (__getcwd() path bug).
dchagin [Sun, 11 Jan 2015 07:13:23 +0000 (07:13 +0000)]
Regen for r276957 (__getcwd() path bug).

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

9 years agoMFC r276564, r276654:
dchagin [Sun, 11 Jan 2015 07:10:43 +0000 (07:10 +0000)]
MFC r276564, r276654:

Cast *path to silence clang -Wpointer-sign warning.

Instead of hiding the kern___getcwd() bug by bogus cast
in r276564, change path type to char * (pathnames are always char *).
And remove bogus casts of malloc().
kern___getcwd() internally doesn't actually use or support u_char *
paths, except to copy them to a normal char * path.

These changes are not visible to libc as libc/gen/getcwd.c misdeclares
__getcwd() as taking a plain char * path.

While here remove _SYS_SYSPROTO_H_ for __getcwd() syscall as
we always have sysproto.h.

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

9 years agoMFC r271480, r271483, r271491, r276765, r276766, r276820,
gjb [Sun, 11 Jan 2015 01:49:52 +0000 (01:49 +0000)]
MFC r271480, r271483, r271491, r276765, r276766, r276820,
r276822, r276827, r276828:

r271480:
  Set PKG_CACHEDIR to an 'All/' directory one level lower
  to fix 'pkg repo' generating repository metadata for the
  on-disc packages.

r271483:
  Fix duplicate PKG_ABI in the PKG_CACHEDIR path.

r271491:
  Simplify dvd package population with pkg-1.3.

r276765:
  Update pkg-stage.sh to be compatible with pkg-1.4.x.

  In 1.3.x and earlier, ABI format is, for example,
  freebsd:11:x86:64.

  In 1.4.x, ABI format is FreeBSD:11:amd64, and a new
  configuration entry, ALTABI, is: freebsd:11:x86:64.

  Export PKG_ABI and PKG_ALTABI accordingly, and if
  PKG_ALTABI is set, create a symlink within the dvd
  PKG_CACHEDIR so both new and old ABI directories
  exist.

r276766:
  Properly change directories before creating the
  PKG_ALTABI -> PKG_ABI symlink.

r276820:
  Print informational output when NOPORTS is set,
  which would otherwise cause pkg-stage.sh to
  silently exit.

r276822:
  Ensure /var/run/ld-elf.so.hints exists before building
  pkg(8).

r276827:
  Ensure the ports directories exist for the list of
  packages intended to be included on the DVD, and
  remove any nonexistent ports from the final list.

  Print the list of missing paths, and ensure that
  DVD_PACKAGES is non-zero length (which should never
  happen).

r276828:
  Switch to x11/gnome3 now that x11/gnome2 no
  longer exists in the ports tree.

Sponsored by: The FreeBSD Foundation

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

9 years agoMerge OpenSSL 0.9.8zd.
jkim [Fri, 9 Jan 2015 01:11:43 +0000 (01:11 +0000)]
Merge OpenSSL 0.9.8zd.

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

9 years agoBelatedly MFC r241440 and r241441:
stefanf [Thu, 8 Jan 2015 21:17:35 +0000 (21:17 +0000)]
Belatedly MFC r241440 and r241441:
Decode the first two fstab fields with strunvis(3). This allows having spaces
in devices and mount paths, encoded as \s or \040.

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

9 years agoMFS: r276576, r276594
bapt [Thu, 8 Jan 2015 10:18:15 +0000 (10:18 +0000)]
MFS: r276576, r276594

Make texinfo a bootstrap tools this fixes cross building when makeinfo is not
available on the host

install-info is also needed for installworld so add it to the bootstrap tools
Add BPATH to the installworld path to ensure using installworld works if
install-info is not in base

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

9 years agoMerge r276744:
rodrigc [Tue, 6 Jan 2015 08:03:01 +0000 (08:03 +0000)]
Merge r276744:
Use CURVNET macros inside inet_get_local_port_range() function.
Without this fix, a kernel with VIMAGE + Infiniband will panic on bootup.

Certain necessary #include statements require LIST_HEAD.
Add these includes to ofed/include/linux/list.h, because
LIST_HEAD is specifically overridden in this file.

PR: 191468
Differential Revision: D1279
Reviewed by: hselasky

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

9 years agoMFC r276250:
markj [Tue, 6 Jan 2015 02:13:48 +0000 (02:13 +0000)]
MFC r276250:
DOF tables are aligned according to the DOF section's alignment constraint,
so take this into account when iterating over DOF tables.

PR: 195555

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

9 years agoMFC r274254: sh(1): Mention portability issue with shifting zero positional
jilles [Sun, 4 Jan 2015 19:05:16 +0000 (19:05 +0000)]
MFC r274254: sh(1): Mention portability issue with shifting zero positional
parameters.

Per Austin Group issue #459, shifting zero positional parameters may or may
not be considered an operand error (which causes the shell to exit in most
cases).

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

9 years agoMFC r271936: sh(1): Clarify that assignments before commands do not affect
jilles [Sun, 4 Jan 2015 19:00:39 +0000 (19:00 +0000)]
MFC r271936: sh(1): Clarify that assignments before commands do not affect
expansions.

PR: 193759

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

9 years agoMFC r272963: pstat(8): Correct description of the SESS column in pstat -t.
jilles [Sat, 3 Jan 2015 15:39:04 +0000 (15:39 +0000)]
MFC r272963: pstat(8): Correct description of the SESS column in pstat -t.

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

9 years agoBump copyright year.
gjb [Fri, 2 Jan 2015 21:41:52 +0000 (21:41 +0000)]
Bump copyright year.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument the following security advisorires:
gjb [Fri, 2 Jan 2015 21:40:58 +0000 (21:40 +0000)]
Document the following security advisorires:
 - FreeBSD-SA-14:28.file
 - FreeBSD-SA-14:30.bind
 - FreeBSD-SA-14:31.ntp

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r270961
alc [Fri, 2 Jan 2015 19:01:00 +0000 (19:01 +0000)]
MFC r270961
  Update a comment to reflect the changes in r213408.

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

9 years agoMFC r275435: Add sleep(1) to /rescue.
delphij [Fri, 2 Jan 2015 18:57:51 +0000 (18:57 +0000)]
MFC r275435: Add sleep(1) to /rescue.

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

9 years agoMFC r275930:
delphij [Fri, 2 Jan 2015 18:51:47 +0000 (18:51 +0000)]
MFC r275930:

Plug a memory leak.

Obtained from: DragonFlyBSD (commit 5119ece)

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

9 years agoMFC: r276052,r276053
bapt [Fri, 2 Jan 2015 18:32:53 +0000 (18:32 +0000)]
MFC: r276052,r276053

Build selective portions of gnu/usr.bin/texinfo as part of build-tools to
ensure that building on a host without makeinfo (i.e. a host where
make delete-old -DWITHOUT_INFO was run), then building with MK_INFO == yes
doesn't manifest in build errors when building info pages

This manifested itself like the following when I was build testing an MFC
change on stable/10:

  makeinfo --no-split -I /usr/src/gnu/lib/libregex/doc -I /usr/src/gnu/lib/libregex/doc regex.texi  -o regex.info
  makeinfo: not found
  *** [regex.info] Error code 127

make[6]: stopped in /usr/src/gnu/lib/libregex/doc
1 error

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

9 years agoMFC r276238:
hselasky [Fri, 2 Jan 2015 08:38:23 +0000 (08:38 +0000)]
MFC r276238:
Add proper Makefiles to build some infiniband example utilities.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276346:
dim [Wed, 31 Dec 2014 16:28:16 +0000 (16:28 +0000)]
MFC r276346:

In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security
warnings.

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

9 years agoMFC r276462:
bz [Wed, 31 Dec 2014 10:04:41 +0000 (10:04 +0000)]
MFC r276462:

  Bump copyright year.

  Happy New Year 2015!

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

9 years agoMFC r276229:
pfg [Wed, 31 Dec 2014 04:52:32 +0000 (04:52 +0000)]
MFC r276229:
Backport fix for binutils 11867: .quad directive not assembled correctly

Alan Modra (and Alan's employer) graciously permitted use of his patch
under GPLv2.

Obtained from: OpenBSD

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

9 years agoMFC: r276221
rmacklem [Wed, 31 Dec 2014 01:38:02 +0000 (01:38 +0000)]
MFC: r276221
Delete some duplicate code that was harmless because
exactly the same code is at the end of the nfscl_checksattr()
function that is called just before it. As such, this code
had already been executed and didn't do anything.

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

9 years agoMFC: r276193
rmacklem [Wed, 31 Dec 2014 01:34:37 +0000 (01:34 +0000)]
MFC: r276193
A deadlock in the NFSv4 server with vfs.nfsd.enable_locallocks=1
was reported via email. This was caused by a LOR between the
sleep lock used to serialize the local locking (nfsrv_locklf())
and locking the vnode. I believe this patch fixes the problem
by delaying relocking of the vnode until the sleep lock is
unlocked (nfsrv_unlocklf()). To avoid nfsvno_advlock() having the side
effect of unlocking the vnode, unlocking the vnode was moved to before
the functions that call nfsvno_advlock().
It shouldn't affect the execution of the default case where
vfs.nfsd.enable_locallocks=0.

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

9 years agoMFC: r276192, r276200
rmacklem [Wed, 31 Dec 2014 01:29:44 +0000 (01:29 +0000)]
MFC: r276192, r276200
Modify vop_stdadvlock{async}() so that it only
locks/unlocks the vnode and does a VOP_GETATTR()
for the SEEK_END case. This is safe to do, since
lf_advlock{async}() only uses the size argument
for the SEEK_END case.
The NFSv4 server needs this when
vfs.nfsd.enable_locallocks!=0 since locking the
vnode results in a LOR that can cause a deadlock
for the nfsd threads.

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

9 years agoMFC r267897: Update Makefile to reflect file update.
delphij [Wed, 31 Dec 2014 00:09:05 +0000 (00:09 +0000)]
MFC r267897: Update Makefile to reflect file update.

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

9 years agoMFH r230580:
peterj [Wed, 31 Dec 2014 00:08:37 +0000 (00:08 +0000)]
MFH r230580:
Don't mention no longer supported ioctl commands.

MFH r274083:
convert .Nm to proper .Xr's...

MFH r275298:
Cross reference tap(4) and tun(4) and include a short explanation as
to how they differ.  This will assist users in selecting which interface
is more appropriate for their purposes.

No objection: glebius (r230580), jmg (r274083)
Approved by: grog (co-mentor)

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

9 years agoMFC: file 5.21
delphij [Tue, 30 Dec 2014 19:51:30 +0000 (19:51 +0000)]
MFC: file 5.21

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

9 years agoMFC r276228:
pfg [Mon, 29 Dec 2014 22:55:54 +0000 (22:55 +0000)]
MFC r276228:

gas: use memmove instead of bogus memcpy.

partial_where points into the buffer that begins with buffer_start
so we need to use memmove() to handle the overlap.
Fixes Sourceware-PR 11456.

Obtained from: OpenBSD (CVS rev. 1.2)

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

9 years agoMFH r275941:
peterj [Sun, 28 Dec 2014 07:16:48 +0000 (07:16 +0000)]
MFH r275941:
Adjust the test of a KASSERT to better match the intent.

This assertion was added in r246213 as a guard against corrupted mbufs
arriving from drivers, the key distinguishing factor of said mbufs being
that they had a negative length. Given we're in a while loop specifically
designed to skip over zero-length mbufs, panicking on a zero-length mbuf
seems incorrect.

Suggested by: rmacklem
MFH go-ahead: benno
Approved by: grog (co-mentor)

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

9 years agoMFC r275906:
jamie [Sat, 27 Dec 2014 02:17:35 +0000 (02:17 +0000)]
MFC r275906:

  Setgid before running a command as a specified user.  Previously only
  initgroups(3) was called, what isn't quite enough.  This brings jail(8)
  in line with jexec(8), which was already doing the right thing.

PR: 195984

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

9 years agoMFC r272671:
markj [Fri, 26 Dec 2014 22:52:43 +0000 (22:52 +0000)]
MFC r272671:
Treat D keywords as identifiers in certain postfix expressions. This allows
one to, for example, access the "provider" field of a struct g_consumer,
even though "provider" is a D keyword.

PR: 169657

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

9 years agoMFC r275011:
markj [Fri, 26 Dec 2014 22:49:27 +0000 (22:49 +0000)]
MFC r275011:
The module load address always needs to be included when setting the dm_*_va
fields of dt_module_t. Previously, this was only done on architectures where
kernel modules have type ET_REL; this change fixes that. As a result, symbol
name resolution in the stack() action now works properly for kernel modules
on i386.

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

9 years agoMFC r275790 and r275791:
hselasky [Fri, 26 Dec 2014 11:34:45 +0000 (11:34 +0000)]
MFC r275790 and r275791:
Resolve USB driver identification conflict.
Regenerate etc/devd/usb.conf.

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