]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
8 years agoMFC r288339: remove unused sgsmsg utility (originally imported from opensolaris)
avg [Fri, 23 Oct 2015 08:35:39 +0000 (08:35 +0000)]
MFC r288339: remove unused sgsmsg utility (originally imported from opensolaris)

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

8 years agoMFC r288363: std: it is important that func name is never an empty string
avg [Fri, 23 Oct 2015 08:16:10 +0000 (08:16 +0000)]
MFC r288363: std: it is important that func name is never an empty string

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

8 years agoMFC r284409: Fix circular dependency between libzfs and libzfs_core
avg [Fri, 23 Oct 2015 08:12:43 +0000 (08:12 +0000)]
MFC r284409: Fix circular dependency between libzfs and libzfs_core

By bapt.

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

8 years agoMFC r288340: define aok in libnvpair which is linked to all zfs
avg [Fri, 23 Oct 2015 08:04:59 +0000 (08:04 +0000)]
MFC r288340: define aok in libnvpair which is linked to all zfs
libraries that need aok

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

8 years agoMFC r288362: sdt: start checking version field when parsing probe definitions
avg [Fri, 23 Oct 2015 07:57:33 +0000 (07:57 +0000)]
MFC r288362: sdt: start checking version field when parsing probe definitions

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

8 years agoMFC r288337: remove an extra copy of avl.c from illumos contrib code
avg [Fri, 23 Oct 2015 07:48:40 +0000 (07:48 +0000)]
MFC r288337: remove an extra copy of avl.c from illumos contrib code

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

8 years agoMFC r288336: save some bytes by using more concise SDT_PROBE<n>
avg [Fri, 23 Oct 2015 07:44:03 +0000 (07:44 +0000)]
MFC r288336: save some bytes by using more concise SDT_PROBE<n>

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

8 years agoMFC r288366: sdt.h: no need for argtype_list_head
avg [Fri, 23 Oct 2015 07:37:54 +0000 (07:37 +0000)]
MFC r288366: sdt.h: no need for argtype_list_head

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

8 years agoMFC r288365: sdt: static-ize couple of variables
avg [Fri, 23 Oct 2015 07:35:48 +0000 (07:35 +0000)]
MFC r288365: sdt: static-ize couple of variables

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

8 years agoMFC r288364: sdt module does not seem to actually use any symbol from
avg [Fri, 23 Oct 2015 07:33:55 +0000 (07:33 +0000)]
MFC r288364: sdt module does not seem to actually use any symbol from
opensolaris module

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

8 years agoMFC r288361: dtrace_getarg: remove stray return statement on amd64
avg [Fri, 23 Oct 2015 07:32:15 +0000 (07:32 +0000)]
MFC r288361: dtrace_getarg: remove stray return statement on amd64

Note: no dtrace/powerpc in stable/9.

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

8 years agoMFC r287673: radeon_suspend_kms: don't mess with pci state
avg [Fri, 23 Oct 2015 07:29:37 +0000 (07:29 +0000)]
MFC r287673: radeon_suspend_kms: don't mess with pci state

Patch adjusted for FREEBSD_WIP vs DUMBBELL_WIP.

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

8 years agoMFC 287386,288949,288993:
jhb [Fri, 23 Oct 2015 01:27:44 +0000 (01:27 +0000)]
MFC 287386,288949,288993:
Export current system call code and argument count for system call entry
and exit events.  To preserve the ABI, the new fields are moved to the
end of struct thread in these branches (unlike HEAD) and explicitly copied
when new threads are created.  In addition, the new tests are only added
in 10.

r287386:
Export current system call code and argument count for system call entry
and exit events. procfs stop events for system call tracing report these
values (argument count for system call entry and code for system call exit),
but ptrace() does not provide this information. (Note that while the system
call code can be determined in an ABI-specific manner during system call
entry, it is not generally available during system call exit.)

The values are exported via new fields at the end of struct ptrace_lwpinfo
available via PT_LWPINFO.

r288949:
Fix various edge cases related to system call tracing.
- Always set td_dbg_sc_* when P_TRACED is set on system call entry
  even if the debugger is not tracing system call entries.  This
  ensures the fields are valid when reporting other stops that
  occur at system call boundaries such as for PT_FOLLOW_FORKS or
  when only tracing system call exits.
- Set TDB_SCX when reporting the stop for a new child process in
  fork_return().  This causes the event to be reported as a system
  call exit.
