svn commit: r309669 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2016-12-06 Thread George V. Neville-Neil
Author: gnn Date: Wed Dec 7 07:27:47 2016 New Revision: 309669 URL: https://svnweb.freebsd.org/changeset/base/309669 Log: Fix a kernel panic in DTrace's rw_iswriter subroutine. On FreeBSD the sense of rw_write_held() and rw_iswriter() were reversed, probably due to a cut and paste error.

svn commit: r309667 - head/sys/net80211

2016-12-06 Thread Xin LI
Author: delphij Date: Wed Dec 7 06:29:01 2016 New Revision: 309667 URL: https://svnweb.freebsd.org/changeset/base/309667 Log: Fix typo. Modified: head/sys/net80211/ieee80211_crypto.c Modified: head/sys/net80211/ieee80211_crypto.c

Re: svn commit: r309531 - head/sys/arm/include

2016-12-06 Thread Michal Meloun
Because I'm stupid enough to not remember that we have code which is compiled only as module. So my standard 'make buildkernel -DNO_CLEAN -DNO_MODULES' is not a best option how to test this new code. And rest is only natural result of panic caused by 'I break a kernel build' and 'I have scheduled

svn commit: r309666 - head/sys/dev/cxgbe/common

2016-12-06 Thread Navdeep Parhar
Author: np Date: Wed Dec 7 04:23:08 2016 New Revision: 309666 URL: https://svnweb.freebsd.org/changeset/base/309666 Log: cxgbe(4): unsigned short isn't large enough to store link speed (which is in Mbps) for 100Gbps links. MFC after:3 days Modified:

svn commit: r309665 - head/sys/net80211

2016-12-06 Thread Adrian Chadd
Author: adrian Date: Wed Dec 7 04:03:51 2016 New Revision: 309665 URL: https://svnweb.freebsd.org/changeset/base/309665 Log: [net80211] flesh out more RX phy information. I'm teaching my ath10k port to communicate up the per-rate / channel width information I get from the firmware.

svn commit: r309664 - head/sys/net80211

2016-12-06 Thread Adrian Chadd
Author: adrian Date: Wed Dec 7 04:02:41 2016 New Revision: 309664 URL: https://svnweb.freebsd.org/changeset/base/309664 Log: [net80211] start refactoring out the "am I a wep / group key!" code. This is a bunch of pointer arithmetic that is copypasta'ed everywhere. Let's undo that

Re: svn commit: r309658 - head/sys/vm

2016-12-06 Thread Mark Johnston
On Wed, Dec 07, 2016 at 11:44:49AM +1100, Bruce Evans wrote: > On Tue, 6 Dec 2016, Mark Johnston wrote: > > > Log: > > Provide dummy sysctls for v_cache_count and v_tcached. > > > > Some utilities (notably top(1)) exit if any of their input sysctls don't > > exist, and the removal of the

svn commit: r309663 - head/sys/vm

2016-12-06 Thread Mark Johnston
Author: markj Date: Wed Dec 7 01:15:10 2016 New Revision: 309663 URL: https://svnweb.freebsd.org/changeset/base/309663 Log: Use the official spelling for NULL arguments to typed sysctl handlers. Reported by: bde Modified: head/sys/vm/vm_meter.c Modified: head/sys/vm/vm_meter.c

Re: svn commit: r309658 - head/sys/vm

2016-12-06 Thread Bruce Evans
On Tue, 6 Dec 2016, Mark Johnston wrote: Log: Provide dummy sysctls for v_cache_count and v_tcached. Some utilities (notably top(1)) exit if any of their input sysctls don't exist, and the removal of the above-mentioned PG_CACHE-related sysctls makes it difficult to run such utilities on

Re: svn commit: r309659 - head/lib/libc/tests/nss

2016-12-06 Thread Ngie Cooper (yaneurabeya)
> On Dec 6, 2016, at 15:43, Bryan Drewery wrote: > > Author: bdrewery > Date: Tue Dec 6 23:43:04 2016 > New Revision: 309659 > URL: https://svnweb.freebsd.org/changeset/base/309659 > > Log: > Support spaces in group names. > > MFC after: 2 weeks > Sponsored by:

svn commit: r309660 - head/sys/netpfil/ipfw

2016-12-06 Thread Andrey V. Elsukov
Author: ae Date: Tue Dec 6 23:52:56 2016 New Revision: 309660 URL: https://svnweb.freebsd.org/changeset/base/309660 Log: Convert result of hash_packet6() into host byte order. For IPv4 similar function uses addresses and ports in host byte order, but for IPv6 it used network byte order.

svn commit: r309659 - head/lib/libc/tests/nss

2016-12-06 Thread Bryan Drewery
Author: bdrewery Date: Tue Dec 6 23:43:04 2016 New Revision: 309659 URL: https://svnweb.freebsd.org/changeset/base/309659 Log: Support spaces in group names. MFC after:2 weeks Sponsored by: Dell EMC Isilon Modified: head/lib/libc/tests/nss/getgr_test.c Modified:

svn commit: r309658 - head/sys/vm

2016-12-06 Thread Mark Johnston
Author: markj Date: Tue Dec 6 22:52:45 2016 New Revision: 309658 URL: https://svnweb.freebsd.org/changeset/base/309658 Log: Provide dummy sysctls for v_cache_count and v_tcached. Some utilities (notably top(1)) exit if any of their input sysctls don't exist, and the removal of the

svn commit: r309657 - head/sys/x86/x86

2016-12-06 Thread Mark Johnston
Author: markj Date: Tue Dec 6 22:48:28 2016 New Revision: 309657 URL: https://svnweb.freebsd.org/changeset/base/309657 Log: Require the STACK option for code that captures stacks of running threads. stack_machdep.c is compiled if either of the DDB or STACK options is specified, but

Re: svn commit: r309531 - head/sys/arm/include

2016-12-06 Thread John Baldwin
On Sunday, December 04, 2016 03:27:39 PM Michal Meloun wrote: > Author: mmel > Date: Sun Dec 4 15:27:39 2016 > New Revision: 309531 > URL: https://svnweb.freebsd.org/changeset/base/309531 > > Log: > Implement fake pmap_mapdev_attr() for ARMv6. > This function is referenced, but never called

svn commit: r309656 - head/lib/clang/libllvmminimal

2016-12-06 Thread Dimitry Andric
Author: dim Date: Tue Dec 6 20:44:40 2016 New Revision: 309656 URL: https://svnweb.freebsd.org/changeset/base/309656 Log: During the bootstrap phase, when building the minimal llvm library on PowerPC, add lib/Support/Atomic.cpp. This is needed because upstream llvm revision r271821

Re: svn commit: r309625 - head/sbin/rcorder

2016-12-06 Thread Ian Lepore
On Tue, 2016-12-06 at 13:07 -0600, Eric van Gyzen wrote: > On 12/06/2016 11:30, Ravi Pokala wrote: > > > > For grins, I ran this on my build server. The resulting graph is... > > complex. But one thing was immediately clear: neither > > /etc/rc.d/dhclient and /etc/rc.d/natd depend on anything.

svn commit: r309650 - head/lib/libc/gen

2016-12-06 Thread Ed Schouten
Author: ed Date: Tue Dec 6 19:08:29 2016 New Revision: 309650 URL: https://svnweb.freebsd.org/changeset/base/309650 Log: Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [_2^31, 2^31). This doesn't seem to work on 64-bit

Re: svn commit: r309625 - head/sbin/rcorder

2016-12-06 Thread Eric van Gyzen
On 12/06/2016 11:30, Ravi Pokala wrote: > For grins, I ran this on my build server. The resulting graph is... > complex. But one thing was immediately clear: neither > /etc/rc.d/dhclient and /etc/rc.d/natd depend on anything. That seems > wrong: I would expect them to have some sort of dependency

svn commit: r309649 - head/contrib/tcpdump

2016-12-06 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Dec 6 18:58:42 2016 New Revision: 309649 URL: https://svnweb.freebsd.org/changeset/base/309649 Log: tcpdump: allow to use BIOCROTZBUF in capability mode The libpcap library can use a BIOCROTZBUF ioctl when net.bpf.zerocopy_enable sysctl is set. Reported

