Re: svn commit: r299746 - in head/sys: cddl/dev/dtrace cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 cddl/dev/dtrace/powerpc conf dev/acpica dev/hwpmc dev/hyperv/vmbus dev/xen/control geom/eli kern net s

2016-05-15 Thread Julian Elischer
On 15/05/2016 2:22 AM, John Baldwin wrote: Author: jhb Date: Sat May 14 18:22:52 2016 New Revision: 299746 URL: https://svnweb.freebsd.org/changeset/base/299746 Log: Add an EARLY_AP_STARTUP option to start APs earlier during boot. Currently, Application Processors (non-boot CPUs) are

svn commit: r299897 - head/usr.sbin/rpc.lockd

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 05:17:43 2016 New Revision: 299897 URL: https://svnweb.freebsd.org/changeset/base/299897 Log: NULL releasedfl after calling deallocate_file_lock() which frees it to avoid a use-after-free error in the debuglog() call at the top of the loop. Reported

Re: svn commit: r299894 - head/usr.sbin/ctld

2016-05-15 Thread Don Lewis
On 16 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Mon May 16 04:43:47 2016 > New Revision: 299894 > URL: https://svnweb.freebsd.org/changeset/base/299894 > > Log: > pdu_delete(request) frees request, so move the call after > login_new_response(request) to avoid a

Re: svn commit: r299893 - head/usr.sbin/config

2016-05-15 Thread Don Lewis
On 16 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Mon May 16 04:39:16 2016 > New Revision: 299893 > URL: https://svnweb.freebsd.org/changeset/base/299893 > > Log: > Don't free fnamebuf before we calling cfgfile_add(). This changes a > use-after-free error into a

svn commit: r299894 - head/usr.sbin/ctld

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 04:43:47 2016 New Revision: 299894 URL: https://svnweb.freebsd.org/changeset/base/299894 Log: pdu_delete(request) frees request, so move the call after login_new_response(request) to avoid a use-after-free error Reported by: Coverity Reviewed by:

svn commit: r299893 - head/usr.sbin/config

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 04:39:16 2016 New Revision: 299893 URL: https://svnweb.freebsd.org/changeset/base/299893 Log: Don't free fnamebuf before we calling cfgfile_add(). This changes a use-after-free error into a minor memory leak. Reported by: Coverity CID:

svn commit: r299891 - head/sys/dev/bwn

2016-05-15 Thread Adrian Chadd
Author: adrian Date: Mon May 16 04:03:43 2016 New Revision: 299891 URL: https://svnweb.freebsd.org/changeset/base/299891 Log: [bwn] use contigmalloc to allocate descriptors. We can't assume malloc() returns physically contiguous memory. Submitted by: Imre Vadasz

svn commit: r299892 - head/sys/dev/hyperv/vmbus

2016-05-15 Thread Sepherosa Ziehau
Author: sephe Date: Mon May 16 04:03:52 2016 New Revision: 299892 URL: https://svnweb.freebsd.org/changeset/base/299892 Log: hyperv/vmbus: Fix event processing loop indentation. No functional changes. MFC after:1 week Sponsored by: Microsoft OSTC Differential Revision:

svn commit: r299890 - head/sys/dev/hyperv/vmbus

2016-05-15 Thread Sepherosa Ziehau
Author: sephe Date: Mon May 16 03:56:24 2016 New Revision: 299890 URL: https://svnweb.freebsd.org/changeset/base/299890 Log: hyperv/vmbus: Simplify event processing For channel0, it will never be processed on event handling path, so there is no need to install it. After skipping in the

svn commit: r299889 - head/sys/dev/hyperv/vmbus

2016-05-15 Thread Sepherosa Ziehau
Author: sephe Date: Mon May 16 03:48:00 2016 New Revision: 299889 URL: https://svnweb.freebsd.org/changeset/base/299889 Log: hyperv/vmbus: Simplify event processing While I'm here, remove useless comment and unnecessary return. MFC after:1 week Sponsored by: Microsoft OSTC

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

2016-05-15 Thread Sepherosa Ziehau
Author: sephe Date: Mon May 16 03:26:16 2016 New Revision: 299888 URL: https://svnweb.freebsd.org/changeset/base/299888 Log: hyperv/hn: Combine per-packet-information parsing. MFC after:1 week Sponsored by: Microsoft OSTC Modified:

