svn commit: r305413 - head/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 06:46:04 2016 New Revision: 305413 URL: https://svnweb.freebsd.org/changeset/base/305413 Log: Fix error handling. MFC after: 3 days Modified: head/lib/libc/stdio/fgets.c Modified: head/lib/libc/stdio/fgets.c

svn commit: r305412 - head/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 06:10:51 2016 New Revision: 305412 URL: https://svnweb.freebsd.org/changeset/base/305412 Log: Fix n == 1 case. Here should be no physical read (fill buffer) attempt (we read n - 1 chars with the room for NUL, see fgets()), and no NULL return. MFC after:

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

2016-09-04 Thread Sepherosa Ziehau
Author: sephe Date: Mon Sep 5 05:07:40 2016 New Revision: 305411 URL: https://svnweb.freebsd.org/changeset/base/305411 Log: hyperv/hn: Stringent RNDIS control message length check. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7

svn commit: r305410 - head/sys/net

2016-09-04 Thread Sepherosa Ziehau
Author: sephe Date: Mon Sep 5 04:56:56 2016 New Revision: 305410 URL: https://svnweb.freebsd.org/changeset/base/305410 Log: net/rndis: Define RNDIS status message, which could be sent by device. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.

svn commit: r305409 - head/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 04:49:58 2016 New Revision: 305409 URL: https://svnweb.freebsd.org/changeset/base/305409 Log: 1) Prevent out of bounds access to ws[-1] (passed buffer) which happens when the first mb sequence is incomplete and there are not enougn chars in the read buffer. ws[-

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

2016-09-04 Thread Sepherosa Ziehau
Author: sephe Date: Mon Sep 5 04:47:31 2016 New Revision: 305408 URL: https://svnweb.freebsd.org/changeset/base/305408 Log: hyperv/hn: Stringent NVS RNDIS packets length checks. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7755

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

2016-09-04 Thread Sepherosa Ziehau
Author: sephe Date: Mon Sep 5 03:39:04 2016 New Revision: 305407 URL: https://svnweb.freebsd.org/changeset/base/305407 Log: hyperv/hn: Stringent NVS notification length check. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7753

svn commit: r305406 - head/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 03:37:28 2016 New Revision: 305406 URL: https://svnweb.freebsd.org/changeset/base/305406 Log: Fix errors handling. MFC after: 3 days Modified: head/lib/libc/stdio/fgetws.c Modified: head/lib/libc/stdio/fgetws.c =

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

2016-09-04 Thread Sepherosa Ziehau
Author: sephe Date: Mon Sep 5 03:21:31 2016 New Revision: 305405 URL: https://svnweb.freebsd.org/changeset/base/305405 Log: hyperv/vmbus: Stringent header length and total length check. While I'm here, minor style changes. MFC after:1 week Sponsored by: Microsoft Differential

Re: svn commit: r305358 - in head: bin/cat/tests contrib/netbsd-tests contrib/netbsd-tests/bin/cat contrib/netbsd-tests/bin/sh contrib/netbsd-tests/bin/sh/dotcmd contrib/netbsd-tests/crypto/opencrypto

2016-09-04 Thread Ngie Cooper
> On Sep 4, 2016, at 19:24, Craig Rodrigues wrote: > > Hi, > > The tests in libc are broken after this commit. > lib/libc/test/db/Makefile defines "PROGS = h_lfsr" > but the test is trying to execute a binary "h_db" > which no longer exists. > > Can you fix this? > > Thanks. There's also the

Re: svn commit: r305358 - in head: bin/cat/tests contrib/netbsd-tests contrib/netbsd-tests/bin/cat contrib/netbsd-tests/bin/sh contrib/netbsd-tests/bin/sh/dotcmd contrib/netbsd-tests/crypto/opencrypto

2016-09-04 Thread Craig Rodrigues
Hi, The tests in libc are broken after this commit. lib/libc/test/db/Makefile defines "PROGS = h_lfsr" but the test is trying to execute a binary "h_db" which no longer exists. Can you fix this? Thanks. -- Craig On Sat, Sep 3, 2016 at 11:11 AM, Ngie Cooper wrote: > Author: ngie > Date: Sat

svn commit: r305404 - stable/11/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 02:00:35 2016 New Revision: 305404 URL: https://svnweb.freebsd.org/changeset/base/305404 Log: MFC r305241 fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete sequence near EOF), so we can't just check for (wc == WEOF && !__sfeof(fp)) and

svn commit: r305403 - stable/10/lib/libc/stdio

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 01:57:32 2016 New Revision: 305403 URL: https://svnweb.freebsd.org/changeset/base/305403 Log: MFC r305241 fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete sequence near EOF), so we can't just check for (wc == WEOF && !__sfeof(fp)) and

