]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
8 years agoFix multiple OpenSSL vulnerabilities as published in
delphij [Mon, 7 Mar 2016 16:18:07 +0000 (16:18 +0000)]
Fix multiple OpenSSL vulnerabilities as published in
OpenSSL advisory on 2016/03/01:

constant-time MOD_EXP_CTIME_COPY_FROM_PREBUF.
[CVE-2016-0702, upstream d6482a85ea08bdd6d422e,
8fc8f48 317be63 skipped intentionally as we are not
using the code on FreeBSD.  Backport done by jkim@.

Fix memory issues in BIO_*printf functions.
[CVE-2016-0799, upstream d889682a801bf2].

Fix BN_hex2bn/BN_dec2bn NULL ptr/heap corruption.
[CVE-2016-0797, upstream 8f65132].

Disable SSLv2 in default negotiation and weak ciphers.
[CVE-2016-0800 "DROWN", upstream 56f1acf5].  Note that
support of SSLv2 is not removed in order to preserve
ABI compatibility, and application may still explicitly
ask for vulnerable protocol or ciphers.

In collaboration with: jkim

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

8 years agoMFC r295671:
pfg [Mon, 7 Mar 2016 16:13:54 +0000 (16:13 +0000)]
MFC r295671:
cron: use (char *)NULL instead of (char *)0 in execle.

Obtained from: OpenBSD (CVS Rev 1.25)

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

8 years agoRevert r286714: Add a new option "-fstack-protector-strong".
pfg [Mon, 7 Mar 2016 15:20:59 +0000 (15:20 +0000)]
Revert r286714: Add a new option "-fstack-protector-strong".

The stack-protector-strong option was causing problems when building
perl5. This was never within the official featureset of the older GCC
4.x toolchain so just drop it to avoid patching the perl port.

PR: 205307

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

8 years agoMFC r295928:
hselasky [Mon, 7 Mar 2016 10:02:31 +0000 (10:02 +0000)]
MFC r295928:
Configure the correct bMaxPacketSize for control endpoints before
requesting the initial complete device descriptor and not as part of
the subsequent babble error recovery. Babble means that the received
USB packet was bigger than than configured maximum packet size. This
only affects enumeration of FULL speed USB devices which use a
bMaxPacketSize different from 8 bytes. This patch might help fix
enumeration of USB devices which exhibit USB I/O errors in dmesg
during boot.

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

8 years agoMFC r295923:
hselasky [Mon, 7 Mar 2016 09:39:35 +0000 (09:39 +0000)]
MFC r295923:
Be more verbose when truncating number of HID items.

Suggested by: Larry Rosenman <ler@lerctr.org>

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

8 years agoMFC r296419 (by kib):
dim [Mon, 7 Mar 2016 07:57:57 +0000 (07:57 +0000)]
MFC r296419 (by kib):

In the link_elf_obj.c, handle sections of type SHT_AMD64_UNWIND same
as SHT_PROGBITS.  This is needed after the clang 3.8 import, which
generates that type for .eh_frame section, which had SHT_PROGBITS type
before.

Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
PR: 207729
Tested by: dim (previous version)
Sponsored by: The FreeBSD Foundation

MFC r296428:

Since kernel modules can now contain sections of type SHT_AMD64_UNWIND,
the boot loader should not skip over these anymore while loading images.
Otherwise the kernel can still panic when it doesn't find the .eh_frame
section belonging to the .rela.eh_frame section.

Unfortunately this will require installing boot loaders from sys/boot
before attempting to boot with a new kernel.

Reviewed by: kib

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

8 years agoMFC r295901:
dim [Mon, 7 Mar 2016 07:49:01 +0000 (07:49 +0000)]
MFC r295901:

Fix a problem in ld, causing it to sometimes print messages similar to
"invalid string offset 65521 >= 27261 for section `.strtab'". for object
files produced by recent versions of clang.

In BFD's elf_create_symbuf() function, the size of the symbol buffer
('ssymbuf') is not calculated correctly, and the initial value for the
'ssym' variable is off by one, since 'ssymbuf' has shndx_count + 1
members.

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

8 years agoMFC r295969:
ae [Wed, 2 Mar 2016 13:54:43 +0000 (13:54 +0000)]
MFC r295969:
  Fix bug in filling and handling ipfw's O_DSCP opcode.
  Due to integer overflow CS4 token was handled as BE.

  PR: 207459

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

8 years agoUPDATING: move the note about the Linux kernel version bump to the top and
rene [Mon, 29 Feb 2016 18:58:26 +0000 (18:58 +0000)]
UPDATING: move the note about the Linux kernel version bump to the top and
adjust the date and SVN revision number.

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

8 years agoMFC r271982:
rene [Mon, 29 Feb 2016 18:55:27 +0000 (18:55 +0000)]
MFC r271982:

Bump the default version of the Linux emulation layer to 2.6.18 to support
the CentOS 6 ports out of the box.

MFC r271990:

Add a note to UPDATING

Approved by: dchagin
Differential Revision: https://reviews.freebsd.org/D5418

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

8 years agoMFC r294949,r294952,r294953,r294957,r294965,r294967,r294968,r295017,r295026,
bdrewery [Sat, 27 Feb 2016 21:05:21 +0000 (21:05 +0000)]
MFC r294949,r294952,r294953,r294957,r294965,r294967,r294968,r295017,r295026,
    r295027,r295029,r295030,r295649:

  r294949:
    filemon_ioctl: Handle error from devfs_get_cdevpriv(9).
  r294952:
    filemon_ioctl: Lock the associated filemon handle before writing to it.
  r294953:
    filemon_comment has nothing to do with wrappers so move it out of
    filemon_wrapper.c.
  r294957:
    filemon_dtr: Lock the associated filemon handle before writing to it.
  r294965:
    filemon: Use process_exit EVENTHANDLER to capture process exit.
  r294967:
    filemon: Trace fork via process_fork event.
  r294968:
    Follow-up r294967: Mark flags unused.
  r295017:
    filemon: Use process_exec EVENTHANDLER to capture sys_execve.
  r295026:
    filemon_open: Don't record a process to trace here.
  r295027:
    filemon: Track the process pointer rather than a pid.
  r295029:
    Document the purpose and non-purpose of filemon(4).
  r295030:
    Note the double fork behavior with filemon.
  r295649:
    filemon: Fix panic when fork1() is called from kproc_create().

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

8 years agoMFC r242088:
bdrewery [Sat, 27 Feb 2016 20:57:34 +0000 (20:57 +0000)]
MFC r242088:

  Desupport pre-FreeBSD 7.1.

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

8 years agoRegenerate
bdrewery [Sat, 27 Feb 2016 20:54:23 +0000 (20:54 +0000)]
Regenerate

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

8 years agoMFC r250658,r250828:
bdrewery [Sat, 27 Feb 2016 20:51:42 +0000 (20:51 +0000)]
MFC r250658,r250828:

  r250658:
    Add a new option WITHOUT_FORMAT_EXTENSIONS to disable flags related to
    checking our kernel printf extensions.  This is useful to allow compilers
    without these extensions to build kernels.
  r250828:
    Spell extensions correctly.

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

8 years agoMFC r294933:
bdrewery [Sat, 27 Feb 2016 20:45:07 +0000 (20:45 +0000)]
MFC r294933:

  Drop any previous fd when setting a new one.

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

8 years agoMFC r295830
davidcs [Thu, 25 Feb 2016 18:28:56 +0000 (18:28 +0000)]
MFC r295830
Remove dead code. Code Cleanup. Improve clarity in debug messages

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

8 years agoMFC r295823
davidcs [Thu, 25 Feb 2016 18:25:36 +0000 (18:25 +0000)]
MFC r295823
Modified the use of bxe_grc_dump() function so that it can be invoked directly at any potential error path, where a fwdump is needed. The fwdump (a.k.a grcdump) is stored in a driver buffer. The sysctl grcdump_done indicates if a fwdump was taken and waiting to be retrieved.
The sysctl trigger_grcdump can be used to manually trigger a fwdump.

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

8 years agoMFC r295844:
dim [Wed, 24 Feb 2016 07:53:57 +0000 (07:53 +0000)]
MFC r295844:

Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8).