- Report a system call exit event in fork_return() for new threads in
  a traced process.
- Copy td_dbg_sc_* to new threads instead of zeroing.  This ensures
  that td_dbg_sc_code in particular will report the system call that
  created the new thread or process when it reports a system call
  exit event in fork_return().
- Add new ptrace tests to verify that new child processes and threads
  report system call exit events with a valid pl_syscall_code via
  PT_LWPINFO.

r288993:
Document the recently added pl_syscall_* fields in struct ptrace_lwpinfo.

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

8 years agoMFC r288994:
bdrewery [Wed, 21 Oct 2015 01:45:18 +0000 (01:45 +0000)]
MFC r288994:

  Remove redundant RFFPWAIT/vfork(2) handling in Linux fork(2) and clone(2)
  wrappers.

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

8 years agoMFC r288903:
bdrewery [Tue, 20 Oct 2015 18:37:42 +0000 (18:37 +0000)]
MFC r288903:

  Fix crash if a process sends itself a SIGTRAP.  Just forward it as expected.

  This does not match head as the code was rewritten significantly there.

Relnotes: yes

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

8 years agoMFC r288477:
bdrewery [Tue, 20 Oct 2015 18:23:44 +0000 (18:23 +0000)]
MFC r288477:

  META_MODE: For some reason meta mode cannot generate the intermediate tab.c
  files.  Split up all of the targets to be more clear on how they are
  generated to fix the problem.

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

8 years agoMFC r288390:
bdrewery [Tue, 13 Oct 2015 18:47:05 +0000 (18:47 +0000)]
MFC r288390:

  When stopping ugidfw, it is not enough to just try unloading the module.  If
  the module is built-in to the kernel then the kldunload will fail.  Rather
  than do this just check if there are rules and then remove them all.

Relnotes: yes

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

8 years agoMFC r288248:
bdrewery [Tue, 13 Oct 2015 18:42:44 +0000 (18:42 +0000)]
MFC r288248:

  Remove disconnected directories.

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

8 years agoMFC r287983,r288075:
bdrewery [Tue, 13 Oct 2015 18:34:58 +0000 (18:34 +0000)]
MFC r287983,r288075:

  r287983:
    Replace afterinstall: hack with FILES mechanism.
  r288075:
    Use SHAREOWN/SHAREMODE/SHAREGRP rather than LIB* as these are plain ASCII
    scripts that the linker can load rather than binary library objects.

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

8 years agoMFC r288230,r288233:
bdrewery [Tue, 13 Oct 2015 18:34:22 +0000 (18:34 +0000)]
MFC r288230,r288233:

  r288230:
    Fix emulation ldscripts not being installed since r131832.
  r288233:
    Fix subdir -j build after r287983 by adding missing dependencies.

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

8 years agoMFC r288335:
hselasky [Tue, 13 Oct 2015 08:19:21 +0000 (08:19 +0000)]
MFC r288335:
Store PID after becoming a daemon() and not before to ensure the
correct PID gets written to the PID file.

PR: 203252

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

8 years agoMFC r287592 and r287616:
hselasky [Tue, 13 Oct 2015 08:16:17 +0000 (08:16 +0000)]
MFC r287592 and r287616:
Add new USB ID.

PR: 202968

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

8 years agoMFC r288273:
hselasky [Tue, 13 Oct 2015 08:10:21 +0000 (08:10 +0000)]
MFC r288273:
Fix spelling.

PR: 203249

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

8 years agoMFC r288910: On some interfaces, ipfilter drops UDP packets with zero
cy [Tue, 13 Oct 2015 04:23:21 +0000 (04:23 +0000)]
MFC r288910: On some interfaces, ipfilter drops UDP packets with zero
checkum. This commit fixes that.

PR: 166372
Submitted by: mk@neon1.net
Reviewed by: Darren Reed <darrenr@reed.wattle.id.au>

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

8 years agoMFC r288528:
ae [Mon, 12 Oct 2015 07:53:04 +0000 (07:53 +0000)]
MFC r288528:
  Fix possible segmentation fault.

  PR: 203494

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

8 years agoMFC r288953:
dim [Fri, 9 Oct 2015 19:38:53 +0000 (19:38 +0000)]
MFC r288953:

Stop linking libc++.so verbosely, there is no need to.

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