svn commit: r305402 - stable/11/lib/libc/net

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 00:41:17 2016 New Revision: 305402 URL: https://svnweb.freebsd.org/changeset/base/305402 Log: MFC r305144 'addrlen' does not matter when we need to find the first non-zero bit in the byte from the left and 'addrlen' already counted in 'lim'. PR: 2121

svn commit: r305401 - stable/10/lib/libc/net

2016-09-04 Thread Andrey A. Chernov
Author: ache Date: Mon Sep 5 00:36:52 2016 New Revision: 305401 URL: https://svnweb.freebsd.org/changeset/base/305401 Log: MFC r305144 'addrlen' does not matter when we need to find the first non-zero bit in the byte from the left and 'addrlen' already counted in 'lim'. PR: 2121

svn commit: r305399 - head/sys/boot/fdt/dts/arm64

2016-09-04 Thread Jared McNeill
Author: jmcneill Date: Sun Sep 4 22:30:46 2016 New Revision: 305399 URL: https://svnweb.freebsd.org/changeset/base/305399 Log: A64 thermal sensor IRQ is GIC_SPI 31, not 41. Modified: head/sys/boot/fdt/dts/arm64/a64.dtsi Modified: head/sys/boot/fdt/dts/arm64/a64.dtsi

svn commit: r305398 - head/sys/sparc64/sparc64

2016-09-04 Thread Alan Cox
Author: alc Date: Sun Sep 4 22:08:04 2016 New Revision: 305398 URL: https://svnweb.freebsd.org/changeset/base/305398 Log: Replace the number 4 in pmap_ts_referenced() by PMAP_TS_REFERENCED_MAX, like we've done elsewhere, e.g., amd64. As an optimization to the machine-independent layer, c

svn commit: r305396 - head/contrib/libcxxrt

2016-09-04 Thread Dimitry Andric
Author: dim Date: Sun Sep 4 21:48:58 2016 New Revision: 305396 URL: https://svnweb.freebsd.org/changeset/base/305396 Log: Add _US_ACTION_MASK to libcxxrt's arm-specific unwind header. This value is used in newer versions of compiler-rt. MFC after:3 days Modified: head/contrib/lib

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Conrad Meyer
Hm, the GCC 5.3 manual page mentions at least -Wshift-count-negative, -Wshift-count-overflow, and -Wcast-qual. Best, Conrad On Sun, Sep 4, 2016 at 1:36 PM, Dimitry Andric wrote: > Not in this particular case, as the section is exclusively meant for > clang. Most of these warning options are com

svn commit: r305395 - in head: lib/libifconfig share/examples/libifconfig

2016-09-04 Thread Kristof Provost
Author: kp Date: Sun Sep 4 20:55:27 2016 New Revision: 305395 URL: https://svnweb.freebsd.org/changeset/base/305395 Log: libifconfig: style(9) fixes Also switch from BSD 3-clause to 2-clause license where possible, and consolidate duplicate 3-clause license into one. Submitted by: M

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Dimitry Andric
Not in this particular case, as the section is exclusively meant for clang. Most of these warning options are completely different from gcc's. The gcc related section is just below this part in kern.mk. -Dimitry > On 04 Sep 2016, at 22:03, Conrad Meyer wrote: > > Assuming we'd like to enable

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Conrad Meyer
Assuming we'd like to enable building with both compilers for now, isn't it better to use a form both accept? Best, Conrad On Sun, Sep 4, 2016 at 12:31 PM, Dimitry Andric wrote: > On 04 Sep 2016, at 20:57, Conrad Meyer wrote: >> >> On Sun, Sep 4, 2016 at 10:55 AM, Dimitry Andric wrote: >>> Aut

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Joerg Sonnenberger
On Sun, Sep 04, 2016 at 09:31:19PM +0200, Dimitry Andric wrote: > On 04 Sep 2016, at 20:57, Conrad Meyer wrote: > > > > On Sun, Sep 4, 2016 at 10:55 AM, Dimitry Andric wrote: > >> Author: dim > >> Date: Sun Sep 4 17:55:22 2016 > >> New Revision: 305392 > >> URL: https://svnweb.freebsd.org/chang

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Dimitry Andric
On 04 Sep 2016, at 20:57, Conrad Meyer wrote: > > On Sun, Sep 4, 2016 at 10:55 AM, Dimitry Andric wrote: >> Author: dim >> Date: Sun Sep 4 17:55:22 2016 >> New Revision: 305392 >> URL: https://svnweb.freebsd.org/changeset/base/305392 >> >> Log: >> For kernel builds, instead of suppressing cer

Re: svn commit: r305392 - head/sys/conf

