Re: svn commit: r347526 - head/sys/net

2019-05-13 Thread Mark Johnston
On Mon, May 13, 2019 at 06:09:59PM -0400, Li-Wen Hsu wrote: > On Mon, May 13, 2019 at 3:38 PM Mark Johnston wrote: > > > > On Mon, May 13, 2019 at 01:45:29PM +, Andrey V. Elsukov wrote: > > > Author: ae > > > Date: Mon May 13 13:45:28 2019 > > > New Revision: 347526 > > > URL: https://svnweb.f

svn commit: r347555 - in head: . sys/kern

2019-05-13 Thread Conrad Meyer
Author: cem Date: Mon May 13 23:37:44 2019 New Revision: 347555 URL: https://svnweb.freebsd.org/changeset/base/347555 Log: Revert r346292 (permit_nonrandom_stackcookies) We have a better, more comprehensive knob for this now: kern.random.initial_seeding.bypass_before_seeding=1. Reque

svn commit: r347553 - head/stand/common

2019-05-13 Thread Toomas Soome
Author: tsoome Date: Mon May 13 22:17:11 2019 New Revision: 347553 URL: https://svnweb.freebsd.org/changeset/base/347553 Log: loader: fix memory handling errors in module.c file_loadraw(): check for file_alloc() and strdup() results. we leak 'name'. mod_load() does leak 'filename'.

Re: svn commit: r347526 - head/sys/net

2019-05-13 Thread Li-Wen Hsu
On Mon, May 13, 2019 at 3:38 PM Mark Johnston wrote: > > On Mon, May 13, 2019 at 01:45:29PM +, Andrey V. Elsukov wrote: > > Author: ae > > Date: Mon May 13 13:45:28 2019 > > New Revision: 347526 > > URL: https://svnweb.freebsd.org/changeset/base/347526 > > > > Log: > > Rework locking in BPF

svn commit: r347549 - head/sys/net

2019-05-13 Thread Andrey V. Elsukov
Author: ae Date: Mon May 13 20:17:55 2019 New Revision: 347549 URL: https://svnweb.freebsd.org/changeset/base/347549 Log: Avoid possible recursion on BPF_LOCK() in bpfwrite(). Release BPF_LOCK() before invoking if_output() and if_input(). Also enter epoch section before releasing lock, th

Re: svn commit: r347526 - head/sys/net

2019-05-13 Thread Mark Johnston
On Mon, May 13, 2019 at 01:45:29PM +, Andrey V. Elsukov wrote: > Author: ae > Date: Mon May 13 13:45:28 2019 > New Revision: 347526 > URL: https://svnweb.freebsd.org/changeset/base/347526 > > Log: > Rework locking in BPF code to remove rwlock from fast path. > > On high packets rate the

svn commit: r347546 - head/sys/dev/random

2019-05-13 Thread Conrad Meyer
Author: cem Date: Mon May 13 19:35:35 2019 New Revision: 347546 URL: https://svnweb.freebsd.org/changeset/base/347546 Log: Fortuna: Fix false negatives in is_random_seeded() (1) We may have had sufficient entropy to consider Fortuna seeded, but the random_fortuna_seeded() function would p

svn commit: r347543 - in head: . sys/sys

2019-05-13 Thread Mark Johnston
: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20190513: + User-wired pages now have their own counter, + vm.stats.vm.v_user_wire_count. The vm.max_wired sysctl was renamed + to vm.max_us

svn commit: r347541 - head/sys/vm

2019-05-13 Thread Mark Johnston
Author: markj Date: Mon May 13 18:40:01 2019 New Revision: 347541 URL: https://svnweb.freebsd.org/changeset/base/347541 Log: Restore the pre-r347532 behaviour of ignoring wiring failures in mmap(). The error handling added in r347532 is not right when mapping vnodes and will be fixed sepa

Re: svn commit: r347532 - in head: contrib/netbsd-tests/lib/libc/sys lib/libc/sys lib/libc/tests/sys sys/amd64/vmm sys/sys sys/vm usr.bin/vmstat

2019-05-13 Thread Oliver Pinter
And it would be nice to bump __freebsd_version too. On Monday, May 13, 2019, Rodney W. Grimes wrote: > > > Author: markj > > > Date: Mon May 13 16:38:48 2019 > > > New Revision: 347532 > > > URL: https://svnweb.freebsd.org/changeset/base/347532 > > > > > > Log: > > > Provide separate accountin

svn commit: r347540 - in head/sys/modules: linprocfs linsysfs linux linux64 linux_common

2019-05-13 Thread Dmitry Chagin
Author: dchagin Date: Mon May 13 18:28:40 2019 New Revision: 347540 URL: https://svnweb.freebsd.org/changeset/base/347540 Log: Add warning to the Linuxulator makefiles that building it outside of a kernel does not make sence. PR: 222861 MFC after:2 weeks Differential Rev

svn commit: r347538 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux modules/linux modules/linux64 modules/linux_common

2019-05-13 Thread Dmitry Chagin
Author: dchagin Date: Mon May 13 18:24:29 2019 New Revision: 347538 URL: https://svnweb.freebsd.org/changeset/base/347538 Log: Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building modules outside of a kern

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

2019-05-13 Thread Dmitry Chagin
Author: dchagin Date: Mon May 13 18:14:20 2019 New Revision: 347537 URL: https://svnweb.freebsd.org/changeset/base/347537 Log: Linuxulator getpeername() returns EINVAL in case then namelen less then 0. MFC after:2 weeks Modified: head/sys/compat/linux/linux_socket.c Modified: head/s