8 years agoMFC r288099:
dim [Fri, 9 Oct 2015 19:36:06 +0000 (19:36 +0000)]
MFC r288099:

In binutils' arm-dis.c, avoid left-shifting a negative number.

Submitted by: dan.mcgregor_usask.ca (Dan McGregor)
Differential Revision: https://reviews.freebsd.org/D3376

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

8 years agoMFC r288238:
bdrewery [Thu, 8 Oct 2015 18:02:50 +0000 (18:02 +0000)]
MFC r288238:

  MFV c3ccd112: Correct off-by-ones in free_exception of emergency buffer

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

8 years agoMFC r288271:
bdrewery [Thu, 8 Oct 2015 18:01:56 +0000 (18:01 +0000)]
MFC r288271:

  Document bus_get_resource(9).

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

8 years agoMFC r287775:
hselasky [Thu, 8 Oct 2015 08:55:34 +0000 (08:55 +0000)]
MFC r287775:
Update TSO limits to include all headers.

To make driver programming easier the TSO limits are changed to
reflect the values used in the BUSDMA tag a network adapter driver is
using. The TCP/IP network stack will subtract space for all linklevel
and protocol level headers and ensure that the full mbuf chain passed
to the network adapter fits within the given limits. See r287775
for a more detailed description.

Differential Revision: https://reviews.freebsd.org/D3477
Reviewed by: rmacklem

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

8 years agoMFC r284915:
hselasky [Thu, 8 Oct 2015 08:06:23 +0000 (08:06 +0000)]
MFC r284915:
Make the system queue header file fully usable within C++ programs by
adding macros to define class lists.

This change is backwards compatible for all use within C and C++
programs. Only C++ programs will have added support to use the queue
macros within classes. Previously the queue macros could only be used
within structures.

The queue.3 manual page has been updated to describe the new
functionality and some alphabetic sorting has been done while
at it.

Differential Revision: https://reviews.freebsd.org/D2745
PR: 200827 (exp-run)

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

8 years agoMFC r287321:
hselasky [Thu, 8 Oct 2015 07:29:30 +0000 (07:29 +0000)]
MFC r287321:
Add new USB quirk.

PR: 202783

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

8 years agoMFC r287355, r287772 and r287825:
hselasky [Thu, 8 Oct 2015 07:27:25 +0000 (07:27 +0000)]
MFC r287355, r287772 and r287825:
Add new USB PCI IDs.

PR: 202807
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3665

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

8 years agoMFC r288180:
hselasky [Thu, 8 Oct 2015 07:19:57 +0000 (07:19 +0000)]
MFC r288180:
Implement support for reading USB quirks from the kernel environment.
Refer to the usb_quirk(4) manual page for more details on how to use
this new feature.

Submitted by: Maxime Soule <btik-fbsd@scoubidou.com>
PR: 203249

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

8 years agoMFC r287698: Fixing a memory leak on module unloading.
avatar [Wed, 7 Oct 2015 09:30:08 +0000 (09:30 +0000)]
MFC r287698: Fixing a memory leak on module unloading.

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

8 years agoMFC 287870:
jhb [Wed, 7 Oct 2015 00:50:26 +0000 (00:50 +0000)]
MFC 287870:
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.

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

8 years agoMFC 287864:
jhb [Wed, 7 Oct 2015 00:33:44 +0000 (00:33 +0000)]
MFC 287864:
When a process group leader exits, all of the processes in the group are
sent SIGHUP and SIGCONT if any of the processes are stopped.  Currently this
behavior is triggered for any type of process stop including ptrace() stops
and transient stops for single threading during exit() and execve().
Thus, if a debugger is attached to a process in a group when the leader
exits, the entire group can be HUPed.  Instead, only send the signals if a
process in the group is stopped due to SIGSTOP.

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

8 years agoMFC 287833:
jhb [Tue, 6 Oct 2015 22:28:28 +0000 (22:28 +0000)]
MFC 287833:
Threads holding a read lock of a sleepable rm lock are not permitted
to sleep.  The rmlock implementation enforces this by disabling
sleeping when a read lock is acquired. To simplify the implementation,
sleeping is disabled for most of the duration of rm_rlock.  However,
it doesn't need to be disabled until the lock is acquired.  If a
sleepable rm lock is contested, then rm_rlock may need to acquire the
backing sx lock.  This tripped the overly-broad assertion.  Fix by
relaxing the assertion around the call to sx_xlock().

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