2016-09-04 Thread Conrad Meyer
On Sun, Sep 4, 2016 at 10:55 AM, Dimitry Andric wrote: > Author: dim > Date: Sun Sep 4 17:55:22 2016 > New Revision: 305392 > URL: https://svnweb.freebsd.org/changeset/base/305392 > > Log: > For kernel builds, instead of suppressing certain clang warnings, make > them non-fatal, so there is s

Re: svn commit: r305391 - head/sys/arm64/arm64

2016-09-04 Thread Alan Cox
On 09/04/2016 12:50, Andrew Turner wrote: > Author: andrew > Date: Sun Sep 4 17:50:23 2016 > New Revision: 305391 > URL: https://svnweb.freebsd.org/changeset/base/305391 > > Log: > Enable superpages on arm64 by default. These seem to be stable, having > survived multiple world and kernel build

svn commit: r305393 - in head/sys: conf modules/bwn

2016-09-04 Thread Dimitry Andric
Author: dim Date: Sun Sep 4 17:56:55 2016 New Revision: 305393 URL: https://svnweb.freebsd.org/changeset/base/305393 Log: Make some additional -Wconstant-conversion warnings from clang 3.9.0 in bwn(4) non-fatal for now. Modified: head/sys/conf/files head/sys/modules/bwn/Makefile Modifie

svn commit: r305392 - head/sys/conf

2016-09-04 Thread Dimitry Andric
Author: dim Date: Sun Sep 4 17:55:22 2016 New Revision: 305392 URL: https://svnweb.freebsd.org/changeset/base/305392 Log: For kernel builds, instead of suppressing certain clang warnings, make them non-fatal, so there is some incentive to fix them eventually. Modified: head/sys/conf/kern.m

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

2016-09-04 Thread Andrew Turner
Author: andrew Date: Sun Sep 4 17:50:23 2016 New Revision: 305391 URL: https://svnweb.freebsd.org/changeset/base/305391 Log: Enable superpages on arm64 by default. These seem to be stable, having survived multiple world and kernel builds, and of poudriere building full package sets. I

svn commit: r305389 - head/sys/netinet

2016-09-04 Thread Dimitry Andric
Author: dim Date: Sun Sep 4 17:23:10 2016 New Revision: 305389 URL: https://svnweb.freebsd.org/changeset/base/305389 Log: With clang 3.9.0, compiling sys/netinet/igmp.c results in the following warning: sys/netinet/igmp.c:546:21: error: implicit conversion from 'int' to 'char' changes v

svn commit: r305388 - head/sys/dev/usb/serial

2016-09-04 Thread Dimitry Andric
Author: dim Date: Sun Sep 4 16:59:35 2016 New Revision: 305388 URL: https://svnweb.freebsd.org/changeset/base/305388 Log: With clang 3.9.0, compiling uplcom results in the following warnings: sys/dev/usb/serial/uplcom.c:543:29: error: implicit conversion from 'int' to 'int8_t' (aka 'signe

svn commit: r305386 - head/sys/kern

2016-09-04 Thread Mateusz Guzik
Author: mjg Date: Sun Sep 4 16:52:14 2016 New Revision: 305386 URL: https://svnweb.freebsd.org/changeset/base/305386 Log: cache: defer freeing entries until after the global lock is dropped This also defers vdrop for held vnodes. Glanced at by:kib Modified: head/sys/kern/vf

Re: svn commit: r305383 - head/sys/sys

2016-09-04 Thread Mateusz Guzik
On Sun, Sep 04, 2016 at 09:00:38AM -0700, Conrad Meyer wrote: > Do you know which revision this was introduced (i.e. what revision > range should be avoided)? The most relevant commit seems to be > r305093 but I'm not sure how that would have broken this (nothing in > that diff was checking fde_fi

Re: svn commit: r305383 - head/sys/sys

2016-09-04 Thread Conrad Meyer
Do you know which revision this was introduced (i.e. what revision range should be avoided)? The most relevant commit seems to be r305093 but I'm not sure how that would have broken this (nothing in that diff was checking fde_file before). Best, Conrad On Sun, Sep 4, 2016 at 6:31 AM, Mateusz Guz

Re: svn commit: r305382 - in head/lib/msun: amd64 i387

2016-09-04 Thread Bruce Evans
On Sun, 4 Sep 2016, Konstantin Belousov wrote: On Sun, Sep 04, 2016 at 12:22:14PM +, Bruce Evans wrote: ... Log: Add asm versions of fmod(), fmodf() and fmodl() on amd64. Add asm versions of fmodf() amd fmodl() on i387. ... It seems that wrong version of i387/f_fmodf.S, it is identica

svn commit: r305385 - head/lib/msun/i387

2016-09-04 Thread Bruce Evans
Author: bde Date: Sun Sep 4 15:08:14 2016 New Revision: 305385 URL: https://svnweb.freebsd.org/changeset/base/305385 Log: Oops, the previous i386 version of e_fmodf.S and e_fmodl.S was actually the amd64 version. Modified: head/lib/msun/i387/e_fmodf.S head/lib/msun/i387/e_fmodl.S Modifi

Re: svn commit: r305382 - in head/lib/msun: amd64 i387

2016-09-04 Thread Konstantin Belousov
On Sun, Sep 04, 2016 at 12:22:14PM +, Bruce Evans wrote: > Author: bde > Date: Sun Sep 4 12:22:14 2016 > New Revision: 305382 > URL: https://svnweb.freebsd.org/changeset/base/305382 > > Log: > Add asm versions of fmod(), fmodf() and fmodl() on amd64. Add asm > versions of fmodf() amd fm

svn commit: r305384 - head/lib/msun/i387

2016-09-04 Thread Bruce Evans
Author: bde Date: Sun Sep 4 14:12:19 2016 New Revision: 305384 URL: https://svnweb.freebsd.org/changeset/base/305384 Log: Disconnect the "optimized" asm variants of cos(), sin() and tan() from the build on i386. Leave them in the source tree for regression tests. The asm functions were

svn commit: r305383 - head/sys/sys

2016-09-04 Thread Mateusz Guzik
Author: mjg Date: Sun Sep 4 13:31:57 2016 New Revision: 305383 URL: https://svnweb.freebsd.org/changeset/base/305383 Log: fd: fix up fdeget_file It was supposed to return NULL if a fp is not installed. Facepalm-by: mjg Modified: head/sys/sys/filedesc.h Modified: head/sys/sys/filed

svn commit: r305382 - in head/lib/msun: amd64 i387

2016-09-04 Thread Bruce Evans
Author: bde Date: Sun Sep 4 12:22:14 2016 New Revision: 305382 URL: https://svnweb.freebsd.org/changeset/base/305382 Log: Add asm versions of fmod(), fmodf() and fmodl() on amd64. Add asm versions of fmodf() amd fmodl() on i387. fmod is similar to remainder, and the C versions are 3 to

svn commit: r305381 - in head: contrib/unbound contrib/unbound/cachedb contrib/unbound/compat contrib/unbound/daemon contrib/unbound/dns64 contrib/unbound/dnstap contrib/unbound/doc contrib/unbound...

2016-09-04 Thread Dag-Erling Smørgrav
Author: des Date: Sun Sep 4 12:17:57 2016 New Revision: 305381 URL: https://svnweb.freebsd.org/changeset/base/305381 Log: Upgrade to Unbound 1.5.9. Added: head/contrib/unbound/cachedb/ - copied from r305347, vendor/unbound/dist/cachedb/ head/contrib/unbound/compat/strsep.c - copi

svn commit: r305380 - head/lib/msun/src

2016-09-04 Thread Bruce Evans
Author: bde Date: Sun Sep 4 12:01:32 2016 New Revision: 305380 URL: https://svnweb.freebsd.org/changeset/base/305380 Log: Fix missing fmodl() on arches with 53-bit long doubles. PR: 199422, 211965 MFC after:1 week Modified: head/lib/msun/src/e_fmod.c Modified: head/lib/

svn commit: r305379 - head/sys/kern

2016-09-04 Thread Mateusz Guzik
Author: mjg Date: Sun Sep 4 08:58:35 2016 New Revision: 305379 URL: https://svnweb.freebsd.org/changeset/base/305379 Log: cache: manage negative entry list with a dedicated lock Since negative entries are managed with a LRU list, a hit requires a modificaton. Currently the code trie

svn commit: r305378 - head/sys/kern

2016-09-04 Thread Mateusz Guzik
Author: mjg Date: Sun Sep 4 08:55:15 2016 New Revision: 305378 URL: https://svnweb.freebsd.org/changeset/base/305378 Log: cache: put all negative entry management code into dedicated functions Reviewed by: kib MFC after:1 week Modified: head/sys/kern/vfs_cache.c Modified: head/s

svn commit: r305377 - stable/11/sys/boot/efi/libefi

2016-09-04 Thread Emmanuel Vadot
Author: manu Date: Sun Sep 4 08:53:58 2016 New Revision: 305377 URL: https://svnweb.freebsd.org/changeset/base/305377 Log: MFC 304222 Only use WaitForKeys event if it exists, this is not the case in u-boot efi implementation. Modified: stable/11/sys/boot/efi/libefi/efi_console.c Direct

svn commit: r305376 - stable/11/sys/boot/efi/boot1

2016-09-04 Thread Emmanuel Vadot
Author: manu Date: Sun Sep 4 08:52:09 2016 New Revision: 305376 URL: https://svnweb.freebsd.org/changeset/base/305376 Log: MFC 304221 and 304271 Use %ju modifier for u_int64_t and %jd modifier for off_t. off_t is long long on arm32 and long on amd64 Correctly print and cast u_int64_