svn commit: r305791 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:00:30 2016 New Revision: 305791 URL: https://svnweb.freebsd.org/changeset/base/305791 Log: hyperv/hn: Deprecate hn_softc_t MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7867 Modified: head/sys

svn commit: r305792 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:08:45 2016 New Revision: 305792 URL: https://svnweb.freebsd.org/changeset/base/305792 Log: hyperv/hn: Function renaming: hn_ifinit -> hn_init No functional changes. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://

svn commit: r305793 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:24:01 2016 New Revision: 305793 URL: https://svnweb.freebsd.org/changeset/base/305793 Log: hyperv/hn: Cleanup hn_ioctl. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7869 Modified: head/sys/de

svn commit: r305794 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:33:08 2016 New Revision: 305794 URL: https://svnweb.freebsd.org/changeset/base/305794 Log: hyperv/hn: Use sx for the main lock. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7870 Modified: hea

svn commit: r305795 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:48:08 2016 New Revision: 305795 URL: https://svnweb.freebsd.org/changeset/base/305795 Log: hyperv/hn: Bring in shims from stable/10 This eases future MFCs to stable/10. MFC after:1 week Sponsored by: Microsoft Differential Revision:http

svn commit: r305796 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 08:59:13 2016 New Revision: 305796 URL: https://svnweb.freebsd.org/changeset/base/305796 Log: hyperv/hn: Remove the FreeBSD_version check for TSO configuration It is available on both stable/10 and stable/11. This eases future MFCs to stable/10. MFC aft

svn commit: r305801 - head/sys/dev/hyperv/netvsc

2016-09-14 Thread Sepherosa Ziehau
Author: sephe Date: Wed Sep 14 09:17:00 2016 New Revision: 305801 URL: https://svnweb.freebsd.org/changeset/base/305801 Log: hyperv/hn: Fix some ifnet settings - ifnet.if_mtu does not require explicit setting. - ifnet.if_hdrlen must be set after ether_ifattach(). MFC after:1 week

svn commit: r305804 - head/sys/boot/kshim

2016-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 14 11:16:00 2016 New Revision: 305804 URL: https://svnweb.freebsd.org/changeset/base/305804 Log: Make the callout structure in the boot loader's kernel shim more similar to the kernel one. MFC after:1 week Modified: head/sys/boot/kshim/bsd_kernel.c

svn commit: r305805 - head/usr.sbin/autofs

2016-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 14 11:20:58 2016 New Revision: 305805 URL: https://svnweb.freebsd.org/changeset/base/305805 Log: Use proper argument order for calloc(3). MFC after:1 month Modified: head/usr.sbin/autofs/automountd.c head/usr.sbin/autofs/autounmountd.c head/usr.sbin/au

svn commit: r305806 - in head/sys/dev/usb: . input quirk serial storage

2016-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 14 12:07:34 2016 New Revision: 305806 URL: https://svnweb.freebsd.org/changeset/base/305806 Log: Improve USB polling mode by not locking any mutexes, asserting any mutexes or using any callouts when active. Trying to lock a mutex when KDB is active or the sc

svn commit: r305807 - in head/sys: amd64/amd64 i386/i386 x86/include

2016-09-14 Thread Bruce Evans
Author: bde Date: Wed Sep 14 12:57:40 2016 New Revision: 305807 URL: https://svnweb.freebsd.org/changeset/base/305807 Log: Use the MI macro TRAPF_USERMODE() instead of open-coded checks for SEL_UPL and sometimes PSL_VM. This is just a style change on amd64, but on i386 it fixes 1 unimportan

Re: svn commit: r305807 - in head/sys: amd64/amd64 i386/i386 x86/include

2016-09-14 Thread Bruce Evans
On Wed, 14 Sep 2016, Bruce Evans wrote: ... Log: ... Fix logic errors in treating vm86 bioscall mode as kernel mode. The main place checked all the necessary flags, but put the necessary parentheses for the PSL_VM and PCB_VM86CALL checks in the wrong place. The broken case is only reached

Re: svn commit: r305787 - in head/usr.sbin/amd: amd amq fixmount fsinfo hlfsd include libamu mk-amd-map pawd scripts wire-test

2016-09-14 Thread Pedro Giffuni
Hello; On 14/09/2016 00:00, Baptiste Daroussin wrote: On Wed, Sep 14, 2016 at 01:47:01AM +, Cy Schubert wrote: Author: cy Date: Wed Sep 14 01:47:01 2016 New Revision: 305787 URL: https://svnweb.freebsd.org/changeset/base/305787 Log: Switch from .CURDIR to the simpler, more legible SRCT

svn commit: r305810 - head/sys/netinet

2016-09-14 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 14 14:48:00 2016 New Revision: 305810 URL: https://svnweb.freebsd.org/changeset/base/305810 Log: Ensure that the IPPROTO_TCP level socket options * TCP_KEEPINIT * TCP_KEEPINTVL * TCP_KEEPIDLE * TCP_KEEPCNT always always report the values currently used when