svn commit: r347536 - head/lib/libcasper/services/cap_sysctl/tests

2019-05-13 Thread Mark Johnston
Author: markj Date: Mon May 13 17:53:03 2019 New Revision: 347536 URL: https://svnweb.freebsd.org/changeset/base/347536 Log: Extend the libcap_sysctl tests. - Add some coverage for cap_sysctl(3). - Add a test for the case where the caller wishes to find the sysctl output length withou

svn commit: r347535 - head/lib/libcasper/services/cap_sysctl/tests

2019-05-13 Thread Mark Johnston
Author: markj Date: Mon May 13 17:51:03 2019 New Revision: 347535 URL: https://svnweb.freebsd.org/changeset/base/347535 Log: Convert the libcap_sysctl test cases to ATF. Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/

svn commit: r347534 - in head: . lib/libcasper/services/cap_sysctl lib/libcasper/services/cap_sysctl/tests

2019-05-13 Thread Mark Johnston
; # done +# 20190513: libcap_sysctl interface change +OLD_FILES+=lib/casper/libcap_sysctl.1 # 20190509: tests/sys/opencrypto requires the net/py-dpkt package. OLD_FILES+=usr/tests/sys/opencrypto/dpkt.py OLD_FILES+=usr/tests/sys/opencrypto/dpkt.pyc Modified: head/lib/libcasper/services/cap_sysctl

svn commit: r347533 - in head/sys: compat/linux modules/linux_common

2019-05-13 Thread Dmitry Chagin
Author: dchagin Date: Mon May 13 17:48:16 2019 New Revision: 347533 URL: https://svnweb.freebsd.org/changeset/base/347533 Log: Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions alter the userspace sockaddr to convert the format between linux and BSD versions. That's the mini

Re: svn commit: r347532 - in head: contrib/netbsd-tests/lib/libc/sys lib/libc/sys lib/libc/tests/sys sys/amd64/vmm sys/sys sys/vm usr.bin/vmstat

2019-05-13 Thread Rodney W. Grimes
> > Author: markj > > Date: Mon May 13 16:38:48 2019 > > New Revision: 347532 > > URL: https://svnweb.freebsd.org/changeset/base/347532 > > > > Log: > > Provide separate accounting for user-wired pages. > > > > Historically we have not distinguished between kernel wirings and user > > wir

Re: svn commit: r347532 - in head: contrib/netbsd-tests/lib/libc/sys lib/libc/sys lib/libc/tests/sys sys/amd64/vmm sys/sys sys/vm usr.bin/vmstat

2019-05-13 Thread Rodney W. Grimes
> Author: markj > Date: Mon May 13 16:38:48 2019 > New Revision: 347532 > URL: https://svnweb.freebsd.org/changeset/base/347532 > > Log: > Provide separate accounting for user-wired pages. > > Historically we have not distinguished between kernel wirings and user > wirings for accounting

svn commit: r347532 - in head: contrib/netbsd-tests/lib/libc/sys lib/libc/sys lib/libc/tests/sys sys/amd64/vmm sys/sys sys/vm usr.bin/vmstat

2019-05-13 Thread Mark Johnston
Author: markj Date: Mon May 13 16:38:48 2019 New Revision: 347532 URL: https://svnweb.freebsd.org/changeset/base/347532 Log: Provide separate accounting for user-wired pages. Historically we have not distinguished between kernel wirings and user wirings for accounting purposes. User wiri

Re: svn commit: r347488 - head/usr.sbin/ntp/ntpd

2019-05-13 Thread Xin LI
On Sat, May 11, 2019 at 10:42 AM Cy Schubert wrote: > In message <201905111637.x4bgbawj032...@gndrsh.dnsmgr.net>, "Rodney W. > Grimes" > writes: > > > On Sat, 2019-05-11 at 14:22 +, Xin LI wrote: > > > > Author: delphij > > > > Date: Sat May 11 14:22:21 2019 > > > > New Revision: 347488 > > >

svn commit: r347527 - head/sys/net

2019-05-13 Thread Andrey V. Elsukov
Author: ae Date: Mon May 13 14:07:02 2019 New Revision: 347527 URL: https://svnweb.freebsd.org/changeset/base/347527 Log: Do not leak memory used for binary filter. Modified: head/sys/net/bpf.c Modified: head/sys/net/bpf.c =

svn commit: r347526 - head/sys/net

2019-05-13 Thread Andrey V. Elsukov
Author: ae Date: Mon May 13 13:45:28 2019 New Revision: 347526 URL: https://svnweb.freebsd.org/changeset/base/347526 Log: Rework locking in BPF code to remove rwlock from fast path. On high packets rate the contention on rwlock in bpf_*tap*() functions can lead to packets dropping. To avo

svn commit: r347522 - head/etc

2019-05-13 Thread Emmanuel Vadot
Author: manu Date: Mon May 13 12:38:33 2019 New Revision: 347522 URL: https://svnweb.freebsd.org/changeset/base/347522 Log: Revert r347356 and r347371 passwd related files need to be tagged as config file so pkg update will attempt merging them when we install a new package. We should u

svn commit: r347519 - head/sys/modules/ipsec

2019-05-13 Thread Andrey V. Elsukov
Author: ae Date: Mon May 13 08:34:13 2019 New Revision: 347519 URL: https://svnweb.freebsd.org/changeset/base/347519 Log: Revert r347402. After r347429 symlink is no longer needed. Modified: head/sys/modules/ipsec/Makefile Modified: head/sys/modules/ipsec/Makefile ===