Currently, zfs(8) and zpool(8) print "invalid type '(null)'" or similar
messages, if you pass in invalid types, sources or column names for "zfs
get", "zfs list" and "zpool get".  This is because the commands use
getsubopt(3), and in case of failure, they print 'value', which is NULL
when sub options don't match.

They should print 'suboptarg' instead, which is the documented way to
get at the non-matching sub option value.

Reviewed by: smh
Differential Revision: https://reviews.freebsd.org/D5365

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

8 years agoInstant-MFC r295914: MFV r295913:
delphij [Tue, 23 Feb 2016 08:12:39 +0000 (08:12 +0000)]
Instant-MFC r295914: MFV r295913:

Partially apply upstream changeset 6e06b1c8 (kientzle).

Limit filter recursion level to 25 (instead of infinite).  This fixes a
potential crash issue discovered by Alexander Cherepanov.

PR: 207362
Reported by: Robert Clausecker
Obtained from: libarchive github project
Approved by: so

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

8 years agoMFH (r273114, r273124): turn SSLv3 off by default
des [Sat, 20 Feb 2016 13:36:24 +0000 (13:36 +0000)]
MFH (r273114, r273124): turn SSLv3 off by default
MFH (r294326): fall back to standard / configured CA store
MFH (r295536): fix double-free when SSL connection fails

PR: 193871 206774

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