svn commit: r309640 - head/lib/libvmmapi

2016-12-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 6 18:50:44 2016 New Revision: 309640 URL: https://svnweb.freebsd.org/changeset/base/309640 Log: Fix possible integer overflow in guest memory bounds checking, which could lead to access from the virtual machine to the heap of the bhyve(8) process. Submitted

svn commit: r309639 - head/lib/libc/net

2016-12-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 6 18:50:33 2016 New Revision: 309639 URL: https://svnweb.freebsd.org/changeset/base/309639 Log: Fix possible buffer overflow(s) in link_ntoa(3). A specially crafted sockaddr_dl argument can trigger a static buffer overflow in the libc library, with

svn commit: r309638 - head/contrib/telnet/telnetd

2016-12-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 6 18:50:22 2016 New Revision: 309638 URL: https://svnweb.freebsd.org/changeset/base/309638 Log: When telnetd(8) composes argument list for login(1), an unexpected sequence of memory allocation failures combined with insufficient error checking could result in

svn commit: r309631 - head/tools/regression/sockets/unix_cmsg

2016-12-06 Thread Maxim Sobolev
Author: sobomax Date: Tue Dec 6 18:22:25 2016 New Revision: 309631 URL: https://svnweb.freebsd.org/changeset/base/309631 Log: Auto-generate 2 test cases that differ only in structure and SCM_XXX constant used. We can do it programmatically, but that would make code convoluted and more

Re: svn commit: r309627 - head/contrib/netbsd-tests/lib/libc/locale

2016-12-06 Thread Ngie Cooper (yaneurabeya)
ontrib/netbsd-tests/lib/libc/sys/t_mincore.c:210: mlock failed: Cannot allocate memory [0.003s] ===> Summary Results read from /root/.kyua/store/results.usr_tests.20161206-060934-946752.db Test cases: 5956 total, 53 skipped, 28 expected failures, 0 broken, 4 failed Total time: 5226.723s signature.asc Description: Message signed with OpenPGP using GPGMail

Re: svn commit: r309627 - head/contrib/netbsd-tests/lib/libc/locale

2016-12-06 Thread Ngie Cooper (yaneurabeya)
> On Dec 6, 2016, at 09:06, Bryan Drewery wrote: > > Author: bdrewery > Date: Tue Dec 6 17:06:14 2016 > New Revision: 309627 > URL: https://svnweb.freebsd.org/changeset/base/309627 > > Log: > Remove unneeded hack fixed by r309626. > > strvis(3) being tainted by our

Re: svn commit: r309625 - head/sbin/rcorder