Re: svn commit: r305807 - in head/sys: amd64/amd64 i386/i386 x86/include

2016-09-14 Thread Bjoern A. Zeeb
On 14 Sep 2016, at 12:57, Bruce Evans wrote: Author: bde Date: Wed Sep 14 12:57:40 2016 New Revision: 305807 URL: https://svnweb.freebsd.org/changeset/base/305807 Log: Modified: head/sys/amd64/amd64/trap.c breaks all amd64 LINT* kernels: /scratch/tmp/bz/head.svn/sys/amd64/amd64/trap.c:937

svn commit: r305811 - head/sys/amd64/amd64

2016-09-14 Thread Bjoern A. Zeeb
Author: bz Date: Wed Sep 14 16:08:23 2016 New Revision: 305811 URL: https://svnweb.freebsd.org/changeset/base/305811 Log: Try to fix LINT builds after r305807. Seems to be a simple s&r error I missed while reading through the 1st time as well. Modified: head/sys/amd64/amd64/trap.c Modifie

svn commit: r305812 - head/usr.sbin/fifolog/lib

2016-09-14 Thread Pedro F. Giffuni
Author: pfg Date: Wed Sep 14 16:34:52 2016 New Revision: 305812 URL: https://svnweb.freebsd.org/changeset/base/305812 Log: fifolog(1): invert order of calloc(3) arguments. The second argment to calloc(3) should be the size, make it so. While here be a little bit more cautious in fifolo

svn commit: r305813 - head/usr.bin/localedef

2016-09-14 Thread Pedro F. Giffuni
Author: pfg Date: Wed Sep 14 16:47:17 2016 New Revision: 305813 URL: https://svnweb.freebsd.org/changeset/base/305813 Log: localedef(1): make better use of calloc(3) arguments. The first argument of calloc(3) should be an ordinal type, and the second a size: split a multiplication to make

Re: svn commit: r305811 - head/sys/amd64/amd64

2016-09-14 Thread Bruce Evans
On Wed, 14 Sep 2016, Bjoern A. Zeeb wrote: Log: Try to fix LINT builds after r305807. Seems to be a simple s&r error I missed while reading through the 1st time as well. Thanks. The fix looks right. Modified: head/sys/amd64/amd64/trap.c Modified: head/sys/amd64/amd64/trap.c ===

Re: svn commit: r305807 - in head/sys: amd64/amd64 i386/i386 x86/include

2016-09-14 Thread Bruce Evans
On Wed, 14 Sep 2016, Bjoern A. Zeeb wrote: On 14 Sep 2016, at 12:57, Bruce Evans wrote: Author: bde Date: Wed Sep 14 12:57:40 2016 New Revision: 305807 URL: https://svnweb.freebsd.org/changeset/base/305807 Log: Modified: head/sys/amd64/amd64/trap.c breaks all amd64 LINT* kernels: /scrat

svn commit: r305814 - head/sys/boot/common

2016-09-14 Thread Emmanuel Vadot
Author: manu Date: Wed Sep 14 17:43:32 2016 New Revision: 305814 URL: https://svnweb.freebsd.org/changeset/base/305814 Log: ufsread: Do not cast struct direct from void * This cause alignment problem on ARM (and possibly other archs), instead copy it. MFC after:1 week Modified: he

Re: svn commit: r305634 - head/share/mk

2016-09-14 Thread Bryan Drewery
On 9/9/16 5:37 PM, Simon J. Gerraty wrote: > Bryan Drewery wrote: > >>> +# some targets involve old pre-built targets >>> +# ignore mtime of shell >>> +# and mtime of makefiles does not matter in meta mode >>> +.MAKE.META.IGNORE_PATHS += \ >>> +${MAKEFILE} \ >>> +${SHELL} \ >>> +

svn commit: r305815 - head/usr.bin/vtfontcvt

2016-09-14 Thread Ed Maste
Author: emaste Date: Wed Sep 14 18:22:12 2016 New Revision: 305815 URL: https://svnweb.freebsd.org/changeset/base/305815 Log: vtfontcvt: remove superfluous newlines in errx messages Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head/usr.bin/vtfontcvt/vtfontcvt.c

Re: svn commit: r305814 - head/sys/boot/common

2016-09-14 Thread Bruce Evans
On Wed, 14 Sep 2016, Emmanuel Vadot wrote: Log: ufsread: Do not cast struct direct from void * This cause alignment problem on ARM (and possibly other archs), instead copy it. MFC after: 1 week Modified: head/sys/boot/common/ufsread.c Modified: head/sys/boot/common/ufsread.c

Re: svn commit: r305814 - head/sys/boot/common

