svn commit: r352467 - head/share/man/man5

2019-09-17 Thread Kyle Evans
Author: kevans Date: Wed Sep 18 02:04:41 2019 New Revision: 352467 URL: https://svnweb.freebsd.org/changeset/base/352467 Log: src.conf(5): regenerate after r352465, r352466 These changed the defaults for the GOOGLETEST knob and added a description for WITH_GOOGLETEST. Modified:

svn commit: r352466 - head/tools/build/options

2019-09-17 Thread Kyle Evans
Author: kevans Date: Wed Sep 18 02:03:39 2019 New Revision: 352466 URL: https://svnweb.freebsd.org/changeset/base/352466 Log: Add description for WITH_GOOGLETEST This is the logical negation of WITHOUT_GOOGLETEST, and helpful to have as we now have different per-arch defaults for this

svn commit: r352465 - head/share/mk

2019-09-17 Thread Kyle Evans
Author: kevans Date: Wed Sep 18 01:58:56 2019 New Revision: 352465 URL: https://svnweb.freebsd.org/changeset/base/352465 Log: googletest: default-disable on all of MIPS for now Parts of the fusefs tests trigger a bug in current versions of llvm: IR representation of some routine for the

svn commit: r352464 - head/stand/mips/uboot

2019-09-17 Thread Kyle Evans
Author: kevans Date: Wed Sep 18 01:33:17 2019 New Revision: 352464 URL: https://svnweb.freebsd.org/changeset/base/352464 Log: mips: ubldr: use truncated load address for mips32 BFD appears to silently truncate 0x8080 when it processes the ldscript for 32-bit mips, but LLD

Re: svn commit: r352451 - head/stand/libsa

2019-09-17 Thread Conrad Meyer
Well, hang on; it's also perfectly legal for a malloc implementation to return NULL for requests of zero bytes. You can access exactly the number of bytes requested in the allocation; and free(NULL) works as expected. NULL (0) is also aligned to any size you could want. Best, Conrad On Tue,

svn commit: r352463 - head/tests/sys/netpfil/common

2019-09-17 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 17 22:09:14 2019 New Revision: 352463 URL: https://svnweb.freebsd.org/changeset/base/352463 Log: Temporarily skip sys.netpfil.common.tos.pf_tos on i386 CI as it always fails PR: 240086 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r352462 - head/tests/sys/netpfil/common

2019-09-17 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 17 22:08:16 2019 New Revision: 352462 URL: https://svnweb.freebsd.org/changeset/base/352462 Log: Temporarily skip sys.netpfil.common.forward.pf_v4 on i386 CI as it always fails PR: 240085 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r352461 - head/usr.sbin/newsyslog

2019-09-17 Thread Steve Wills
Author: swills (ports committer) Date: Tue Sep 17 20:05:06 2019 New Revision: 352461 URL: https://svnweb.freebsd.org/changeset/base/352461 Log: Use correct filename in newsyslog.conf Approved by: bapt (implicit) Differential Revision:https://reviews.freebsd.org/D21561

svn commit: r352460 - in head/usr.sbin: newsyslog syslogd

2019-09-17 Thread Steve Wills
Author: swills (ports committer) Date: Tue Sep 17 20:03:20 2019 New Revision: 352460 URL: https://svnweb.freebsd.org/changeset/base/352460 Log: log daemon.info to /var/log/daemon.log by default log daemon facility now that daemon(8) has syslog support which defaults to daemon facility,

svn commit: r352459 - head/sbin/ifconfig

2019-09-17 Thread Konstantin Belousov
Author: kib Date: Tue Sep 17 18:51:10 2019 New Revision: 352459 URL: https://svnweb.freebsd.org/changeset/base/352459 Log: ifconfig: add report of the string from SIOCGIFDOWNREASON. Sample output: # ifconfig mce0 mce0: flags=8802 metric 0 mtu 1500 options=3ed07bb ether

svn commit: r352458 - in head/sys: net sys

2019-09-17 Thread Konstantin Belousov
Author: kib Date: Tue Sep 17 18:49:13 2019 New Revision: 352458 URL: https://svnweb.freebsd.org/changeset/base/352458 Log: Add SIOCGIFDOWNREASON. The ioctl(2) is intended to provide more details about the cause of the down for the link. Eventually we might define a comprehensive

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

2019-09-17 Thread Konstantin Belousov
Author: kib Date: Tue Sep 17 18:41:39 2019 New Revision: 352457 URL: https://svnweb.freebsd.org/changeset/base/352457 Log: Further refine r352393, only call vnode_pager_setsize() outside the node lock when shrinking. This is similar to r252528, applied to the above commit.

svn commit: r352456 - head/contrib/jemalloc/src

2019-09-17 Thread Konstantin Belousov
Author: kib Date: Tue Sep 17 18:36:29 2019 New Revision: 352456 URL: https://svnweb.freebsd.org/changeset/base/352456 Log: realloc(x, 0) should not return NULL. See http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_400. Upstream jemalloc issue is opened by emaste at

svn commit: r352455 - in head: lib/libc/sys sys/kern

2019-09-17 Thread Konstantin Belousov
Author: kib Date: Tue Sep 17 18:32:18 2019 New Revision: 352455 URL: https://svnweb.freebsd.org/changeset/base/352455 Log: Return EISDIR when directory is opened with O_CREAT without O_DIRECTORY. Reviewed by: bcr (man page), emaste (previous version) PR: 240452 Sponsored by: The

svn commit: r352454 - head/stand/forth

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 18:05:33 2019 New Revision: 352454 URL: https://svnweb.freebsd.org/changeset/base/352454 Log: loader: provide u> and xemit words if needed We have external interpreter (userboot.so) which may be lagging behind with updates and may be missing u> xemit

svn commit: r352453 - head/sys/kern

2019-09-17 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 17 17:44:50 2019 New Revision: 352453 URL: https://svnweb.freebsd.org/changeset/base/352453 Log: The VFS-level clustering code collects together sequential blocks by issuing delayed-writes (bdwrite()) until a non-sequential block is written or the maximum

svn commit: r352452 - in stable/12/sys/arm64: arm64 include

2019-09-17 Thread Alan Cox
Author: alc Date: Tue Sep 17 17:28:44 2019 New Revision: 352452 URL: https://svnweb.freebsd.org/changeset/base/352452 Log: MFC r349117, r349122, r349183, r349897, r349943, r350004, r350029, r350038, r350191, r350202, r350422, r350427, r350525 r349117: Three enhancements to arm64's

Re: svn commit: r352451 - head/stand/libsa

2019-09-17 Thread Konstantin Belousov
On Tue, Sep 17, 2019 at 04:16:47PM +, Toomas Soome wrote: > Author: tsoome > Date: Tue Sep 17 16:16:46 2019 > New Revision: 352451 > URL: https://svnweb.freebsd.org/changeset/base/352451 > > Log: > loader: revert r352421 > > As insisted by kib, malloc(0) is quite legal. Thank you. >

Re: svn commit: r352451 - head/stand/libsa

2019-09-17 Thread Ian Lepore
On Tue, 2019-09-17 at 16:16 +, Toomas Soome wrote: > Author: tsoome > Date: Tue Sep 17 16:16:46 2019 > New Revision: 352451 > URL: https://svnweb.freebsd.org/changeset/base/352451 > > Log: > loader: revert r352421 > > As insisted by kib, malloc(0) is quite legal. > > Modified: >

svn commit: r352451 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 16:16:46 2019 New Revision: 352451 URL: https://svnweb.freebsd.org/changeset/base/352451 Log: loader: revert r352421 As insisted by kib, malloc(0) is quite legal. Modified: head/stand/libsa/zalloc_malloc.c Modified: head/stand/libsa/zalloc_malloc.c

svn commit: r352450 - head/sys/kern

2019-09-17 Thread Mateusz Guzik
Author: mjg Date: Tue Sep 17 15:53:40 2019 New Revision: 352450 URL: https://svnweb.freebsd.org/changeset/base/352450 Log: vfs: apply r352437 to the fast path as well This one is very hard to run into. If the filesystem is being unmounted or the mount point is freed the

Re: svn commit: r352421 - head/stand/libsa

2019-09-17 Thread Konstantin Belousov
On Tue, Sep 17, 2019 at 12:05:26PM +0300, Toomas Soome wrote: > > > > On 17 Sep 2019, at 11:56, Konstantin Belousov wrote: > > > > On Mon, Sep 16, 2019 at 08:28:09PM +, Toomas Soome wrote: > >> Author: tsoome > >> Date: Mon Sep 16 20:28:08 2019 > >> New Revision: 352421 > >> URL:

svn commit: r352449 - head/lib/libbe

2019-09-17 Thread Andriy Gapon
Author: avg Date: Tue Sep 17 14:15:48 2019 New Revision: 352449 URL: https://svnweb.freebsd.org/changeset/base/352449 Log: fixup up fallout from r352447 in libbe I totally forgot that we now have another in-tree consumer of libzfs. MFC after:3 days X-MFC with: r352447

svn commit: r352448 - head/contrib/netbsd-tests/lib/libc/sys

2019-09-17 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 17 14:08:09 2019 New Revision: 352448 URL: https://svnweb.freebsd.org/changeset/base/352448 Log: Temporarily skip flakey test case lib.libc.sys.stat_test.stat_socket PR: 240621 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r352447 - in head/cddl/contrib/opensolaris: cmd/zfs lib/libzfs/common

2019-09-17 Thread Andriy Gapon
Author: avg Date: Tue Sep 17 13:58:15 2019 New Revision: 352447 URL: https://svnweb.freebsd.org/changeset/base/352447 Log: MFZoL: Add -vnP support to 'zfs send' for bookmarks zfsonlinux/zfs@835db58592d7d947e5818eb7281882e2a46073e0 We have long supported estimating a size of an

svn commit: r352446 - head/stand/efi/libefi

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 13:50:25 2019 New Revision: 352446 URL: https://svnweb.freebsd.org/changeset/base/352446 Log: loader.efi: efipart needs to use ioalign UEFI specification 2.7A, EFI_BLOCK_IO_PROTOCOL, page 566. The ioalign property does define the alignment of data

svn commit: r352445 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 13:15:27 2019 New Revision: 352445 URL: https://svnweb.freebsd.org/changeset/base/352445 Log: loader: add memalign() to libsa Implement memalign(size_t alignment, size_t size) to allocate aligned memory. Modified: head/stand/libsa/stand.h

svn commit: r352444 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 13:07:02 2019 New Revision: 352444 URL: https://svnweb.freebsd.org/changeset/base/352444 Log: loader: stand.h should define reallocf as Reallocf Use the same approach as other zalloc functions. Modified: head/stand/libsa/stand.h Modified:

svn commit: r352443 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 11:35:53 2019 New Revision: 352443 URL: https://svnweb.freebsd.org/changeset/base/352443 Log: loader: cstyle cleanup libsa zalloc sources Clean up libstand zalloc* sources. Note that it is not 100% whitespace cleanup. I also reduced block in znalloc and

svn commit: r352442 - stable/12/sys/arm/arm

2019-09-17 Thread Aleksandr Rybalko
Author: ray Date: Tue Sep 17 11:20:53 2019 New Revision: 352442 URL: https://svnweb.freebsd.org/changeset/base/352442 Log: MFC r351649 Check for region dups. Modified: stable/12/sys/arm/arm/physmem.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r352441 - stable/12/sys/arm64/arm64

2019-09-17 Thread Andrew Turner
Author: andrew Date: Tue Sep 17 10:09:59 2019 New Revision: 352441 URL: https://svnweb.freebsd.org/changeset/base/352441 Log: MFC r343042, r343875 r343042: Ensure the I-Cache is correctly handled in arm64_icache_sync_range The cache_handle_range macro to handle the arm64 instruction

svn commit: r352440 - stable/12/sys/arm64/arm64

2019-09-17 Thread Andrew Turner
Author: andrew Date: Tue Sep 17 10:00:53 2019 New Revision: 352440 URL: https://svnweb.freebsd.org/changeset/base/352440 Log: MFC r342552: Pass VM_PROT_EXECUTE to vm_fault for instruction faults. We need to tell vm_fault the reason for the fault was because we tried to execute from the

svn commit: r352439 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 09:47:35 2019 New Revision: 352439 URL: https://svnweb.freebsd.org/changeset/base/352439 Log: loader: factor out guard location setup from Realloc To simplify and make it easier to read, use ga_Bytes field from guard structure. Modified:

svn commit: r352438 - head/sys/netinet

2019-09-17 Thread Michael Tuexen
Author: tuexen Date: Tue Sep 17 09:46:42 2019 New Revision: 352438 URL: https://svnweb.freebsd.org/changeset/base/352438 Log: Only allow a SCTP-AUTH shared key to be updated by the application if it is not deactivated and not used. This avoids a use-after-free problem. Reported by:

Re: svn commit: r352421 - head/stand/libsa

2019-09-17 Thread Toomas Soome via svn-src-all
> On 17 Sep 2019, at 11:56, Konstantin Belousov wrote: > > On Mon, Sep 16, 2019 at 08:28:09PM +, Toomas Soome wrote: >> Author: tsoome >> Date: Mon Sep 16 20:28:08 2019 >> New Revision: 352421 >> URL: https://svnweb.freebsd.org/changeset/base/352421 >> >> Log: >> loader: Malloc(0)

Re: svn commit: r352421 - head/stand/libsa

2019-09-17 Thread Konstantin Belousov
On Mon, Sep 16, 2019 at 08:28:09PM +, Toomas Soome wrote: > Author: tsoome > Date: Mon Sep 16 20:28:08 2019 > New Revision: 352421 > URL: https://svnweb.freebsd.org/changeset/base/352421 > > Log: > loader: Malloc(0) should return NULL. > > We really should not allocate anything with

svn commit: r352437 - head/sys/kern

2019-09-17 Thread Mateusz Guzik
Author: mjg Date: Tue Sep 17 08:09:39 2019 New Revision: 352437 URL: https://svnweb.freebsd.org/changeset/base/352437 Log: vfs: fix braino resulting in NULL pointer deref in r352424 The breakage was added after all the testing and the testing which followed was not sufficient to find it.