8 years agoMFC r294854
davidcs [Fri, 19 Feb 2016 21:51:27 +0000 (21:51 +0000)]
MFC r294854
  Upgrade FW to 5.4.56
  Update driver version to 3.10.26

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

8 years agoMFC r295616:
pfg [Wed, 17 Feb 2016 19:11:09 +0000 (19:11 +0000)]
MFC r295616:
ext2fs: Remove panics for rename() race conditions.

Sync with r84642 from UFS:

The panics are inappropriate because the IN_RENAME flag only fixes a
few of the huge number of race conditions that can result in the
source path becoming invalid even prior to the VOP_RENAME() call.

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

8 years agoMFC 295418,295419:
jhb [Wed, 17 Feb 2016 01:45:34 +0000 (01:45 +0000)]
MFC 295418,295419:
Fix hangs or panics when misbehaved kernel threads return from their
main function.

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

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

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

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

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

PR: 204999

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

8 years agoFC r295455
bapt [Tue, 16 Feb 2016 23:01:19 +0000 (23:01 +0000)]
FC r295455

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

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

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

PR: 207095
Submitted by: madpilot

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

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

ntp leap-leapseconds support.

r289421:

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

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

r293037:

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

r294773:

Add support for automatic leap-second file updates.

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

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

r294884:

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

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

8 years agoMFC r295234:
ume [Sun, 7 Feb 2016 17:03:49 +0000 (17:03 +0000)]
MFC r295234:

  Make sure to enable aliases for SHIFT_JIS.

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

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

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

PR: 206820

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

8 years agoMFC r292313 (by lidl): Skip unavailable pools when running zfs pool scrubs
mav [Fri, 5 Feb 2016 14:16:42 +0000 (14:16 +0000)]
MFC r292313 (by lidl): Skip unavailable pools when running zfs pool scrubs

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

8 years agoMFC r295147:
ume [Wed, 3 Feb 2016 11:41:55 +0000 (11:41 +0000)]
MFC r295147:
  Make dynamic link of libiconv from ports work again.
  The symbols of libiconv from ports were changed to
  have prefixed.
  Since we have iconv in our libc these days, we don't
  need it on 10.X and later.  However, 9.X still need
  this.

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

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

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

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

8 years agoFix OpenSSL SSLv2 ciphersuite downgrade vulnerability.
delphij [Sat, 30 Jan 2016 06:09:38 +0000 (06:09 +0000)]
Fix OpenSSL SSLv2 ciphersuite downgrade vulnerability.

Security: CVE-2015-3197
Security: FreeBSD-SA-16:11.openssl

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

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

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

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

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

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

Sponsored by: The FreeBSD Foundation

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

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

Implement AT_SECURE properly.

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

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

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

8 years agoMFC: r256940
jkim [Tue, 26 Jan 2016 21:35:47 +0000 (21:35 +0000)]
MFC: r256940

Allow users to set UUID in network byte order regardless of SMBIOS version.

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

8 years agoMFH (r261233): cleanup
des [Tue, 26 Jan 2016 07:44:26 +0000 (07:44 +0000)]
MFH (r261233): cleanup
MFH (r261234): increase buffer size
MFH (r280630): remove all traces of SSLv2 support
MFH (r285141): remove unused variable
MFH (r288217): correctly check return value from getaddrinfo(3)
MFH (r289419): fix bugs in HTTPS tunnelling
MFH (r289420): use fopen()'s "e" mode instead of fcntl for close-on-exec
MFH (r291453, r291461): use .netrc for http servers and proxies
MFH (r292330, r292332): reset bufpos to 0 after refilling in chunked mode

PR: 194483 199801 193740 204771

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

8 years agoMFstable/10 r294770:
ngie [Tue, 26 Jan 2016 06:39:11 +0000 (06:39 +0000)]
MFstable/10 r294770:

MFC r278047:

PR: 206622

r278047 (by amdmi3):

- Remove more files when MK_BSNMP == no

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

8 years agoRevert r279011:
pfg [Tue, 26 Jan 2016 05:04:36 +0000 (05:04 +0000)]
Revert r279011:
tdelete(3): don't delete the node we are about to return.

The original change, from NetBSD, was bogus; introduced a memory
leak and and broke POSIX. By reverting we actually match NetBSD's
latest revision.

This is a revert of the original merge: this function was rewritten
in 11-current.

Reported by: Markiyan Kushnir
Obtained from: NetBSD (CVS rev. 1.7, 1.8)

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

8 years agoMFC 288833:
jgh [Mon, 25 Jan 2016 20:04:06 +0000 (20:04 +0000)]
MFC 288833:

PR:           203440 (based on)
Submitted by: ceratv@rpi.edu
Approved by:  wblock@ (mentor)
Differential Revision:        https://reviews.freebsd.org/D3813

- address grammar

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