8 years agoMFC r288120: Fix crash on parsing some inf files
amdmi3 [Tue, 6 Oct 2015 15:30:48 +0000 (15:30 +0000)]
MFC r288120: Fix crash on parsing some inf files

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

8 years agoMFC r253564 (by glebius): Add constant for PPP-Max-PayLoad tag.
mav [Tue, 6 Oct 2015 14:27:07 +0000 (14:27 +0000)]
MFC r253564 (by glebius): Add constant for PPP-Max-PayLoad tag.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>

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

8 years agoMFC r287821: Document NGM_PPPOE_SETMAXP.
mav [Tue, 6 Oct 2015 13:50:31 +0000 (13:50 +0000)]
MFC r287821: Document NGM_PPPOE_SETMAXP.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>

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

8 years agoMFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).
mav [Tue, 6 Oct 2015 13:11:26 +0000 (13:11 +0000)]
MFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).

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

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

8 years agoMFC r287982:
bdrewery [Sat, 3 Oct 2015 16:26:46 +0000 (16:26 +0000)]
MFC r287982:

  Replace afterinstall: hack from r54681 with 'make delete-old' functionality.

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

8 years agoMFC r287981:
bdrewery [Sat, 3 Oct 2015 16:25:47 +0000 (16:25 +0000)]
MFC r287981:

  Replace afterinstall: hack from r111083 with 'make delete-old' functionality.

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

8 years agoUpdate BIND to 9.9.8
erwin [Sat, 3 Oct 2015 09:33:29 +0000 (09:33 +0000)]
Update BIND to 9.9.8

See release notes for notable changes:
https://kb.isc.org/article/AA-01305

Note this is a direct commit to stable/9 as BIND is no longer in head.

Sponsored by: DK Hostmaster A/S

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

8 years agoFix a regression with SA-15:24 patch that prevented NIS from
delphij [Fri, 2 Oct 2015 16:36:16 +0000 (16:36 +0000)]
Fix a regression with SA-15:24 patch that prevented NIS from
working.

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

8 years agoMFC r288381:
bdrewery [Fri, 2 Oct 2015 16:22:24 +0000 (16:22 +0000)]
MFC r288381:

  All supported releases have the -m support from r186678, so remove the
  mention of it and reword this a bit to remove 'you'.

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

8 years agoMFC r288380:
bdrewery [Fri, 2 Oct 2015 16:21:25 +0000 (16:21 +0000)]
MFC r288380:

  Document the post-merge actions of calling tzsetup(8) and services_mkdb(8)
  added in r259134.

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

8 years agoMFC r281787
vangyzen [Fri, 2 Oct 2015 15:07:02 +0000 (15:07 +0000)]
MFC r281787

dmesg: accommodate message buffer growth between the sysctl calls

Allocate 12.5% extra space to avoid ENOMEM when the message buffer
is growing steadily.

Reported by:    Steve Wahl <steve_wahl@dell.com> (and tested)
Approved by:    kib (mentor until recently)
Obtained from:  Dell Inc.

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

8 years agoMFC r280793
vangyzen [Fri, 2 Oct 2015 14:16:37 +0000 (14:16 +0000)]
MFC r280793

pmcstat.8: The -m flag requires the -R flag.

Approved by:    kib (mentor until recently)
Sponsored by:   Dell Inc.

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

8 years agoMFC 286177:
jhb [Thu, 1 Oct 2015 21:57:15 +0000 (21:57 +0000)]
MFC 286177:
Fix a couple of markup typos.

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

8 years agoMFC 286256:
jhb [Thu, 1 Oct 2015 21:54:43 +0000 (21:54 +0000)]
MFC 286256:
kgdb uses td_oncpu to determine if a thread is running and should use
a pcb from stoppcbs[] rather than the thread's PCB.  However, exited threads
retained td_oncpu from the last time they ran, and newborn threads had their
CPU fields cleared to zero during fork and thread creation since they are
in the set of fields zeroed when threads are setup.  To fix, explicitly
update the CPU fields for exiting threads in sched_throw() to reflect the
switch out and reset the CPU fields for new threads in sched_fork_thread()
to NOCPU.

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

8 years agoMFC 283121:
jhb [Thu, 1 Oct 2015 20:49:10 +0000 (20:49 +0000)]
MFC 283121:
Use the proper mask when reloading sampling PMCs for Core CPUs.

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