svn commit: r299887 - head/usr.sbin/ypldap

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 02:44:22 2016 New Revision: 299887 URL: https://svnweb.freebsd.org/changeset/base/299887 Log: Simplify overengineered and buggy code that looked like as if it did some kind of UTF-8 validation, but actually didn't, but instead, for malformed UTF-8 input,

svn commit: r299884 - head/usr.sbin/ypldap

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 02:35:23 2016 New Revision: 299884 URL: https://svnweb.freebsd.org/changeset/base/299884 Log: When a group contains a non-existent user, make the warning message more helpful by mentioning the group name. Obtained from:OpenBSD (cvs 1.19) Modified:

svn commit: r299883 - head/sys/dev/iwm

2016-05-15 Thread Kevin Lo
Author: kevlo Date: Mon May 16 02:27:28 2016 New Revision: 299883 URL: https://svnweb.freebsd.org/changeset/base/299883 Log: Follow-up r298818: hide size of 'bands' array behind a macro. Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm/if_iwm.c

svn commit: r299880 - head/lib/libc/resolv

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 01:38:24 2016 New Revision: 299880 URL: https://svnweb.freebsd.org/changeset/base/299880 Log: Since rdata is only used as an argument to the immediately following call to res_nopt_rdata(), revert r299879 and fix CID 603941 by moving rdata = [n];

svn commit: r299879 - head/lib/libc/resolv

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 01:30:32 2016 New Revision: 299879 URL: https://svnweb.freebsd.org/changeset/base/299879 Log: Likely a false positive ... but make sure that -1 can't be used as an array index by splitting up a test. Reported by: Coverity CID: 603941 MFC

svn commit: r299878 - head/usr.sbin/kldxref

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 01:12:56 2016 New Revision: 299878 URL: https://svnweb.freebsd.org/changeset/base/299878 Log: Use NULL instead of 0 for pointers. MFC after:2 weeks. Modified: head/usr.sbin/kldxref/kldxref.c Modified: head/usr.sbin/kldxref/kldxref.c

svn commit: r299877 - head/usr.bin/gprof

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 01:11:02 2016 New Revision: 299877 URL: https://svnweb.freebsd.org/changeset/base/299877 Log: Use NULL instead of 0 for pointers. MFC after:2 weeks Modified: head/usr.bin/gprof/aout.c head/usr.bin/gprof/arcs.c head/usr.bin/gprof/gprof.c Modified:

svn commit: r299876 - head/sbin/quotacheck

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:36:12 2016 New Revision: 299876 URL: https://svnweb.freebsd.org/changeset/base/299876 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/quotacheck/quotacheck.c Modified: head/sbin/quotacheck/quotacheck.c

svn commit: r299875 - head/sbin/ping6

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:35:39 2016 New Revision: 299875 URL: https://svnweb.freebsd.org/changeset/base/299875 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/ping6/ping6.c Modified: head/sbin/ping6/ping6.c

svn commit: r299874 - head/sbin/init

2016-05-15 Thread Marcelo Araujo
Author: araujo Date: Mon May 16 00:34:48 2016 New Revision: 299874 URL: https://svnweb.freebsd.org/changeset/base/299874 Log: For pointers use NULL instead of 0. MFC after:2 weeks. Modified: head/sbin/init/init.c Modified: head/sbin/init/init.c

svn commit: r299873 - head/sbin/ifconfig

2016-05-15 Thread Don Lewis
Author: truckman Date: Mon May 16 00:25:24 2016 New Revision: 299873 URL: https://svnweb.freebsd.org/changeset/base/299873 Log: Use strlcpy() instead of strncpy() when copying ifname to ensure that it is NUL terminated. Additional NUL padding is not required for short names. Use

svn commit: r299872 - head/sys/fs/fuse

2016-05-15 Thread Rick Macklem
Author: rmacklem Date: Sun May 15 23:15:10 2016 New Revision: 299872 URL: https://svnweb.freebsd.org/changeset/base/299872 Log: Fix fuse for "cp" of a mode 0444 file to the file system. When "cp" of a file with read-only (mode 0444) to a fuse mounted file system was attempted it would

Re: svn commit: r299870 - head/sys/contrib/ipfilter/netinet