8 years agoFix mismerge in r294738. No MK_FAST_DEPEND on stable/9
bdrewery [Mon, 25 Jan 2016 17:40:53 +0000 (17:40 +0000)]
Fix mismerge in r294738. No MK_FAST_DEPEND on stable/9

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

8 years agoMFC r294370:
bdrewery [Mon, 25 Jan 2016 17:39:59 +0000 (17:39 +0000)]
MFC r294370:

  mkdep: Fix -include not being added for .depend tracking.

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

8 years agoMFstable/10 r294657:
ngie [Sun, 24 Jan 2016 06:20:57 +0000 (06:20 +0000)]
MFstable/10 r294657:

MFC r293073:

- Use attach_md instead of hardcoding md(4) provider unit numbers
- Implement a gmirror_test_cleanup function, which in turn calls
  geom_test_cleanup to clean up all md(4) providers allocated in the test
  run.
- Remove duplicate logic in test scripts for removing md(4) providers.
- Don't create files in /tmp (outside the kyua sandbox); use the current
  directory instead

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

8 years agoMFC r293858
vangyzen [Sat, 23 Jan 2016 20:51:57 +0000 (20:51 +0000)]
MFC r293858

libthr: const-ify two variables

Make the default umutex and urwlock initializers const,
because they can be, and as a microoptimization.

Sponsored by:   Dell Inc.

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

8 years agoMFC 294366:
jhb [Sat, 23 Jan 2016 17:08:17 +0000 (17:08 +0000)]
MFC 294366:
Initialize vm_page_prot to VM_MEMATTR_DEFAULT instead of 0.

If a driver's Linux mmap callback passed vm_page_prot through unchanged,
then linux_dev_mmap_single() would try to apply whatever VM_MEMATTR_xxx
value 0 is to the mapping.  On x86, VM_MEMATTR_DEFAULT is the PAT value
for write-back (WB) which is 6, while 0 maps to the PAT value for
uncacheable (UC).  Thus, any mmap request that did not explicitly set
page_prot was tried to map memory as UC triggering the warning in
sg_pager_getpages().

Sponsored by: Chelsio Communications

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

8 years agoMFC r294554: MFV r294491: ntp 4.2.8p6.
delphij [Fri, 22 Jan 2016 15:56:35 +0000 (15:56 +0000)]
MFC r294554: MFV r294491: ntp 4.2.8p6.

Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975
Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978
Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139
Security: CVE-2015-8140, CVE-2015-8158
With hat: so

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

8 years agoMFstable/10 r294550:
ngie [Fri, 22 Jan 2016 07:25:41 +0000 (07:25 +0000)]
MFstable/10 r294550:

MFC r293048,r293444:

r293048:

- Use a temporary file for the temporary md(4) devices instead of
  hardcoding it
- Remove the temporary file in the cleanup routine

r293444:

- Move functions that might be used in class-specific cleanup functions
  (geom_test_cleanup, etc) down so the testcases don't emit noise when
  bailing
- Conform to the TAP protocol better when dealing with classes that can't
  be loaded and with temporary files that can't be allocated for tracking
  md(4) devices.

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

8 years agoMFC r293856:
brooks [Wed, 20 Jan 2016 19:56:43 +0000 (19:56 +0000)]
MFC r293856:

Avoid reading pass the end of the source buffer when it is not NUL
terminated.

If this buffer is adjacent to an unmapped page or a version of C with
bounds checked is used this may result in a crash.

PR: 206178
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>

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

8 years agoMFC r293855:
brooks [Wed, 20 Jan 2016 19:52:01 +0000 (19:52 +0000)]
MFC r293855:

Avoid reading pass the end of the source buffer when it is not NUL
terminated.

If this buffer is adjacent to an unmapped page or a version of C with
bounds checked is used this may result in a crash.

PR: 206177
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>

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

8 years agoMFV r294374: BIND 9.9.8-P3.
delphij [Wed, 20 Jan 2016 08:54:35 +0000 (08:54 +0000)]
MFV r294374: BIND 9.9.8-P3.

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

8 years agoMergeinfo fixup.
delphij [Wed, 20 Jan 2016 07:33:45 +0000 (07:33 +0000)]
Mergeinfo fixup.

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

8 years agoMFC 292410,292443,293977:
jhb [Tue, 19 Jan 2016 19:04:56 +0000 (19:04 +0000)]
MFC 292410,292443,293977:
Exit cleanly if malloc() fails to allocate a buffer for a copy of the
current MBR.

PR: 205322
Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>

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

8 years agoMFC r294102:
dim [Tue, 19 Jan 2016 18:35:22 +0000 (18:35 +0000)]
MFC r294102:

MFV r294101: 6527 Possible access beyond end of string in zpool comment

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Gordon Ross <gwr@nexenta.com>

illumos/illumos-gate@2bd7a8d078223b122d65fea49bb8641f858b1409