8 years agoRegenerate after r280421.
bdrewery [Tue, 29 Sep 2015 21:55:45 +0000 (21:55 +0000)]
Regenerate after r280421.

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

8 years agoMFC r287935:
bdrewery [Tue, 29 Sep 2015 21:52:32 +0000 (21:52 +0000)]
MFC r287935:

  Optimize makeman slightly by removing uneeded cat and extra test -s.

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

8 years agoMFC r287979:
bdrewery [Tue, 29 Sep 2015 21:48:51 +0000 (21:48 +0000)]
MFC r287979:

  Remove redundant beforeinstall.

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

8 years agoDocument SA-15:24.
gjb [Tue, 29 Sep 2015 19:14:52 +0000 (19:14 +0000)]
Document SA-15:24.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287151,r287152,r287153,r287155:
bdrewery [Tue, 29 Sep 2015 18:46:39 +0000 (18:46 +0000)]
MFC r287151,r287152,r287153,r287155:

  r287151:
    Move common locking for filemon_inuse and struct filemon* to
    filemon_pid_check().

  r287152:
    Remove unneeded inuse list locking in filemon_comment().

  r287153:
    Avoid taking proctree_lock and searching parents in wrappers if not needed.

  r287155:
    Fix filemon locking races.

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

8 years agoMFC r284383,r284477,r284600,r284601:
bdrewery [Tue, 29 Sep 2015 18:33:17 +0000 (18:33 +0000)]
MFC r284383,r284477,r284600,r284601:

    Latest clang uses openat(2).
    Bump the version since we now handle openat
    filemon_pid_check needs to hold proctree_lock
    sx_sunlock for sx_slock

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

8 years agoThe Sun RPC framework uses a netbuf structure to represent the
delphij [Tue, 29 Sep 2015 18:06:27 +0000 (18:06 +0000)]
The Sun RPC framework uses a netbuf structure to represent the
transport specific form of a universal transport address.  The
structure is expected to be opaque to consumers.  In the current
implementation, the structure contains a pointer to a buffer
that holds the actual address.

In rpcbind(8), netbuf structures are copied directly, which would
result in two netbuf structures that reference to one shared
address buffer.  When one of the two netbuf structures is freed,
access to the other netbuf structure would result in an undefined
result that may crash the rpcbind(8) daemon.

Fix this by making a copy of the buffer that is going to be freed
instead of doing a shallow copy.

Security: FreeBSD-SA-15:24.rpcbind
Security: CVE-2015-7236

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

8 years agoMFC r287978:
bdrewery [Tue, 29 Sep 2015 17:05:12 +0000 (17:05 +0000)]
MFC r287978:

  Fix LIBRARIES_ONLY

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

8 years agoMFC r288092:
bdrewery [Tue, 29 Sep 2015 17:02:27 +0000 (17:02 +0000)]
MFC r288092:

  Avoid adding duplicates into OBJS.  bsd.lib.mk already handles adding entries
  to OBJS based on SRCS.

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

8 years agoMFC r287819: Make CAM log errors that make it wait.
mav [Tue, 29 Sep 2015 05:24:16 +0000 (05:24 +0000)]
MFC r287819: Make CAM log errors that make it wait.

Waiting can take minutes, and it would be good for user to know what is
going on.

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

8 years agoMFC r287747: Add ID for Intel Panther Point KT Controller
mav [Sun, 27 Sep 2015 01:20:55 +0000 (01:20 +0000)]
MFC r287747: Add ID for Intel Panther Point KT Controller

Found on ASUS P8Q77-M motherboard.

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

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

8 years agoMFC r287650:
delphij [Fri, 25 Sep 2015 01:17:52 +0000 (01:17 +0000)]
MFC r287650:

Use strlcpy() in favor of strncpy() as it's defined to have a nul character
at the end of string buffer, and the code context do expects this to behave
correctly (e.g. strchr).

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

8 years agoMFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00
emaste [Thu, 24 Sep 2015 19:42:32 +0000 (19:42 +0000)]
MFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00

PM starts at 12:00, not 13:00.

PR: 194291, 200133
Submitted by: Nick Price

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

8 years agoMFC r287886:
smh [Thu, 24 Sep 2015 09:35:35 +0000 (09:35 +0000)]
MFC r287886:

Fix kqueue write events for files > 2GB

Relnotes: YES
Sponsored by: Multiplay

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