2016-05-15 Thread Cy Schubert
In message <201605152235.u4fmzblj014...@repo.freebsd.org>, Cy Schubert writes: > Author: cy > Date: Sun May 15 22:35:11 2016 > New Revision: 299870 > URL: https://svnweb.freebsd.org/changeset/base/299870 > > Log: > Make subsequent code reachable. > > Reported by:Coverity CID

svn commit: r299871 - in head/sys: arm/allwinner boot/fdt/dts/arm

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 22:36:55 2016 New Revision: 299871 URL: https://svnweb.freebsd.org/changeset/base/299871 Log: Add Allwinner A83T thermal sensor controller support. The A83T thermal sensor controller has three sensors. Sensor 0 corresponds to CPU cluster 0, sensor 1 to

svn commit: r299870 - head/sys/contrib/ipfilter/netinet

2016-05-15 Thread Cy Schubert
Author: cy Date: Sun May 15 22:35:11 2016 New Revision: 299870 URL: https://svnweb.freebsd.org/changeset/base/299870 Log: Make subsequent code reachable. Reported by: Coverity CID 1354625 MFC after:3 days Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Modified:

svn commit: r299869 - head/usr.sbin/route6d

2016-05-15 Thread Don Lewis
Author: truckman Date: Sun May 15 22:31:03 2016 New Revision: 299869 URL: https://svnweb.freebsd.org/changeset/base/299869 Log: Use strlcpy() instead of strncpy() when copying ifname to ensure that it is NUL terminated. Additional NUL padding is not required for short names. Reported

Re: svn commit: r299867 - head/usr.sbin/rtadvd

2016-05-15 Thread Don Lewis
On 15 May, To: src-committ...@freebsd.org wrote: > On 15 May, To: src-committ...@freebsd.org wrote: >> Author: truckman >> Date: Sun May 15 22:06:21 2016 >> New Revision: 299867 >> URL: https://svnweb.freebsd.org/changeset/base/299867 >> >> Log: >> Use strlcpy() instead of strncpy() when

svn commit: r299868 - head/usr.sbin/rtsold

2016-05-15 Thread Don Lewis
Author: truckman Date: Sun May 15 22:17:41 2016 New Revision: 299868 URL: https://svnweb.freebsd.org/changeset/base/299868 Log: Use strlcpy() instead of strncpy() when copying ifname to ensure that it is NUL terminated. Additional NUL padding is not required for short names. Reported

Re: svn commit: r299867 - head/usr.sbin/rtadvd

2016-05-15 Thread Don Lewis
On 15 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Sun May 15 22:06:21 2016 > New Revision: 299867 > URL: https://svnweb.freebsd.org/changeset/base/299867 > > Log: > Use strlcpy() instead of strncpy() when copying ifname to ensure > that it is NUL terminated.

svn commit: r299867 - head/usr.sbin/rtadvd

2016-05-15 Thread Don Lewis
Author: truckman Date: Sun May 15 22:06:21 2016 New Revision: 299867 URL: https://svnweb.freebsd.org/changeset/base/299867 Log: Use strlcpy() instead of strncpy() when copying ifname to ensure that it is NUL terminated. Additional NUL padding is not required for short names. MFC

svn commit: r299866 - head/usr.sbin/lmcconfig

2016-05-15 Thread Don Lewis
Author: truckman Date: Sun May 15 21:45:04 2016 New Revision: 299866 URL: https://svnweb.freebsd.org/changeset/base/299866 Log: Use strlcpy() instead of strncpy() when copying ifname to ensure that it is NUL terminated. Additional NUL padding is not required for short names. Reported

svn commit: r299865 - head/sys/net

2016-05-15 Thread Don Lewis
Author: truckman Date: Sun May 15 21:37:36 2016 New Revision: 299865 URL: https://svnweb.freebsd.org/changeset/base/299865 Log: When handling SIOCSIFNAME ensure that the new interface name is NUL terminated. Reject the rename attempt if the name is too long. MFC after:1 week

svn commit: r299864 - in head/sys: cam/scsi modules/cam modules/tcp/fastpath netinet/tcp_stacks