This fixes erroneous double increments of the 'check' variable in a loop
in spa_prop_validate().  I ran into this in the clang380-import branch,
where clang 3.8.0 warns about it.  (It is already fixed there.)

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

8 years agoRevert r294273
pfg [Tue, 19 Jan 2016 14:15:09 +0000 (14:15 +0000)]
Revert r294273
MFC r293680
ext4: add support for reading sparse files

The change was meant for newer versions and doesn't work out of the box.
While it seems easy to adapt I prfer not to have the implementations
diverge at this time.

Reported by: Arrigo Marchiori
PR: 205816

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

8 years agoMFstable/10 r294305:
ngie [Tue, 19 Jan 2016 01:42:31 +0000 (01:42 +0000)]
MFstable/10 r294305:

MFC r294128:

Fix -Wunused warning with clang/gcc

- Get rid of unused argc/argv variables in main
- Bump WARNS to 6

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

8 years agoMFstable/10 r294303:
ngie [Tue, 19 Jan 2016 01:39:29 +0000 (01:39 +0000)]
MFstable/10 r294303:

MFC r294103:

- Check for accf_filter before running the tests, otherwise it will always
  fail at subtest 9/11
- Use strncpy instead of strcpy with afa.af_name

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

8 years agoMFstable/10 r294300:
ngie [Tue, 19 Jan 2016 01:33:27 +0000 (01:33 +0000)]
MFstable/10 r294300:

MFC r293715:

Fix a mismerge from NetBSD in r162194 with `xdr_rpcb_entry_list_ptr(..)`

This fixes the potential NULL pointer dereference properly, and also fixes
memory leaks encountered in the process of iterating through `*rp`.

Found by: Valgrind
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>

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

8 years agoMFC r293190: MFV r293125: less v481.
delphij [Mon, 18 Jan 2016 19:27:24 +0000 (19:27 +0000)]
MFC r293190: MFV r293125: less v481.

Relnotes: yes

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

8 years agoMFC r293680
pfg [Mon, 18 Jan 2016 15:43:37 +0000 (15:43 +0000)]
MFC r293680
ext4: add support for reading sparse files

Add support for sparse files in ext4. Also implement read-ahead, which
greatly increases the performance when transferring files from ext4.
The sparse file support has become very common in ext4.

Both features implemented by Damjan Jovanovic.

PR: 205816

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

8 years agoMFC r293679:
ae [Mon, 18 Jan 2016 11:51:41 +0000 (11:51 +0000)]
MFC r293679:
  Change the type of newsize argument in the smbfs_smb_setfsize() function
  from int to int64.
  MSDN says that SMB_SET_FILE_END_OF_FILE_INFO uses signed 64-bit integer
  to specify offset, but since smbfs_smb_setfsize() has used plain int,
  a value was truncated in case when offset was larger than 2G.
   https://msdn.microsoft.com/en-us/library/ff469975.aspx

  In particular, now `truncate -s 10G` will work correctly on the mounted
  SMB share.

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

8 years agoMFstable/10 r294240:
ngie [Mon, 18 Jan 2016 03:52:44 +0000 (03:52 +0000)]
MFstable/10 r294240:

MFC r293705:

Similar to r293704, fix theoretical leak of netconfig(3) resources in
__rpcbind_is_up(..) if getnetconfig(3) is partly successful in allocating
resources, but not completely successful by moving the endnetconfig(3) call
up before we return from the function if nconf == NULL.

Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>

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

8 years agoMFstable/10 r294239:
ngie [Mon, 18 Jan 2016 03:51:38 +0000 (03:51 +0000)]
MFstable/10 r294239:

MFC r293704:

Fix theoretical leak of netconfig(3) resources in svcunix_create(..)

In the event that the getconfig(3) call in svcunix_create is partly successful,
some of the netconfig(3) resources allocated might be leaked if the call returns
NULL as endnetconfig(3) wasn't called explicitly in that case. Ensure that the
resources are fully cleaned up by going to the `done` label, which will call
endnetconfig(3) for us.

Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>

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

8 years agoDocument SA-16:07
gjb [Fri, 15 Jan 2016 05:48:28 +0000 (05:48 +0000)]
Document SA-16:07

Sponsored by: The FreeBSD Foundation

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

8 years agoFix dates for previous errata update.
gjb [Fri, 15 Jan 2016 05:38:27 +0000 (05:38 +0000)]
Fix dates for previous errata update.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFstable/10 r294066:
ngie [Fri, 15 Jan 2016 02:32:57 +0000 (02:32 +0000)]
MFstable/10 r294066:

MFC r293032:

Use randomly generated device names in testcases via mktemp -u instead of using
the hardcoded device name, "test"

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

8 years agoMFstable/10 r294063:
ngie [Fri, 15 Jan 2016 02:19:26 +0000 (02:19 +0000)]
MFstable/10 r294063:

MFC r293028,r293029:

r293028:

- Use geom <class> load instead of g<class> load; g<class> doesn't exist
  for all geom classes, e.g. geom_uzip(4)
- These tests require root. Skip all of the tests if they're run as non-root

r293029:

Add functions for managing md(4) devices and cleaning up said md(4) devices

These will be used soon in the various test scripts that source geom_subr.sh

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

8 years agoMerge r294048: fix OpenSSH client information leak.
glebius [Thu, 14 Jan 2016 22:50:35 +0000 (22:50 +0000)]
Merge r294048: fix OpenSSH client information leak.

Security: SA-16:07.openssh
Security: CVE-2016-0777

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

8 years agoDocument EN-16:01, EN-16:02, EN-16:03, SA-15:27, SA-16:01,
gjb [Thu, 14 Jan 2016 11:11:46 +0000 (11:11 +0000)]
Document EN-16:01, EN-16:02, EN-16:03, SA-15:27, SA-16:01,
SA-16:02, SA-16:03, SA-16:04, SA-16:05, SA-16:06.

Bump copyright date.

Sponsored by: The FreeBSD Foundation

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

8 years agoo Fix SCTP ICMPv6 error message vulnerability. [SA-16:01.sctp]
glebius [Thu, 14 Jan 2016 09:11:48 +0000 (09:11 +0000)]
o Fix SCTP ICMPv6 error message vulnerability. [SA-16:01.sctp]
o Fix ntp panic threshold bypass vulnerability. [SA-16:02.ntp]
o Fix Linux compatibility layer incorrect futex handling. [SA-16:03.linux]
o Fix Linux compatibility layer setgroups(2) system call. [SA-16:04.linux]
o Fix TCP MD5 signature denial of service. [SA-16:05.tcp]
o Fix insecure default bsnmpd.conf permissions. [SA-16:06.bsnmpd]

Security: FreeBSD-SA-16:01.sctp, CVE-2016-1879
Security: FreeBSD-SA-16:03.linux, CVE-2016-1880
Security: FreeBSD-SA-16:04.linux, CVE-2016-1881
Security: FreeBSD-SA-16:05.tcp, CVE-2016-1882
Security: FreeBSD-SA-16:06.bsnmpd, CVE-2015-5677

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

8 years agoMFC r293683:
pfg [Thu, 14 Jan 2016 01:51:18 +0000 (01:51 +0000)]
MFC r293683:
ext4: mount panic from freeing invalid pointers

Initialize the struct with those fields to zeroes on allocation,
preventing the panic.

Patch by: Damjan Jovanovic.

PR: 206056

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

8 years agoMerge r291073:
glebius [Wed, 13 Jan 2016 05:32:24 +0000 (05:32 +0000)]
Merge r291073:
  If a NIS server has long entries on its database that is bigger than
  1024 specified on YPMAXRECORD the ypmatch can get in an infinite retry
  loop when is requesting the information from the NIS server.

  The ypmatch(1) will return an error until the command receives an
  kill(1).

  To avoid this problem, we check the MAX_RETRIES that is by default set
  to 20 and avoid get in infinet loop at the client side.

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

8 years agoMFC r292639
davidcs [Tue, 12 Jan 2016 23:48:39 +0000 (23:48 +0000)]
MFC r292639
  Add support for firmware dump (a.k.a grcdump)

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

8 years agoMFC r292638
davidcs [Tue, 12 Jan 2016 23:44:03 +0000 (23:44 +0000)]
MFC r292638
    Check for packet_length is greater than 60 bytes as well as packet_length is
    greater than len_on_bd, before invoking the routine to handle jumbo over SGL
    (bxe_service_rxsgl()).
    Add counters for number of jumbo_over_SGL packets (rx_bxe_service_rxsgl) and
    erroneous jumbo_over_SGL packets (rx_erroneous_jumbo_sge_pkts)

    Fix formatting in bxe_sysctl_state()

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

8 years agoMFC r289199
davidcs [Tue, 12 Jan 2016 23:26:45 +0000 (23:26 +0000)]
MFC r289199
  Add support for reading device temperature

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

8 years agoMFC r292950:
dim [Tue, 12 Jan 2016 19:33:43 +0000 (19:33 +0000)]
MFC r292950:

Drop the clang patch which adds recognition of 'CC' suffixes as aliases
for --driver-mode=g++, since this was never upstreamed.  For backwards
compatibility, add a wrapper shell script.

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

8 years agoMFC r292989:
hselasky [Tue, 12 Jan 2016 09:03:39 +0000 (09:03 +0000)]
MFC r292989:
Handle when filedescriptors are closed before initialized. An early
fdclose() call can cause fget_unlocked() to fail.

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