8 years agoMFC r287541:
dim [Tue, 22 Sep 2015 22:35:42 +0000 (22:35 +0000)]
MFC r287541:

In libz's inflateMark(), avoid left-shifting a negative integer, which
is undefined.

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

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

8 years agoMFC r286733:
dim [Tue, 22 Sep 2015 22:27:45 +0000 (22:27 +0000)]
MFC r286733:

Avoid left-shifting negative signed values in bxe(4).

Reviewed by: davidcs

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

8 years agoMFC r286702:
dim [Tue, 22 Sep 2015 22:18:36 +0000 (22:18 +0000)]
MFC r286702:

In ipfw2, avoid left-shifting negative integers, which is undefined.
While here, make some other arguments to htonl(3) unsigned too.

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

8 years agoMFC r286699:
dim [Tue, 22 Sep 2015 22:07:42 +0000 (22:07 +0000)]
MFC r286699:

In gcc's libcpp, stop using the INTTYPE_MAXIMUM() macro, which relies on
undefined behavior.  The code used this macro to avoid problems on some
broken systems which define SSIZE_MAX incorrectly, but this is not
needed on FreeBSD, obviously.

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

8 years agoMFC r286891, r286893:
pfg [Thu, 17 Sep 2015 00:37:40 +0000 (00:37 +0000)]
MFC r286891, r286893:
calendar(1): add a few more dates to the Christian calendar

Bring some well established holidays that also happen to be legal
holidays in many Catholic countries.

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

8 years agoDocument EN-15:16, EN-15:17, EN-15:18.
gjb [Wed, 16 Sep 2015 23:33:12 +0000 (23:33 +0000)]
Document EN-15:16, EN-15:17, EN-15:18.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287238:
yongari [Wed, 16 Sep 2015 00:45:48 +0000 (00:45 +0000)]
MFC r287238:
  Set DMA alignment constraint of status, TX and RX LEs(List Elements
  in Marvell terms) to 32768.  32768 looks overkill but it will
  ensure correct DMAed update.  This change addresses occasional
  watchdog timeouts reported on 10.2-RELEASE.

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

8 years agoFix build with gcc
bapt [Tue, 15 Sep 2015 08:34:32 +0000 (08:34 +0000)]
Fix build with gcc

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

8 years agoMFC: r281039
bapt [Tue, 15 Sep 2015 06:22:50 +0000 (06:22 +0000)]
MFC: r281039

Allow fetching pkg(8) even if servers/proxies are not passing Content-length

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

8 years agoMFC: r287579, r287810 (adapted to old openssl APIs)
bapt [Tue, 15 Sep 2015 06:21:33 +0000 (06:21 +0000)]
MFC: r287579, r287810 (adapted to old openssl APIs)

Implement pubkey support for the bootstrap

Note that to not interfer with finger print it expects a signature on pkg itself
which is named pkg.txz.pubkeysign

To generate it:
echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \
    -binary -out ./pkg.txz.pubkeysig

Note the "echo -n" which prevent signing the '\n' one would get otherwise

PR: 202622

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

8 years agoMFC r287320:
delphij [Mon, 14 Sep 2015 18:58:30 +0000 (18:58 +0000)]
MFC r287320:
 - uri is expected to be nul-terminated (strchr used later),
   so use strlcpy instead of strncpy.
 - replace the other two cases of strncpy+\0 with strlcpy.

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

8 years agoMFC r286887: Using the error return code documented in the comment.
avatar [Mon, 14 Sep 2015 15:47:20 +0000 (15:47 +0000)]
MFC r286887: Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

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

8 years agoMFC r286798 and r286827:
ed [Mon, 14 Sep 2015 09:31:00 +0000 (09:31 +0000)]
MFC r286798 and r286827:

  Stop parsing digits if the value already exceeds UINT_MAX / 100.

  There is no need for us to support parsing values that are larger than
  the maximum terminal window size. In this case that would be the maximum
  of unsigned short.

  The problem with parsing larger values is that they can cause integer
  overflows when adjusting the cursor position, leading to all sorts of
  failing assertions.

MFC r286981 and r287098:

  Don't truncate cursor arithmetic to 16 bits.

  When updating the row number when the cursor position escape sequence is
  issued, we should make sure to store the intermediate result in a 32-bit
  integer. If we fail to do this, the cursor may be set above the origin
  region, which is bad.

  This could cause libteken to crash when INVARIANTS is enabled, due to
  the strict set of assertions that libteken has.

PR: 202326, 202540, 202612
Submitted by: kwcu csie org

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

8 years agoMFC r287100: spa_import_rootpool: prevent lock and resource leak
avg [Fri, 11 Sep 2015 13:32:55 +0000 (13:32 +0000)]
MFC r287100: spa_import_rootpool: prevent lock and resource leak

PR: 198563

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

8 years agoMFC r287099: account for ashift when gathering buffers to be written to
avg [Fri, 11 Sep 2015 12:59:16 +0000 (12:59 +0000)]
MFC r287099: account for ashift when gathering buffers to be written to
l2arc device

The change differs from that in head because of other changes that have
not been MFC-ed yet.

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

8 years agoMFC r285021: zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls
avg [Fri, 11 Sep 2015 12:43:31 +0000 (12:43 +0000)]
MFC r285021: zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls

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

8 years agoMFC r286985: try to fix lor between z_teardown_lock and spa_namespace_lock
avg [Fri, 11 Sep 2015 12:38:21 +0000 (12:38 +0000)]
MFC r286985: try to fix lor between z_teardown_lock and spa_namespace_lock

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

8 years agoMFC r284513: l2arc: pass correct size to trim requests
avg [Fri, 11 Sep 2015 12:34:56 +0000 (12:34 +0000)]
MFC r284513: l2arc: pass correct size to trim requests

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

8 years agoMFC 287440:
jhb [Fri, 11 Sep 2015 00:20:15 +0000 (00:20 +0000)]
MFC 287440:
Currently the Linux character device mmap handling only supports mmap
operations that map a single page that has an associated vm_page_t.
This does not permit mapping larger regions (such as a PCI memory
BAR) and it does not permit mapping addresses beyond the top of RAM
(such as a 64-bit BAR located above the top of RAM).

Instead of using a single OBJT_DEVICE object and passing the physaddr via
the offset as a hack, create a new sglist and OBJT_SG object for each
mmap request. The requested memory attribute is applied to the object
thus affecting all pages mapped by the request.

Sponsored by: Chelsio

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

8 years agoMFC 283281,283282,283562,286158:
jhb [Wed, 9 Sep 2015 23:41:24 +0000 (23:41 +0000)]
MFC 283281,283282,283562,286158:
Various fixes to orphan handling which also fix issues with following
forks.  Unlike the changes in HEAD, this merge does not include the
changes to the ATF ptrace test since ATF is not present in 9.

283281:
Always set p_oppid when attaching to an existing process via procfs
tracing.  This matches the behavior of ptrace(PT_ATTACH).  Also,
the procfs detach request assumes p_oppid is always set.

283282:
Only reparent a traced process to its old parent if the tracing process is
not the old parent. Otherwise, proc_reap() will leave the zombie in place
resulting in the process' status being returned twice to its parent.

283562:
Do not allow a process to reap an orphan (a child currently being
traced by another process such as a debugger). The parent process does
need to check for matching orphan pids to avoid returning ECHILD if an
orphan has exited, but it should not return the exited status for the
child until after the debugger has detached from the orphan process
either explicitly or implicitly via wait().

286158:
Clear P_TRACED before reparenting a detached process back to its
original parent. Otherwise the debugee will be set as an orphan of
the debugger.

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

8 years agoMFC 269656,270024,270443,270993:
jhb [Wed, 9 Sep 2015 23:05:52 +0000 (23:05 +0000)]
MFC 269656,270024,270443,270993:
Fix problems with orphan handling.  Note that to preserve KBI, p_treeflag
has been added to the end of struct proc and is explicitly zero'd during
fork.

269656:
Correct the problems with the ptrace(2) making the debuggee an orphan.
One problem is inferior(9) looping due to the process tree becoming a
graph instead of tree if the parent is traced by child. Another issue
is due to the use of p_oppid to restore the original parent/child
relationship, because real parent could already exited and its pid
reused (noted by mjg).

Add the function proc_realparent(9), which calculates the parent for
given process. It uses the flag P_TREE_FIRST_ORPHAN to detect the head
element of the p_orphan list and than stepping back to its container
to find the parent process. If the parent has already exited, the
init(8) is returned.

Move the P_ORPHAN and the new helper flag from the p_flag* to new
p_treeflag field of struct proc, which is protected by proctree lock
instead of proc lock, since the orphans relationship is managed under
the proctree_lock already.

