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

2018-08-07 Thread Conrad Meyer
Author: cem Date: Wed Aug 8 04:46:03 2018 New Revision: 337447 URL: https://svnweb.freebsd.org/changeset/base/337447 Log: FUSE: Remove some set-but-not-used variables No functional change. Modified: head/sys/fs/fuse/fuse_file.c head/sys/fs/fuse/fuse_vfsops.c

svn commit: r337443 - head/sys/vm

2018-08-07 Thread Alan Cox
Author: alc Date: Wed Aug 8 02:30:34 2018 New Revision: 337443 URL: https://svnweb.freebsd.org/changeset/base/337443 Log: Defer and aggregate swap_pager_meta_build frees. Before swp_pager_meta_build replaces an old swapblk with an new one, it frees the old one. To allow such freeing of

svn commit: r337442 - in head/contrib/file: . doc magic magic/Magdir python src tests

2018-08-07 Thread Eitan Adler
Author: eadler Date: Wed Aug 8 01:33:36 2018 New Revision: 337442 URL: https://svnweb.freebsd.org/changeset/base/337442 Log: file: update to 5.34 PR: 230141 exp-run by: antoine Added: head/contrib/file/magic/Magdir/dataone - copied unchanged from r336862,

svn commit: r337441 - head/sys/dev/usb/net

2018-08-07 Thread Kevin Lo
Author: kevlo Date: Wed Aug 8 01:20:02 2018 New Revision: 337441 URL: https://svnweb.freebsd.org/changeset/base/337441 Log: - Fix hash calculation by MAC address - Since rx_cmd_c is an uint16_t, use le16toh() instead of le32toh() Reviewed by: emaste Modified:

svn commit: r337440 - head/usr.bin/printf

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 23:03:50 2018 New Revision: 337440 URL: https://svnweb.freebsd.org/changeset/base/337440 Log: Fix printf(1) ignores width and precision in %b format. The precision with behavior is "unspecified" by POSIX (as of 2018), but most implementations seem to have

svn commit: r337439 - in head/sys/dev/cxgbe: . common

2018-08-07 Thread Navdeep Parhar
Author: np Date: Tue Aug 7 22:13:03 2018 New Revision: 337439 URL: https://svnweb.freebsd.org/changeset/base/337439 Log: cxgbe(4): Allow the driver to specify a burst size when configuring a traffic class for rate limiting. Add experimental knobs that allow the user to specify a default

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

2018-08-07 Thread Gleb Smirnoff
On Sat, Aug 04, 2018 at 10:48:17AM +0300, Konstantin Belousov wrote: K> On Fri, Aug 03, 2018 at 03:27:39PM -0700, Gleb Smirnoff wrote: K> > Hi Konstantin, K> > K> > On Fri, Jul 06, 2018 at 07:50:44PM +, Konstantin Belousov wrote: K> > K> Author: kib K> > K> Date: Fri Jul 6 19:50:44 2018 K>

svn commit: r337438 - head/sys/fs/nfs

2018-08-07 Thread Rick Macklem
Author: rmacklem Date: Tue Aug 7 21:29:14 2018 New Revision: 337438 URL: https://svnweb.freebsd.org/changeset/base/337438 Log: Allow newnfs_request() to retry all callback RPCs with an NFSERR_DELAY reply. The code in newnfs_request() retries RPCs that get a reply of NFSERR_DELAY, but

svn commit: r337437 - head/sbin/mount

2018-08-07 Thread Kirk McKusick
Author: mckusick Date: Tue Aug 7 21:17:45 2018 New Revision: 337437 URL: https://svnweb.freebsd.org/changeset/base/337437 Log: When getting mount information for all filesystems, mount uses the getfsstat(2) system call using the MNT_NOWAIT flag to indicate that it wants to use the statfs

svn commit: r337436 - head/sys/kern

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 20:43:50 2018 New Revision: 337436 URL: https://svnweb.freebsd.org/changeset/base/337436 Log: Followup to r337430: only call elf_reloc_ifunc on x86. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/link_elf_obj.c Modified:

svn commit: r337435 - in head: sbin/init stand/man

2018-08-07 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Aug 7 19:23:03 2018 New Revision: 337435 URL: https://svnweb.freebsd.org/changeset/base/337435 Log: Move description of init_shell, init_script, and init_chroot kenv tunables from loader(8) to init(8), since it's init that actually uses them. Add .Xrs at their old

svn commit: r337434 - head/sys/compat/linuxkpi/common/include/asm

2018-08-07 Thread Marius Strobl
Author: marius Date: Tue Aug 7 18:59:02 2018 New Revision: 337434 URL: https://svnweb.freebsd.org/changeset/base/337434 Log: Update the list of architectures having atomic_fcmpset_{8,16,64}(9) and atomic_swap_{64,int}(9) respectively as of r337433. Modified:

svn commit: r337433 - head/sys/riscv/include

2018-08-07 Thread Marius Strobl
Author: marius Date: Tue Aug 7 18:56:51 2018 New Revision: 337433 URL: https://svnweb.freebsd.org/changeset/base/337433 Log: Implement atomic_swap_{int,long,ptr}(9). Modified: head/sys/riscv/include/atomic.h Modified: head/sys/riscv/include/atomic.h

svn commit: r337432 - head/sys/arm/include

2018-08-07 Thread Marius Strobl
Author: marius Date: Tue Aug 7 18:56:01 2018 New Revision: 337432 URL: https://svnweb.freebsd.org/changeset/base/337432 Log: Implement atomic_swap_64(9). Modified: head/sys/arm/include/atomic-v4.h Modified: head/sys/arm/include/atomic-v4.h

svn commit: r337431 - in head/sys/amd64: linux linux32

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 18:29:10 2018 New Revision: 337431 URL: https://svnweb.freebsd.org/changeset/base/337431 Log: Futex support functions in linux.ko and linux32.ko on amd64 should be aware of SMAP. Reported and tested by: Johannes Lundberg , wulf Sponsored by: The

svn commit: r337430 - head/sys/kern

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 18:26:46 2018 New Revision: 337430 URL: https://svnweb.freebsd.org/changeset/base/337430 Log: Add missed handling of local relocs against ifunc target in the obj modules. Reported and tested by: wulf Sponsored by: The FreeBSD Foundation MFC after:

svn commit: r337429 - stable/11/sys/vm

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 17:45:49 2018 New Revision: 337429 URL: https://svnweb.freebsd.org/changeset/base/337429 Log: MFC r336987: For compat32, emulate the same wraparound check as occurs on the real ILP32 system. PR: 230162 Modified: stable/11/sys/vm/vm_mmap.c Directory

svn commit: r337428 - stable/11/sys/compat/freebsd32

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 17:44:36 2018 New Revision: 337428 URL: https://svnweb.freebsd.org/changeset/base/337428 Log: Regen. Modified: stable/11/sys/compat/freebsd32/freebsd32_proto.h stable/11/sys/compat/freebsd32/freebsd32_syscall.h

svn commit: r337427 - stable/11/sys/compat/freebsd32

2018-08-07 Thread Konstantin Belousov
Author: kib Date: Tue Aug 7 17:44:13 2018 New Revision: 337427 URL: https://svnweb.freebsd.org/changeset/base/337427 Log: MFC r336980: Provide compat32 shims for sched_rr_get_interval(2). PR: 230175 Modified: stable/11/sys/compat/freebsd32/freebsd32_misc.c

svn commit: r337426 - head/sbin/ifconfig

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 17:25:38 2018 New Revision: 337426 URL: https://svnweb.freebsd.org/changeset/base/337426 Log: ifconfig: Fix use of _Noreturn. The _Noreturn is a function-specifier (like inline) which must preceed the declarator. Submitted by: Sebastian Huber MFC

svn commit: r337425 - head/sys/dev/mii

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 17:13:42 2018 New Revision: 337425 URL: https://svnweb.freebsd.org/changeset/base/337425 Log: Recognize ICS1893C PHYs. Submitted by: Sebastian Huber MFC after:1 week Modified: head/sys/dev/mii/icsphy.c head/sys/dev/mii/miidevs Modified:

svn commit: r337424 - head/tests/sys/kern

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 16:39:07 2018 New Revision: 337424 URL: https://svnweb.freebsd.org/changeset/base/337424 Log: Update PR 131876 regression tests after r337423. - Add some more cases to the truncation test. - Remove the "expect fail" annotations. PR: 131876

svn commit: r337423 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux kern sys

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 16:36:48 2018 New Revision: 337423 URL: https://svnweb.freebsd.org/changeset/base/337423 Log: Improve handling of control message truncation. If a recvmsg(2) or recvmmsg(2) caller doesn't provide sufficient space for all control messages, the kernel sets

svn commit: r337422 - in head/lib/libc: gen inet

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 15:24:19 2018 New Revision: 337422 URL: https://svnweb.freebsd.org/changeset/base/337422 Log: libc: fix cases of undefined behavior. These were found by the Undefined Behavious GsoC project at NetBSD: Avoid undefined behavior in ftok(3) Do not change

svn commit: r337421 - stable/11/tests/sys/kern

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 15:04:53 2018 New Revision: 337421 URL: https://svnweb.freebsd.org/changeset/base/337421 Log: MFC r336957: Add a regression test related to PR 131876. PR: 131876 Modified: stable/11/tests/sys/kern/unix_passfd_test.c Directory Properties: stable/11/

svn commit: r337420 - in stable: 10/release/doc/share/xml 11/release/doc/share/xml

2018-08-07 Thread Glen Barber
Author: gjb Date: Tue Aug 7 15:03:11 2018 New Revision: 337420 URL: https://svnweb.freebsd.org/changeset/base/337420 Log: Document SA-18:08. Sponsored by: The FreeBSD Foundation Modified: stable/10/release/doc/share/xml/security.xml Changes in other areas also in this revision:

svn commit: r337420 - in stable: 10/release/doc/share/xml 11/release/doc/share/xml

2018-08-07 Thread Glen Barber
Author: gjb Date: Tue Aug 7 15:03:11 2018 New Revision: 337420 URL: https://svnweb.freebsd.org/changeset/base/337420 Log: Document SA-18:08. Sponsored by: The FreeBSD Foundation Modified: stable/11/release/doc/share/xml/security.xml Changes in other areas also in this revision:

svn commit: r337419 - head/usr.bin/sed

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 14:47:39 2018 New Revision: 337419 URL: https://svnweb.freebsd.org/changeset/base/337419 Log: sed(1): partial fix for the case of the regex delimited with '['. We don't generally support the weird case of regular expresions delimited by an opening square

svn commit: r337418 - in stable/11: lib/libc/sys sys/kern tests/sys/kqueue/libkqueue

2018-08-07 Thread David Bright
Author: dab Date: Tue Aug 7 14:39:00 2018 New Revision: 337418 URL: https://svnweb.freebsd.org/changeset/base/337418 Log: MFC r336761 & r336781: Allow a EVFILT_TIMER kevent to be updated. If a timer is updated (re-added) with a different time period (specified in the .data field of

svn commit: r337417 - stable/11/usr.sbin/newsyslog

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 14:09:29 2018 New Revision: 337417 URL: https://svnweb.freebsd.org/changeset/base/337417 Log: MFC r337323: Fix a flag collision introduced in r327451. PR: 230350 Modified: stable/11/usr.sbin/newsyslog/newsyslog.c Directory Properties: stable/11/

svn commit: r337415 - head/sbin/dhclient

2018-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 7 13:50:21 2018 New Revision: 337415 URL: https://svnweb.freebsd.org/changeset/base/337415 Log: dhclient: Enter capability mode before dropping privileges. This is needed to be able to chroot in the fallback case where Capsicum is not available. Reported

svn commit: r337413 - head/stand/libsa

2018-08-07 Thread Toomas Soome
Author: tsoome Date: Tue Aug 7 10:53:51 2018 New Revision: 337413 URL: https://svnweb.freebsd.org/changeset/base/337413 Log: libsa: gzipfs.c converts pointers to integer types with different sign Signed versus unsigned char. Modified: head/stand/libsa/gzipfs.c Modified:

svn commit: r337412 - head/stand/libsa

2018-08-07 Thread Toomas Soome
Author: tsoome Date: Tue Aug 7 10:48:36 2018 New Revision: 337412 URL: https://svnweb.freebsd.org/changeset/base/337412 Log: libsa: dos_checksum() should take unsigned chars Fix pointers to integers with different sign issue. Modified: head/stand/libsa/dosfs.c Modified:

svn commit: r337411 - head/sys/dev/vt/hw/vga

2018-08-07 Thread Colin Percival
Author: cperciva Date: Tue Aug 7 08:33:40 2018 New Revision: 337411 URL: https://svnweb.freebsd.org/changeset/base/337411 Log: Replace a pair of 8-bit writes to VGA memory with a single 16-bit write. The VGA "text mode" buffer has a pair of bytes for each character: One byte for the

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

2018-08-07 Thread Cy Schubert
Author: cy Date: Tue Aug 7 07:12:59 2018 New Revision: 337410 URL: https://svnweb.freebsd.org/changeset/base/337410 Log: Remove redundant and incorrect default definition of AF_INET6. AF_INET6 is defined in sys/socket.h where it's defined as 28. A bit of trivia: On NetBSD AF_INET6 is