8 years agoMerge r293423, r293469:
glebius [Mon, 11 Jan 2016 01:48:16 +0000 (01:48 +0000)]
Merge r293423, r293469:
  ntp 4.2.8p5

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

8 years agoInstall stdatomic.h.
glebius [Mon, 11 Jan 2016 01:45:25 +0000 (01:45 +0000)]
Install stdatomic.h.

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

8 years agoMFC r293370:
pfg [Sun, 10 Jan 2016 22:31:39 +0000 (22:31 +0000)]
MFC r293370:
ext2fs: reading mmaped file in Ext4 causes panic

Always call brelse(path.ep_bp), fixing reading EXT4 files using mmap().

Patch by Damjan Jovanovic.

PR: 205938

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

8 years agoMFstable/10 r276677:
ngie [Sat, 9 Jan 2016 21:33:31 +0000 (21:33 +0000)]
MFstable/10 r276677:

MFC r276319:

  Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and
  snmp_passwd_to_keys

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

8 years agoMFC r291941:
bdrewery [Fri, 8 Jan 2016 00:07:37 +0000 (00:07 +0000)]
MFC r291941:

  Replace unneeded manual dependency on header by adding it to SRCS.

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

8 years agoMFC r279969:
np [Fri, 8 Jan 2016 00:05:20 +0000 (00:05 +0000)]
MFC r279969:

cxgbe(4):  fix if_media handling for T520-BT cards.  1Gbps and 100Mbps
are valid for this card.

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

8 years agoMFstable/10 r293246,r293257:
ngie [Wed, 6 Jan 2016 20:09:51 +0000 (20:09 +0000)]
MFstable/10 r293246,r293257:

r293246:

MFC r292530,r292546:

r292530:

- Use 1 for an exit code instead of -1 with err, errx, and exit
- Add unistd.h for getuid(3)
- Sort #includes

r292546:

- Convert testcase to TAP format
- Use nitems(x) instead of handrolled sizeof(x) / sizeof(*x) macro
- Do not mark count != 0 case with bsde_get_rule_count as a failure; this
  generates false positives on systems with ugidfw rules set on it

r293257:

MFC r292650,r292651:

r292650:

Move mac_bsdextended check up before running the test_libugidfw_strings testcases

I realize that these tests could be run before mac_bsdextended is loaded, but
it would overcomplicate things to special case handle the testcases before doing
the mac_bsdextended(4) feature check

The testcases will be split up so they can be run separately in the near future

r292651:

Delete the comment about running `test_libugidfw_strings` before testing
`mac_is_present` so it doesn't accidentally confuse people

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

8 years agoMFC r270675:
bdrewery [Wed, 6 Jan 2016 17:53:51 +0000 (17:53 +0000)]
MFC r270675:

  Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env
  var if set)

PR: 205965
Relnotes: yes

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

8 years agoMFC r292877:
pfg [Wed, 6 Jan 2016 16:35:30 +0000 (16:35 +0000)]
MFC r292877:
pax: prevent possible buffer overflow

Or at least quiet down some static analyzers about it.

CID: 978835
Obtained from: OpenBSD

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

8 years agoMFC r292872:
pfg [Wed, 6 Jan 2016 16:27:17 +0000 (16:27 +0000)]
MFC r292872:

ext2: recognize ext4 INCOMPAT_RECOVER flag

This is a flag specific for journalling in ext4.
Add it to the list of ext4 features we ignore for
read-only purposes.

PR: 205668

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

8 years agoAdd missed mergeinfo.
hselasky [Mon, 4 Jan 2016 08:39:56 +0000 (08:39 +0000)]
Add missed mergeinfo.

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

8 years agoMFC r291199:
hselasky [Mon, 4 Jan 2016 07:29:19 +0000 (07:29 +0000)]
MFC r291199:
Fix compile warning about shifting signed negative constant.

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

8 years agoMFstable/10 r293141:
ngie [Mon, 4 Jan 2016 07:04:58 +0000 (07:04 +0000)]
MFstable/10 r293141:

MFC r292815:

Staticize several variables that are used exclusively in bsnmpd/main.c and
bsnmpd/trap.c

This fixes several -Wmissing-variable-declaration warnings noted by clang

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

8 years agoMFstable/10 r293138:
ngie [Mon, 4 Jan 2016 06:58:39 +0000 (06:58 +0000)]
MFstable/10 r293138:

MFC r292531,r292532,r292533,r292545:

r292531:

Make test_matches.sh into a series of TAP testcases

Use temporary filesystems / memory disks instead of a hardcoded path
which doesn't exist on test systems

r292532:

Mark `subject matching jailid` testcase as an unexpected failure with
TODO to ensure that the testcase isn't marked as a failure

PR: 205481

r292533:

Skip the testcases if mac_bsdextended(4) isn't detected on the
system

r292545:

Redo the TAP integration so it works with Kyua

Kyua needs numbers in the TAP results :/, but prove doesn't

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

8 years agoMFC r292605, r292606, r292607, r292608:
pfg [Mon, 4 Jan 2016 03:22:06 +0000 (03:22 +0000)]
MFC r292605, r292606, r292607, r292608:

cron: bring some fixes for Coverity reports and other issues.

crontab: replace malloc + bzero with calloc
crontab: properly free an entry
cron: Check the return value of pipe(2)

CID: 271773, 1009830,

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

8 years agoMFC r293015:
dim [Sun, 3 Jan 2016 17:23:16 +0000 (17:23 +0000)]
MFC r293015:

Merge r293013 from clang380-import branch:

Fix a clang 3.8.0 warning in pflogd.c:

contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
       if (!if_exists(interface) == -1) {
   ^                     ~~

The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check.  Just ditch the == -1 instead.

Obtained from: OpenBSD's pflogd.c 1.49

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

8 years agoMFC r293014:
dim [Sun, 3 Jan 2016 17:19:17 +0000 (17:19 +0000)]
MFC r293014:

Merge r293006 from clang380-import branch:

For determining the compiler version, quote the string to be echo'd,
otherwise the command might fail.  This is because clang -v now results
in the following:

FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn)

The second "3.8.8svn)" string tripped up the shell command.

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

8 years agoMFstable/10 r293025:
ngie [Fri, 1 Jan 2016 00:38:17 +0000 (00:38 +0000)]
MFstable/10 r293025:

MFC r292884:

Fix getopt(3) argument after r290180; I forgot to change -r to -R
by accident

Pointyhat to: ngie

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

8 years agoMFC r292719:
ume [Fri, 1 Jan 2016 00:36:20 +0000 (00:36 +0000)]
MFC r292719:
  Remove _gethostbynisname() and _gethostbynisaddr().  These functions
  used to be called from getipnodebyname().

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

8 years agoMFstable/10 r293003:
ngie [Thu, 31 Dec 2015 20:52:39 +0000 (20:52 +0000)]
MFstable/10 r293003:

MFC r292640,r292641:

r292640:

Clean up trailing whitespace; no functional change

r292641:

Fix r292640

vim overzealously removed some trailing `+' and I didn't check the
diff

Pointyhat to: ngie

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

8 years agoMFstable/10 r292998:
ngie [Thu, 31 Dec 2015 20:51:05 +0000 (20:51 +0000)]
MFstable/10 r292998:

MFC r292710:

Remove unused function `act_getkernstring`

This fixes a clang -Wunused warning

Differential Revision: https://reviews.freebsd.org/D4697
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292983:
bz [Thu, 31 Dec 2015 11:25:45 +0000 (11:25 +0000)]
MFC r292983:

 Bump copyright year.

 Happy New Year 2016!

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

8 years agoMFstable/10 r292975:
ngie [Thu, 31 Dec 2015 04:01:52 +0000 (04:01 +0000)]
MFstable/10 r292975:

MFC r278860:
r278860 (by jmg):

remove NULL check as M_WAITOK will not return NULL

Reviewed by: jhb
Sponsored by: FreeBSD Foundation

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

8 years agoMFstable/10 r292879:
ngie [Tue, 29 Dec 2015 18:33:43 +0000 (18:33 +0000)]
MFstable/10 r292879:

MFC r265842,r266120,r266121,r266959,r267148,r269985,r281789,r282261,r285064:

r265842 (by eadler):

arcconfig: add one

Add a .arcconfig to allow arc to work in its usual way.

r266120 (by bapt):

Add project name to the arc config it is still required when arcanist is used with SVN

r266121 (by bapt):

Add the missing coma

r266959 (by eadler):

arc: add linting for python files

r267148 (by bapt):

Prevent arc commands from overwriting history

r269985 (by gjb):

Update the URL to the phabricator instance.

Sponsored by: The FreeBSD Foundation

r281789 (by eadler):

phabricator related changes:
- don't lint either contrib or crypto: these are both externally written
  directories
- add additional linters for spelling (check common typos like teh ->
  the)
- chmod linter checks for executible bit on bad files
- merge-conflict checks for merge conflict tokens then may have been
  resolved incorrectly
- filename checks for back characters in filenames
- json for json syntax correctness

- remove history.immutable: it is meaningless on subversion, and causes
  workflow problems when trying to use git.  It it set to 'true' by
  default with hg

r282261 (by eadler):

Phabricator: enable "history.immutable":
With certain arc workflows leaving history.immutable as false
results in using the upstream template instead of our usual
commit template.  Since the git workflow issues alluded to in my
prior commit message can be worked around, set history.immutable
once again.

r285064 (by mat):

Add repository.callsign, to help arcanist figure out what repo it's
doing things on when not using Subversion.

With hat: phabric-admin@
Sponsored by: Absolight

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