The remaining uses of p_oppid in ptrace(PT_DETACH) and process
reapping are replaced by proc_realparent(9).

270024:
Correct the order of arguments passed to LIST_INSERT_AFTER().

270443:
Properly reparent traced processes when the tracer dies.

Previously they were uncoditionally reparented to init. In effect
it was possible that tracee was never returned to original parent.

270993:
Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced
processes.

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

8 years agoMFC r286888: Using consistent coding style to deal with error inside the loop.
avatar [Wed, 9 Sep 2015 04:16:48 +0000 (04:16 +0000)]
MFC r286888: Using consistent coding style to deal with error inside the loop.

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

8 years agoMFC r287093:
delphij [Tue, 8 Sep 2015 01:46:52 +0000 (01:46 +0000)]
MFC r287093:

Instead of doing an no-op (|= 0), actually clear the flags in
acl_clear_flags_np.

Reported by: Pascal Drecker <pascal freebsd drecker com>

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

8 years agoMFC r287345:
delphij [Fri, 4 Sep 2015 00:42:05 +0000 (00:42 +0000)]
MFC r287345:

Drop group privileges after opening the kvm descriptor, otherwise, the code
would not drop privileges as expected.

While there also add checks for the drop and bail out immediately if we
failed.

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

8 years agoMFC 283622:
jhb [Thu, 3 Sep 2015 18:23:07 +0000 (18:23 +0000)]
MFC 283622:
Add <sys/user.h> to the SYNOPSIS of the kinfo_get*() functions since these
functions all return types that are defined in that header.

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

8 years agoMFC 281941:
jhb [Thu, 3 Sep 2015 16:43:35 +0000 (16:43 +0000)]
MFC 281941:
Watchdog drivers need to support rearming the watchdog in contexts which
are not permitted to sleep.  Only use the IPMI watchdog with backends
which poll driver-initiated requests to meet this requirement.

In practice this means that watchdogs will no longer be used on systems
that use the SSIF backend.

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

8 years agoMFC 248705,253812,253813:
jhb [Thu, 3 Sep 2015 16:38:26 +0000 (16:38 +0000)]
MFC 248705,253812,253813:
- Unlock IPMI sc while performing requests via KCS and SMIC interfaces.
- empirical testing showed that 3 seconds is just too slow for GET_DEVICE_ID
  to return on newer Dell hardware.  Bump to 6 second timeouts until someone
  has a better idea on how to handle this
- Check for ipmi_attached in ipmi_isa_probe as a suggested alternative to
  ipmi_isa_attach.  This keeps unintended but harmless noise about "ipmi1"
  from appearing in the boot up sequence.

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

8 years agoDocument SA-15:23.
gjb [Wed, 2 Sep 2015 21:13:06 +0000 (21:13 +0000)]
Document SA-15:23.

Sponsored by: The FreeBSD Foundation

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

8 years agoFix remote denial of service vulnerability when parsing malformed
delphij [Wed, 2 Sep 2015 20:06:46 +0000 (20:06 +0000)]
Fix remote denial of service vulnerability when parsing malformed
key.

Fix remote denial of service vulnerability caused by an incorrect
boundary check in openpgpkey_61.c.

Security: CVE-2015-5722, FreeBSD-SA-15:23.bind
Security: CVE-2015-5986

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

8 years agoMFC r286886: Fixing typo as well as improving readability of a few comments.
avatar [Sat, 29 Aug 2015 11:15:58 +0000 (11:15 +0000)]
MFC r286886: Fixing typo as well as improving readability of a few comments.

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

8 years agoMFC r286799:
hselasky [Sat, 29 Aug 2015 06:17:39 +0000 (06:17 +0000)]
MFC r286799:
Fix race in USB PF which can happen if we stop tracing exactly when
the kernel is tapping an USB transfer. This leads to a NULL pointer
access. The solution is to only trace while the USB bus lock is
locked.

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

8 years agoMFC r286720:
ae [Fri, 28 Aug 2015 12:02:40 +0000 (12:02 +0000)]
MFC r286720:
  Use g_conf_printf_escaped() to escape illegal symbols in file name.

  PR: 202289

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

8 years agoMFC r286169:
markj [Thu, 27 Aug 2015 23:46:45 +0000 (23:46 +0000)]
MFC r286169:
Perform bounds checking when constructing a format string.

PR: 201657

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