svn commit: r356758 - in head/usr.sbin/bsdinstall: . scripts

2020-01-14 Thread Ben Woods
Author: woodsb02 (ports committer) Date: Wed Jan 15 07:47:52 2020 New Revision: 356758 URL: https://svnweb.freebsd.org/changeset/base/356758 Log: bsdinstall: Change "default" (first) Partitioning method to ZFS Reported by: Ruben Schade (during his talk at linux.conf.au) Approved by:

Re: svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys

2020-01-14 Thread Steven Hartland
Aren’t the current and suggested the same there or do I need more coffee this morning? On Wed, 15 Jan 2020 at 06:10, Gleb Smirnoff wrote: > Hi, > > On Wed, Jan 15, 2020 at 06:05:20AM +, Gleb Smirnoff wrote: > T> Log: > T> Introduce NET_EPOCH_CALL() macro and use it everywhere where we

svn commit: r356757 - head/sys/net

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 06:18:32 2020 New Revision: 356757 URL: https://svnweb.freebsd.org/changeset/base/356757 Log: gif_transmit() must always be called in the network epoch. Modified: head/sys/net/if_gif.c head/sys/net/if_gif.h Modified: head/sys/net/if_gif.c

svn commit: r356756 - head/sys/netinet

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 06:12:39 2020 New Revision: 356756 URL: https://svnweb.freebsd.org/changeset/base/356756 Log: A miss from r356754. Modified: head/sys/netinet/tcp_ratelimit.c Modified: head/sys/netinet/tcp_ratelimit.c

Re: svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys

2020-01-14 Thread Gleb Smirnoff
Hi, On Wed, Jan 15, 2020 at 06:05:20AM +, Gleb Smirnoff wrote: T> Log: T> Introduce NET_EPOCH_CALL() macro and use it everywhere where we free T> data based on the network epoch. The macro reverses the argument T> order of epoch_call(9) - first function, then its argument. NFC I

svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 06:05:20 2020 New Revision: 356755 URL: https://svnweb.freebsd.org/changeset/base/356755 Log: Introduce NET_EPOCH_CALL() macro and use it everywhere where we free data based on the network epoch. The macro reverses the argument order of epoch_call(9) -

svn commit: r356754 - head/sys/netinet

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 05:48:36 2020 New Revision: 356754 URL: https://svnweb.freebsd.org/changeset/base/356754 Log: Use official macro to enter/exit the network epoch. NFC Modified: head/sys/netinet/tcp_ratelimit.c Modified: head/sys/netinet/tcp_ratelimit.c

svn commit: r356753 - in head/sys: net netinet netinet6

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 05:45:27 2020 New Revision: 356753 URL: https://svnweb.freebsd.org/changeset/base/356753 Log: Mechanically substitute assertion of in_epoch(net_epoch_preempt) to NET_EPOCH_ASSERT(). NFC Modified: head/sys/net/if.c head/sys/net/if_ipsec.c

svn commit: r356752 - head/sys/netinet

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:41:15 2020 New Revision: 356752 URL: https://svnweb.freebsd.org/changeset/base/356752 Log: Stop header pollution and don't include if_var.h via in_pcb.h. Modified: head/sys/netinet/in_pcb.h Modified: head/sys/netinet/in_pcb.h

svn commit: r356751 - head/sys/netinet

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:40:32 2020 New Revision: 356751 URL: https://svnweb.freebsd.org/changeset/base/356751 Log: Since this code dereferences struct ifnet, it must include if_var.h explicitly, not via header pollution. While here move TCPSTATES declaration right above the

svn commit: r356750 - head/sys/kern

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:39:11 2020 New Revision: 356750 URL: https://svnweb.freebsd.org/changeset/base/356750 Log: Since this code uses if_ref()/if_rele() it must include if_var.h explicitly, not via header pollution. Modified: head/sys/kern/uipc_ktls.c Modified:

svn commit: r356749 - head/sys/netgraph

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:35:57 2020 New Revision: 356749 URL: https://svnweb.freebsd.org/changeset/base/356749 Log: Netgraph queue processing thread must process all its items in the network epoch. Reported by: Michael Zhilin Modified: head/sys/netgraph/ng_base.c

svn commit: r356748 - in head/sys: kern net sys

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:34:21 2020 New Revision: 356748 URL: https://svnweb.freebsd.org/changeset/base/356748 Log: - Move global network epoch definition to epoch.h, as more different subsystems tend to need to know about it, and including if_var.h is huge header pollution

svn commit: r356747 - head/sys/netinet

2020-01-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 15 03:30:33 2020 New Revision: 356747 URL: https://svnweb.freebsd.org/changeset/base/356747 Log: The non-preemptible network epoch identified by net_epoch isn't used. This code definitely meant net_epoch_preempt. Modified: head/sys/netinet/tcp_ratelimit.c

svn commit: r356745 - head/sys/kern

2020-01-14 Thread Mateusz Guzik
Author: mjg Date: Wed Jan 15 01:34:05 2020 New Revision: 356745 URL: https://svnweb.freebsd.org/changeset/base/356745 Log: vfs: in vop_stdadd_writecount only vlazy vnodes on mounts using msync The only reason to vlazy there is to (overzealously) ensure all vnodes which need to be visited

svn commit: r356743 - head/sys/fs/nfsserver

2020-01-14 Thread Mateusz Guzik
Author: mjg Date: Wed Jan 15 01:31:57 2020 New Revision: 356743 URL: https://svnweb.freebsd.org/changeset/base/356743 Log: nfs: add missing CLTFLAG_MPSAFE annotations Modified: head/sys/fs/nfsserver/nfs_nfsdcache.c head/sys/fs/nfsserver/nfs_nfsdport.c Modified:

svn commit: r356744 - head/sys/fs/tmpfs

2020-01-14 Thread Mateusz Guzik
Author: mjg Date: Wed Jan 15 01:32:11 2020 New Revision: 356744 URL: https://svnweb.freebsd.org/changeset/base/356744 Log: tmpfs: add missing CLTFLAG_MPSAFE annotation Modified: head/sys/fs/tmpfs/tmpfs_subr.c Modified: head/sys/fs/tmpfs/tmpfs_subr.c

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

2020-01-14 Thread Mateusz Guzik
Author: mjg Date: Wed Jan 15 01:31:28 2020 New Revision: 356742 URL: https://svnweb.freebsd.org/changeset/base/356742 Log: fusefs: add missing CLTFLAG_MPSAFE annotation Modified: head/sys/fs/fuse/fuse_node.c Modified: head/sys/fs/fuse/fuse_node.c

svn commit: r356741 - in head/libexec/rtld-elf: . rtld-libc

2020-01-14 Thread Mateusz Guzik
Author: mjg Date: Wed Jan 15 01:30:32 2020 New Revision: 356741 URL: https://svnweb.freebsd.org/changeset/base/356741 Log: rtld: remove hand rolled memset and bzero They were introduced to take care of ifunc, but right now no architecture provides ifunc'ed variants. Since rtld uses

svn commit: r356740 - in head/usr.sbin/bsdinstall: . partedit scripts

2020-01-14 Thread Rebecca Cran
Author: bcran Date: Wed Jan 15 00:45:05 2020 New Revision: 356740 URL: https://svnweb.freebsd.org/changeset/base/356740 Log: bsdinstall: Use TMPDIR if set Submitted by: Ryan Moeller Reviewed by: bcran, Nick Wolff Differential Revision:https://reviews.freebsd.org/D22979/

svn commit: r356739 - head/sys/ufs/ffs

2020-01-14 Thread Kirk McKusick
Author: mckusick Date: Tue Jan 14 22:27:46 2020 New Revision: 356739 URL: https://svnweb.freebsd.org/changeset/base/356739 Log: When sync'ing a mount point, the mount point's vnodes were scanned twice. Once to update the changed inodes, and a second time to update changed quota information.

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

2020-01-14 Thread Ed Maste
Author: emaste Date: Tue Jan 14 18:06:09 2020 New Revision: 356738 URL: https://svnweb.freebsd.org/changeset/base/356738 Log: src.conf.5: regen after r356736, limiting ld.bfd to powerpc Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r356737 - head/sys/mips/mips

2020-01-14 Thread John Baldwin
Author: jhb Date: Tue Jan 14 18:00:04 2020 New Revision: 356737 URL: https://svnweb.freebsd.org/changeset/base/356737 Log: Preserve the inherited value of the status register in cpu_set_upcall(). Instead of re-deriving the value of SR using logic similar to exec_set_regs(), just inherit

svn commit: r356736 - in head: gnu/usr.bin/binutils tools/build/options

2020-01-14 Thread Ed Maste
Author: emaste Date: Tue Jan 14 17:56:54 2020 New Revision: 356736 URL: https://svnweb.freebsd.org/changeset/base/356736 Log: limit ld.bfd to powerpc All archs except powerpc either use lld or require external toolchain. powerpc still needs binutils ld to link 32-bit binaries.

svn commit: r356735 - in head: lib/csu/tests/dso lib/libc++ lib/libcxxrt lib/libgcc_eh lib/libpmc share/mk

2020-01-14 Thread Kyle Evans
Author: kevans Date: Tue Jan 14 17:50:13 2020 New Revision: 356735 URL: https://svnweb.freebsd.org/changeset/base/356735 Log: Revert r353140: Re-add ALLOW_MIPS_SHARED_TEXTREL, sprinkle it around arichardson has an actual fix for the same issue that this was working around; given that we

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

2020-01-14 Thread Ed Maste
Author: emaste Date: Tue Jan 14 17:38:34 2020 New Revision: 356734 URL: https://svnweb.freebsd.org/changeset/base/356734 Log: src.conf.5: regen after option description updates Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

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

2020-01-14 Thread Ed Maste
Author: emaste Date: Tue Jan 14 17:35:34 2020 New Revision: 356733 URL: https://svnweb.freebsd.org/changeset/base/356733 Log: Update WITH_/WITHOUT_CLANG_IS_CC descriptions Describe /usr/bin/cc etc. as links to the compiler, and don't conflate WITHOUT_CLANG_IS_CC with installing GCC.

Re: svn commit: r356725 - head/usr.bin/diff

2020-01-14 Thread Baptiste Daroussin
On Tue, Jan 14, 2020 at 08:44:29AM -0700, Ian Lepore wrote: > On Tue, 2020-01-14 at 08:22 +, Baptiste Daroussin wrote: > > Author: bapt > > Date: Tue Jan 14 08:22:28 2020 > > New Revision: 356725 > > URL: https://svnweb.freebsd.org/changeset/base/356725 > > > > Log: > > When system calls

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

2020-01-14 Thread Ed Maste
Author: emaste Date: Tue Jan 14 16:59:21 2020 New Revision: 356732 URL: https://svnweb.freebsd.org/changeset/base/356732 Log: Update WITH_AMD description reflecting upcoming removal In-tree amd(8) is deprecated; update WITH_AMD's description to make this more clear. Sponsored by:

Re: svn commit: r356725 - head/usr.bin/diff

2020-01-14 Thread Ian Lepore
On Tue, 2020-01-14 at 08:22 +, Baptiste Daroussin wrote: > Author: bapt > Date: Tue Jan 14 08:22:28 2020 > New Revision: 356725 > URL: https://svnweb.freebsd.org/changeset/base/356725 > > Log: > When system calls indicate an error they return -1, not some > arbitrary > value < 0. errno

Re: svn commit: r356695 - head/usr.bin/diff

2020-01-14 Thread Mark Johnston
On Tue, Jan 14, 2020 at 08:05:21AM -0600, Kyle Evans wrote: > On Tue, Jan 14, 2020 at 6:12 AM Li-Wen Hsu wrote: > > > > On Tue, Jan 14, 2020 at 2:29 AM Mark Johnston wrote: > > > > > > Author: markj > > > Date: Mon Jan 13 18:29:47 2020 > > > New Revision: 356695 > > > URL:

svn commit: r356731 - head/usr.bin/diff

2020-01-14 Thread Mark Johnston
Author: markj Date: Tue Jan 14 15:35:03 2020 New Revision: 356731 URL: https://svnweb.freebsd.org/changeset/base/356731 Log: Do not skip line-by-line comparison if -q and -I are specified. This fixes a regression from r356695. Submitted by: kevans Reported by: Jenkins via lwhsu

Re: svn commit: r356695 - head/usr.bin/diff

2020-01-14 Thread Kyle Evans
On Tue, Jan 14, 2020 at 6:12 AM Li-Wen Hsu wrote: > > On Tue, Jan 14, 2020 at 2:29 AM Mark Johnston wrote: > > > > Author: markj > > Date: Mon Jan 13 18:29:47 2020 > > New Revision: 356695 > > URL: https://svnweb.freebsd.org/changeset/base/356695 > > > > Log: > > Optimize diff -q. > > > >

svn commit: r356730 - head/sys/dev/hyperv/storvsc

2020-01-14 Thread Andriy Gapon
Author: avg Date: Tue Jan 14 13:20:16 2020 New Revision: 356730 URL: https://svnweb.freebsd.org/changeset/base/356730 Log: storvsc: port a Linux patch, properly set residual data length on errors This change is based on Linux commit 40630f462824ee. csio.resid should account for

Re: svn commit: r356695 - head/usr.bin/diff

2020-01-14 Thread Li-Wen Hsu
On Tue, Jan 14, 2020 at 2:29 AM Mark Johnston wrote: > > Author: markj > Date: Mon Jan 13 18:29:47 2020 > New Revision: 356695 > URL: https://svnweb.freebsd.org/changeset/base/356695 > > Log: > Optimize diff -q. > > Once we know whether the files differ, we don't need to do any further >

svn commit: r356729 - head/sys/compat/linux

2020-01-14 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jan 14 11:33:07 2020 New Revision: 356729 URL: https://svnweb.freebsd.org/changeset/base/356729 Log: Make linux(4) use kern_setsockopt(9) instead of going through sys_setsockopt. Just a cleanup; no functional changes. Reviewed by: kib MFC after:2 weeks

svn commit: r356728 - head/sys/compat/linux

2020-01-14 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jan 14 11:30:30 2020 New Revision: 356728 URL: https://svnweb.freebsd.org/changeset/base/356728 Log: Make linux(4) use kern_getsockopt(9) instead of going through sys_getsockopt(). It's a cleanup; no functional changes. Reviewed by: kib (earlier version) MFC

svn commit: r356727 - head/sys/compat/linux

2020-01-14 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jan 14 11:24:06 2020 New Revision: 356727 URL: https://svnweb.freebsd.org/changeset/base/356727 Log: Make linux getcpu(2) report the domain. Submitted by: markj Reviewed by: markj MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential

svn commit: r356725 - head/usr.bin/diff

2020-01-14 Thread Baptiste Daroussin
Author: bapt Date: Tue Jan 14 08:22:28 2020 New Revision: 356725 URL: https://svnweb.freebsd.org/changeset/base/356725 Log: When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Obtained from:OpenBSD MFC after:

svn commit: r356724 - head/usr.bin/diff

2020-01-14 Thread Baptiste Daroussin
Author: bapt Date: Tue Jan 14 08:18:04 2020 New Revision: 356724 URL: https://svnweb.freebsd.org/changeset/base/356724 Log: asprintf returns -1, not an arbitrary value < 0. Also upon error the (very sloppy specification) leaves an undefined value in *ret, so it is wrong to inspect it, the

svn commit: r356723 - head/usr.bin/diff

2020-01-14 Thread Baptiste Daroussin
Author: bapt Date: Tue Jan 14 08:16:15 2020 New Revision: 356723 URL: https://svnweb.freebsd.org/changeset/base/356723 Log: mkstemp returns -1 Obtained from:OpenBSD MFC after:3 days Modified: head/usr.bin/diff/diffreg.c Modified: head/usr.bin/diff/diffreg.c