2016-05-15 Thread Mark Johnston
Author: markj Date: Sun May 15 20:04:43 2016 New Revision: 299864 URL: https://svnweb.freebsd.org/changeset/base/299864 Log: opt_kdtrace.h is not needed for SDT probes as of r258541. Modified: head/sys/cam/scsi/scsi_pass.c head/sys/modules/cam/Makefile

svn commit: r299863 - head/sys/boot/fdt/dts/arm

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 17:25:31 2016 New Revision: 299863 URL: https://svnweb.freebsd.org/changeset/base/299863 Log: Enable SATA power regulator at boot on Sinovoip BananaPi BPI-M3. Modified: head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts Modified:

Re: svn commit: r299839 - head/etc/rc.d

2016-05-15 Thread Ian Lepore
On Sun, 2016-05-15 at 04:38 +, Garrett Cooper wrote: > Author: ngie > Date: Sun May 15 04:38:50 2016 > New Revision: 299839 > URL: https://svnweb.freebsd.org/changeset/base/299839 > > Log: > Make FILESYSTEMS, dumpon, and var not depend on zfs and zvol > > Make zfs and zvol come before

svn commit: r299862 - head/sys/arm/allwinner

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 16:43:47 2016 New Revision: 299862 URL: https://svnweb.freebsd.org/changeset/base/299862 Log: Reduce complexity of RSB by always using polling mode. Unfortunately gpiobus methods can be called with non-sleepable locks held. Reviewed by: mmel Modified:

svn commit: r299861 - head/sys/boot/fdt/dts/arm

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 15:56:48 2016 New Revision: 299861 URL: https://svnweb.freebsd.org/changeset/base/299861 Log: Add gpio-leds for Sinovoip BananaPi BPI-M3. The green LED on the board is wired to AXP813 GPIO0 and the blue LED is wired to AXP813 GPIO1. Modified:

svn commit: r299860 - head/sys/arm/allwinner

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 15:54:41 2016 New Revision: 299860 URL: https://svnweb.freebsd.org/changeset/base/299860 Log: Add support for the AXP813/AXP818 power key and GPIO pins. Modified: head/sys/arm/allwinner/axp81x.c Modified: head/sys/arm/allwinner/axp81x.c

svn commit: r299859 - head/sys/arm/allwinner

2016-05-15 Thread Jared McNeill
Author: jmcneill Date: Sun May 15 15:52:34 2016 New Revision: 299859 URL: https://svnweb.freebsd.org/changeset/base/299859 Log: Allow RSB to be used from interrupt handlers. The driver uses polling mode if cold or !THREAD_CAN_SLEEP() and now implements the bus_* interface. Modified:

svn commit: r299858 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:31:44 2016 New Revision: 299858 URL: https://svnweb.freebsd.org/changeset/base/299858 Log: TEGRA: Also attach gpioc to tegra_gpio driver. Forgotten in r299854. Modified: head/sys/arm/nvidia/tegra_gpio.c Modified: head/sys/arm/nvidia/tegra_gpio.c

svn commit: r299856 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:14:46 2016 New Revision: 299856 URL: https://svnweb.freebsd.org/changeset/base/299856 Log: TEGRA: Don't use common name 'iicb' for tegra specific IIC driver. Using commn name for different drivers breaks generic kernel creation. Modified:

svn commit: r299855 - head/sys/dev/ofw

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:13:56 2016 New Revision: 299855 URL: https://svnweb.freebsd.org/changeset/base/299855 Log: OFWIICBUS: Make ofwiicbus_devclass externaly visible. It's needed for binding of iic controllers. Modified: head/sys/dev/ofw/ofw_iicbus.c Modified:

svn commit: r299854 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 14:47:50 2016 New Revision: 299854 URL: https://svnweb.freebsd.org/changeset/base/299854 Log: TEGRA: Don't use common name 'gpio' for tegra specific GPIO driver. Using commn name for different drivers breaks generic kernel creation. Modified:

svn commit: r299853 - head/sys/dev/gpio

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 14:43:52 2016 New Revision: 299853 URL: https://svnweb.freebsd.org/changeset/base/299853 Log: OFWGPIOBUS: Make ofwgpiobus_devclass externaly visible. It's needed for binding of gpio controllers. Modified: head/sys/dev/gpio/ofw_gpiobus.c Modified:

svn commit: r299852 - head/sys/dev/bwn