2016-12-06 Thread Ravi Pokala
For grins, I ran this on my build server. The resulting graph is... complex. But one thing was immediately clear: neither /etc/rc.d/dhclient and /etc/rc.d/natd depend on anything. That seems wrong: I would expect them to have some sort of dependency on NETWORKING, either BEFORE (since dhclient

svn commit: r309630 - head/lib/libthr/thread

2016-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 17:13:17 2016 New Revision: 309630 URL: https://svnweb.freebsd.org/changeset/base/309630 Log: Do not leak curthread->inact_mtx when cancelling in pthread_cond_wait(3). Leave robust-protected region before checking for cancellation by calling

svn commit: r309627 - head/contrib/netbsd-tests/lib/libc/locale

2016-12-06 Thread Bryan Drewery
Author: bdrewery Date: Tue Dec 6 17:06:14 2016 New Revision: 309627 URL: https://svnweb.freebsd.org/changeset/base/309627 Log: Remove unneeded hack fixed by r309626. strvis(3) being tainted by our mbtowc(3) calls was causing spurious failures here. MFC after:2 weeks Sponsored

svn commit: r309626 - head/contrib/libc-vis

2016-12-06 Thread Bryan Drewery
Author: bdrewery Date: Tue Dec 6 17:05:02 2016 New Revision: 309626 URL: https://svnweb.freebsd.org/changeset/base/309626 Log: strvis(3): Avoid internal state of multibyte functions being tainted. The mbtoc(3) and wctomb(3) functions use internal state which may be tainted before the

svn commit: r309625 - head/sbin/rcorder

2016-12-06 Thread Eric van Gyzen
Author: vangyzen Date: Tue Dec 6 15:49:39 2016 New Revision: 309625 URL: https://svnweb.freebsd.org/changeset/base/309625 Log: Add rcorder-visualize.sh, which generates graphviz from rc.d scripts This is imported from NetBSD. The author--Joerg Sonnenberger--agreed to apply a two-clause

svn commit: r309624 - head/usr.bin/locale

2016-12-06 Thread Eric van Gyzen
Author: vangyzen Date: Tue Dec 6 15:42:18 2016 New Revision: 309624 URL: https://svnweb.freebsd.org/changeset/base/309624 Log: locale: fix the powerpc build Reported by: markj (and bde, in a way) MFC after:3 days X-MFC with: r309364 Sponsored by: Dell EMC Modified:

svn commit: r309623 - head/sys/arm64/arm64

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 15:16:00 2016 New Revision: 309623 URL: https://svnweb.freebsd.org/changeset/base/309623 Log: Add the missing gic_common.h include for GIC_BUS_FDT. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r309622 - in head/sys: arm/arm arm64/arm64

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 15:12:14 2016 New Revision: 309622 URL: https://svnweb.freebsd.org/changeset/base/309622 Log: Create two GIC ivars to find the bus type and GIC hardware version. These will be used by the gicv2m and ITS ACPI drivers to only attach to the correct parent.

svn commit: r309619 - head/sys/cddl/compat/opensolaris/sys

2016-12-06 Thread Mateusz Guzik
Author: mjg Date: Tue Dec 6 14:08:49 2016 New Revision: 309619 URL: https://svnweb.freebsd.org/changeset/base/309619 Log: ifndef atomic_cas_* in cddl code in preparation for native implementations This is a temporary change to not require all architectures to import at once.

svn commit: r309618 - in head/sys: arm/arm arm64/arm64

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 13:55:19 2016 New Revision: 309618 URL: https://svnweb.freebsd.org/changeset/base/309618 Log: Move the common bit manipulation macros from the GICv3 header to the common GIC header file. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD

svn commit: r309617 - head/sys/arm64/include

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 13:46:12 2016 New Revision: 309617 URL: https://svnweb.freebsd.org/changeset/base/309617 Log: Move the stored signal mask later in the jump buf. It was being clobbered by a later store of a VFP register. Sponsored by: ABT Systems Ltd Modified:

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

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 12:57:28 2016 New Revision: 309616 URL: https://svnweb.freebsd.org/changeset/base/309616 Log: Adda new common GIC header to handle the common parts of the GICv2 and GICv3 drivers. For now it just contains common distributor registers. Obtained from:

svn commit: r309613 - in head/sys: conf dev/cxgbe dev/cxgbe/common dev/cxgbe/firmware modules/cxgbe/t4_firmware modules/cxgbe/t5_firmware modules/cxgbe/t6_firmware

2016-12-06 Thread Navdeep Parhar
Author: np Date: Tue Dec 6 12:43:07 2016 New Revision: 309613 URL: https://svnweb.freebsd.org/changeset/base/309613 Log: cxgbe(4): Update firmwares from version 1.16.12.0 to 1.16.22.0. Obtained from:Chelsio Communications MFC after:3 days Sponsored by: Chelsio

svn commit: r309612 - head/sys/arm64/arm64

2016-12-06 Thread Andrew Turner
Author: andrew Date: Tue Dec 6 11:41:19 2016 New Revision: 309612 URL: https://svnweb.freebsd.org/changeset/base/309612 Log: Add the full set of GICD_PIDR* registers Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/gic_v3_reg.h

svn commit: r309607 - in head/sys: netinet netinet6

2016-12-06 Thread Michael Tuexen
Author: tuexen Date: Tue Dec 6 10:21:25 2016 New Revision: 309607 URL: https://svnweb.freebsd.org/changeset/base/309607 Log: Whitespace changes. The tools using to generate the sources has been updated and produces different whitespaces. Commit this seperately to avoid intermixing