2016-09-14 Thread Emmanuel Vadot
Hi Bruce, On Thu, 15 Sep 2016 05:37:19 +1000 (EST) Bruce Evans wrote: > On Wed, 14 Sep 2016, Emmanuel Vadot wrote: > > > Log: > > ufsread: Do not cast struct direct from void * > > This cause alignment problem on ARM (and possibly other archs), instead > > copy it. > > > > MFC after: 1 we

Re: svn commit: r305814 - head/sys/boot/common

2016-09-14 Thread Bruce Evans
On Wed, 14 Sep 2016, Emmanuel Vadot wrote: Bruce Evans wrote: On Wed, 14 Sep 2016, Emmanuel Vadot wrote: Log: ufsread: Do not cast struct direct from void * This cause alignment problem on ARM (and possibly other archs), instead copy it. ... This looks like a good pessimization for spa

svn commit: r305817 - in head/contrib/libarchive: libarchive libarchive_fe tar

2016-09-14 Thread Martin Matuska
Author: mm Date: Wed Sep 14 20:55:03 2016 New Revision: 305817 URL: https://svnweb.freebsd.org/changeset/base/305817 Log: Remove mergeinfo from contrib/libarchive subdirs Modified: Directory Properties: head/contrib/libarchive/libarchive/ (props changed) head/contrib/libarchive/libarchive

svn commit: r305818 - head/contrib/libarchive/cpio

2016-09-14 Thread Martin Matuska
Author: mm Date: Wed Sep 14 21:01:02 2016 New Revision: 305818 URL: https://svnweb.freebsd.org/changeset/base/305818 Log: Remove mergeinfo from contrib/libarchive/cpio Modified: Directory Properties: head/contrib/libarchive/cpio/ (props changed) _

svn commit: r305819 - in head: contrib/libarchive/libarchive contrib/libarchive/libarchive/test lib/libarchive/tests

2016-09-14 Thread Martin Matuska
Author: mm Date: Wed Sep 14 21:15:01 2016 New Revision: 305819 URL: https://svnweb.freebsd.org/changeset/base/305819 Log: MFV r305816: Sync libarchive with vendor including important security fixes. Issues fixed (FreeBSD): PR #778: ACL error handling Issue #745: Symlink check prefix o

svn commit: r305820 - head/sys/powerpc/powerpc

2016-09-14 Thread Justin Hibbits
Author: jhibbits Date: Wed Sep 14 23:24:23 2016 New Revision: 305820 URL: https://svnweb.freebsd.org/changeset/base/305820 Log: Only define db_show_spr if DDB is enabled. PR: 212667 Reported by: Kenneth Salerno Modified: head/sys/powerpc/powerpc/machdep.c Modified: head/sy

Re: svn commit: r305787 - in head/usr.sbin/amd: amd amq fixmount fsinfo hlfsd include libamu mk-amd-map pawd scripts wire-test

2016-09-14 Thread Cy Schubert
In message , Pedro Giffuni wr ites: > Hello; > > > On 14/09/2016 00:00, Baptiste Daroussin wrote: > > On Wed, Sep 14, 2016 at 01:47:01AM +, Cy Schubert wrote: > >> Author: cy > >> Date: Wed Sep 14 01:47:01 2016 > >> New Revision: 305787 > >> URL: https://svnweb.freebsd.org/changeset/base/305

svn commit: r305821 - head/usr.bin/login

2016-09-14 Thread Ed Maste
Author: emaste Date: Thu Sep 15 01:55:18 2016 New Revision: 305821 URL: https://svnweb.freebsd.org/changeset/base/305821 Log: login: clean up errx strings errx() prefixes the error string with argv[0] so including "login: " in the string is redundant. Also remove a superfluous newline.

svn commit: r305822 - head/usr.bin/bsdiff/bspatch

2016-09-14 Thread Ed Maste
Author: emaste Date: Thu Sep 15 01:58:12 2016 New Revision: 305822 URL: https://svnweb.freebsd.org/changeset/base/305822 Log: bspatch: use #define for header size instead of magic number Reviewed by: allanjude, kib Sponsored by: The FreeBSD Foundation Differential Revision:http

svn commit: r305823 - head/usr.bin/sdiff

2016-09-14 Thread Ed Maste
Author: emaste Date: Thu Sep 15 02:48:56 2016 New Revision: 305823 URL: https://svnweb.freebsd.org/changeset/base/305823 Log: sdiff: improve errx string errx() appends a newline so \n is superfluous. Also switch to lower case with no period for consistency with other errx strings. Modifi

Re: svn commit: r305821 - head/usr.bin/login

2016-09-14 Thread Bruce Evans
On Thu, 15 Sep 2016, Ed Maste wrote: Log: login: clean up errx strings errx() prefixes the error string with argv[0] so including "login: " in the string is redundant. Also remove a superfluous newline. The strings still have plenty of dirt: Modified: head/usr.bin/login/login_audit.c ===