2016-05-15 Thread Adrian Chadd
Author: adrian Date: Sun May 15 14:39:41 2016 New Revision: 299852 URL: https://svnweb.freebsd.org/changeset/base/299852 Log: [bwn] remove N-PHY registers for now. I've submitted an alternative proposal to -core about just importing the (converted) GPL PHY code in an alternate directory

svn commit: r299851 - head/sys/arm/arm

2016-05-15 Thread Emmanuel Vadot
Author: manu Date: Sun May 15 13:20:59 2016 New Revision: 299851 URL: https://svnweb.freebsd.org/changeset/base/299851 Log: Allow arm generic_timer code to be included even if not present in the SoC. Reviewed by: andrew Approved by: cognet (mentor) Differential Revision:

svn commit: r299850 - in head/usr.bin/xinstall: . tests

2016-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sun May 15 13:17:05 2016 New Revision: 299850 URL: https://svnweb.freebsd.org/changeset/base/299850 Log: install: When preserving timestamps, also copy the nanoseconds part. Modified: head/usr.bin/xinstall/tests/install_test.sh head/usr.bin/xinstall/xinstall.c

svn commit: r299849 - head/sys/dev/isp

2016-05-15 Thread Edward Tomasz Napierala
Author: trasz Date: Sun May 15 08:36:12 2016 New Revision: 299849 URL: https://svnweb.freebsd.org/changeset/base/299849 Log: Remove NULL checks after M_WAITOK allocations from isp(4). MFC after:1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/isp/isp_pci.c

svn commit: r299848 - head/sys/fs/nfsclient

2016-05-15 Thread Edward Tomasz Napierala
Author: trasz Date: Sun May 15 08:34:59 2016 New Revision: 299848 URL: https://svnweb.freebsd.org/changeset/base/299848 Log: Make it possible to reroot into NFS. This means one can have eg an NFSv4 root over WiFi: boot from md_root (small rootfs image preloaded by loader(8)), setup WiFi,

svn commit: r299847 - head/sys/dev/bwn

2016-05-15 Thread Adrian Chadd
Author: adrian Date: Sun May 15 07:02:34 2016 New Revision: 299847 URL: https://svnweb.freebsd.org/changeset/base/299847 Log: [bwn] add DUALPHY; this may be useful for PHY-N and later dual-phy probing. Obtained from:Landon Fuller Modified:

Re: svn commit: r299778 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-15 Thread Conrad Meyer
On Sat, May 14, 2016 at 4:22 PM, Garrett Cooper wrote: > Author: ngie > Date: Sat May 14 23:22:38 2016 > New Revision: 299778 > URL: https://svnweb.freebsd.org/changeset/base/299778 > > Log: > Use a consistent errno save/restore pattern before running strtoul This is begging

Re: svn commit: r299751 - head/sys/dev/bwn

2016-05-15 Thread Adrian Chadd
On 14 May 2016 at 18:33, Conrad Meyer wrote: > On Sat, May 14, 2016 at 12:52 PM, Adrian Chadd wrote: >> Author: adrian >> Date: Sat May 14 19:52:04 2016 >> New Revision: 299751 >> URL: https://svnweb.freebsd.org/changeset/base/299751 >> >> Log: >> [bwn]

svn commit: r299846 - head/sys/dev/bwn

2016-05-15 Thread Adrian Chadd
Author: adrian Date: Sun May 15 06:11:40 2016 New Revision: 299846 URL: https://svnweb.freebsd.org/changeset/base/299846 Log: [bwn] commit the N-PHY register set. Obtained from:Linux b43 (register definitions.) Added: head/sys/dev/bwn/if_bwn_phy_n_regs.h (contents, props

svn commit: r299845 - head/sbin/routed

2016-05-15 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 15 06:06:22 2016 New Revision: 299845 URL: https://svnweb.freebsd.org/changeset/base/299845 Log: routed(8): Use arc4random_uniform instead of arc4random. Use arc4random_uniform() when the desired random number upper bound is not a power of two. While here,

svn commit: r299844 - head/etc/rc.d

2016-05-15 Thread Garrett Cooper
Author: ngie Date: Sun May 15 06:00:13 2016 New Revision: 299844 URL: https://svnweb.freebsd.org/changeset/base/299844 Log: Make hostid_save depend on hostid MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/etc/rc.d/hostid_save Modified: