svn commit: r357991 - head/sys/kern

2020-02-15 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 16 03:33:34 2020 New Revision: 357991 URL: https://svnweb.freebsd.org/changeset/base/357991 Log: vfs: fix vlrureclaim ->v_object access The routine was checking for ->v_type == VBAD. Since vgone drops the interlock early sets this type at the end of the process o

svn commit: r357990 - head/sys/kern

2020-02-15 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 16 03:16:28 2020 New Revision: 357990 URL: https://svnweb.freebsd.org/changeset/base/357990 Log: vfs: check early for VCHR in vput_final to short-circuit in the common case Otherwise the compiler inlines v_decr_devcount which keps getting jumped over in the commo

svn commit: r357989 - head/sys/sys

2020-02-15 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 16 03:14:55 2020 New Revision: 357989 URL: https://svnweb.freebsd.org/changeset/base/357989 Log: refcount: add missing release fence to refcount_release_if_gt The CPU succeeding in releasing the not last reference can still have pending stores to the object prote

Re: svn commit: r357967 - head/sbin/ping6

2020-02-15 Thread Enji Cooper (yaneurabeya)
> On Feb 15, 2020, at 07:39, Alexander V. Chernikov > wrote: > > Author: melifaro > Date: Sat Feb 15 15:39:53 2020 > New Revision: 357967 > URL: https://svnweb.freebsd.org/changeset/base/357967 > > Log: > Make ping6(1) return code consistent with the man page. > When every sendto() call or

svn commit: r357988 - head/sys/vm

2020-02-15 Thread Jeff Roberson
Author: jeff Date: Sun Feb 16 01:07:19 2020 New Revision: 357988 URL: https://svnweb.freebsd.org/changeset/base/357988 Log: Slightly restructure uma_zalloc* to generate better code from clang and reduce duplication among zalloc functions. Reviewed by: markj Discussed with: mjg

svn commit: r357987 - in head: share/man/man9 sys/kern sys/sys

2020-02-15 Thread Matt Macy
Author: mmacy Date: Sun Feb 16 00:12:53 2020 New Revision: 357987 URL: https://svnweb.freebsd.org/changeset/base/357987 Log: Add zfree to zero allocation before free Key and cookie management typically wants to avoid information leaks by explicitly zeroing before free. This routine simp

svn commit: r357986 - in head/sys: conf contrib/libsodium/src/libsodium/include/sodium

2020-02-15 Thread Matt Macy
Author: mmacy Date: Sun Feb 16 00:03:09 2020 New Revision: 357986 URL: https://svnweb.freebsd.org/changeset/base/357986 Log: Add chacha20poly1305 support to crypto build This is a dependency for in-kernel wireguard. Reviewed by: cem@ MFC after:1 week Sponsored by: Rubicon Comm

svn commit: r357985 - in head: include lib/libthr lib/libthr/thread share/man/man3

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:25:39 2020 New Revision: 357985 URL: https://svnweb.freebsd.org/changeset/base/357985 Log: Add pthread_peekjoin_np(3). The function allows to peek at the thread exit status and even see return value, without joining (and thus finally destroying) the target

svn commit: r357984 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:19:23 2020 New Revision: 357984 URL: https://svnweb.freebsd.org/changeset/base/357984 Log: sem_remove(): fix the loop that compacts sem array on semaphores removal. As written now, it copies random kernel memory from beyond the bounds of the array. Rep

svn commit: r357983 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:18:02 2020 New Revision: 357983 URL: https://svnweb.freebsd.org/changeset/base/357983 Log: sem_remove(): add some asserts. Assert that sema[idx] allocation from sem[] is sane. Also assert that sem_mtx is owned, it protects the SEM_ALLOC flag. Reviewed

svn commit: r357982 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:15:42 2020 New Revision: 357982 URL: https://svnweb.freebsd.org/changeset/base/357982 Log: Use designated initializers for seminfo. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation (kib) MFC after:1 week Differential revi

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

2020-02-15 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 15 21:48:48 2020 New Revision: 357981 URL: https://svnweb.freebsd.org/changeset/base/357981 Log: ufs: use faster lockgmr entry points in ffs_lock Modified: head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/ufs/ffs/ffs_vnops.c ==

svn commit: r357980 - head/share/misc

2020-02-15 Thread Kyle Evans
Author: kevans Date: Sat Feb 15 21:21:13 2020 New Revision: 357980 URL: https://svnweb.freebsd.org/changeset/base/357980 Log: committers-ports.dot: add myself as a ports committer Modified: head/share/misc/committers-ports.dot Modified: head/share/misc/committers-ports.dot ==

svn commit: r357979 - head/lib/libfetch

2020-02-15 Thread Kyle Evans
Author: kevans Date: Sat Feb 15 19:47:49 2020 New Revision: 357979 URL: https://svnweb.freebsd.org/changeset/base/357979 Log: fetch(3): don't leak sockshost on failure fetch_socks5_getenv will allocate memory for the host (or set it to NULL) in all cases through the function; the caller i

svn commit: r357978 - head/lib/libfetch

2020-02-15 Thread Kyle Evans
Author: kevans Date: Sat Feb 15 19:39:50 2020 New Revision: 357978 URL: https://svnweb.freebsd.org/changeset/base/357978 Log: fetch(3): fix regression in IPv6:port spec from r357977 In case the port was specified, we never actually populated *host. Do so now. Pointy hat: kevans Mo

svn commit: r357977 - head/lib/libfetch

2020-02-15 Thread Kyle Evans
Author: kevans Date: Sat Feb 15 19:31:40 2020 New Revision: 357977 URL: https://svnweb.freebsd.org/changeset/base/357977 Log: fetch(3): move bits of fetch_socks5_getenv around This commit separates out port parsing and validation from grabbing the host from the env var. The only related b

svn commit: r357976 - head/sys/dev/hptmv

2020-02-15 Thread Dimitry Andric
Author: dim Date: Sat Feb 15 19:15:24 2020 New Revision: 357976 URL: https://svnweb.freebsd.org/changeset/base/357976 Log: Merge r357970 from the clang1000-import branch: Fix the following -Werror warning from clang 10.0.0 in hptmv(4): sys/dev/hptmv/ioctl.c:240:4: error: misleading ind

svn commit: r357975 - head/usr.bin/random

2020-02-15 Thread Conrad Meyer
Author: cem Date: Sat Feb 15 19:13:37 2020 New Revision: 357975 URL: https://svnweb.freebsd.org/changeset/base/357975 Log: random(6): Re-add undocumented support for floating point denominators And document it in the manual page. PR: 244139 Submitted by: Keith White (earli

svn commit: r357974 - in head/sys/amd64/vmm: . amd intel io

2020-02-15 Thread Pawel Biernacki
Author: kaktus Date: Sat Feb 15 18:57:49 2020 New Revision: 357974 URL: https://svnweb.freebsd.org/changeset/base/357974 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (4 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or al

svn commit: r357973 - head/sys/compat/linuxkpi/common/src

2020-02-15 Thread Pawel Biernacki
Author: kaktus Date: Sat Feb 15 18:54:59 2020 New Revision: 357973 URL: https://svnweb.freebsd.org/changeset/base/357973 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (2 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or al

svn commit: r357972 - in head/sys/dev: sound/usb usb usb/controller usb/gadget usb/input usb/misc usb/net usb/serial usb/storage usb/template usb/video usb/wlan

2020-02-15 Thread Pawel Biernacki
Author: kaktus Date: Sat Feb 15 18:52:12 2020 New Revision: 357972 URL: https://svnweb.freebsd.org/changeset/base/357972 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (2 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or al

svn commit: r357971 - in head/sys: dev/iscsi fs/autofs kern

2020-02-15 Thread Pawel Biernacki
Author: kaktus Date: Sat Feb 15 18:48:38 2020 New Revision: 357971 URL: https://svnweb.freebsd.org/changeset/base/357971 Log: Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (1 of many) r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or al

svn commit: r357969 - head/sys/cam

2020-02-15 Thread Warner Losh
Author: imp Date: Sat Feb 15 18:14:23 2020 New Revision: 357969 URL: https://svnweb.freebsd.org/changeset/base/357969 Log: The KASSERT is too strict: revert r357897 It's valid for a periph to be removed with outstanding transactions on the device. In CAM, multiple periphs attach to a sing

svn commit: r357968 - head/lib/libfetch

2020-02-15 Thread Kyle Evans
Author: kevans Date: Sat Feb 15 18:03:16 2020 New Revision: 357968 URL: https://svnweb.freebsd.org/changeset/base/357968 Log: fetch(3): Add SOCKS5 support This change adds SOCKS5 support to the library fetch(3) and updates the man page. Details: Within the fetch_connect() function, f

svn commit: r357967 - head/sbin/ping6

2020-02-15 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Feb 15 15:39:53 2020 New Revision: 357967 URL: https://svnweb.freebsd.org/changeset/base/357967 Log: Make ping6(1) return code consistent with the man page. When every sendto() call originated by ping6(1) fails, current code always returns 2 ("transmission was su

svn commit: r357962 - in head/sys: fs/tmpfs kern

2020-02-15 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 15 13:00:39 2020 New Revision: 357962 URL: https://svnweb.freebsd.org/changeset/base/357962 Log: vfs: make write suspension mandatory At the time opt-in was introduced adding yourself as a writer was esrializing across the mount point. Nowadays it is fully per-cp