CVS commit: src/sbin/rndctl

2020-05-12 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Tue May 12 09:48:44 UTC 2020

Modified Files:
src/sbin/rndctl: rndctl.c

Log Message:
Whitespace alignment nits.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/rndctl/rndctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2020-05-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue May 12 09:54:02 UTC 2020

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
move xen_intr_disestablish() call in xbd_xenbus_suspend() so it's executed
without holding the xbd mutex, to avoid LOCKDEBUG assertion on suspend

while here only disestablish the intr if it was established

part of PR port-xen/55207


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/arch/xen/xen/xbd_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-05-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue May 12 10:02:56 UTC 2020

Modified Files:
src/sys/kern: kern_pmf.c

Log Message:
need to take IFNET_LOCK() around if_stop (on suspend) and if_init (on resume)
calls, those need to read and/or manipulate if_flags and hence need
the lock for IFEF_MPSAFE drivers; the drivers can't do IFNET_LOCK() themselves,
because the ioctl path call these hooks with the lock held

fixes KASSERT() in xennet(4) while investigating PR port-xen/55207


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/kern/kern_pmf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/mips/cavium/dev

2020-05-12 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Tue May 12 10:12:08 UTC 2020

Modified Files:
src/sys/arch/mips/cavium/dev: octeon_rnmreg.h

Log Message:
Add a few more bits.
XXX convert to __BITS.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mips/cavium/dev/octeon_rnmreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man7

2020-05-12 Thread Leonardo Taccari
Module Name:src
Committed By:   leot
Date:   Tue May 12 10:20:16 UTC 2020

Modified Files:
src/share/man/man7: hier.7

Log Message:
Remove a reference to /etc/netstart

It was removed in rc.d era and no longer honored (except by newbtconf(8)).

Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/share/man/man7/hier.7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/mips/cavium/dev

2020-05-12 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Tue May 12 10:37:10 UTC 2020

Modified Files:
src/sys/arch/mips/cavium/dev: octeon_rnm.c

Log Message:
If bus_space_map fails, just don't attach the driver instead of panicing.
Check RNG built in self test, don't attach if that fails too.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/cavium/dev/octeon_rnm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-05-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 12 11:21:10 UTC 2020

Modified Files:
src/sys/kern: kern_fork.c
src/sys/sys: sched.h

Log Message:
Remove the stub support of CLONE_PID in clone(2)

CLONE_PID causes the child clonee to share the same process id as cloner.

It was implemented for debugging purposes in the Linux kernel 2.0,
restricted to root only in 2.3.21 and removed from Linux 2.5.16.

The CLONE_PID bit was recycled for CLONE_PIDFD in Linux 5.2.


To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/sys/kern/kern_fork.c
cvs rdiff -u -r1.88 -r1.89 src/sys/sys/sched.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/sys

2020-05-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 12 11:39:09 UTC 2020

Modified Files:
src/lib/libc/sys: clone.2

Log Message:
Remove mentions of CLONE_PID and CLONE_STOPPED

CLONE_PID was removed in Linux 2.5.15 and recycled for
CLONE_PIDFD since Linux 5.2.

CLONE_STOPPED was removed in Linux 2.6.38 and recycled
for CLONE_NEWCGROUP since Linux 4.6.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/sys/clone.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/mips/cavium/dev

2020-05-12 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Tue May 12 14:04:50 UTC 2020

Modified Files:
src/sys/arch/mips/cavium/dev: octeon_rnm.c

Log Message:
Oceton RNG/RNM driver modernisation to fit new entropy world order by
riastradh@, with some tweaks to get working in RNG mode.

XXX TODO: work out how to get raw entropy mode working.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/cavium/dev/octeon_rnm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/dist/ipsec-tools/src/setkey

2020-05-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 12 14:29:06 UTC 2020

Modified Files:
src/crypto/dist/ipsec-tools/src/setkey: extern.h setkey.c token.l

Log Message:
Keep track of the filename to print in error messages.
Change quoting of error string from [] to `'.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/crypto/dist/ipsec-tools/src/setkey/extern.h
cvs rdiff -u -r1.20 -r1.21 src/crypto/dist/ipsec-tools/src/setkey/setkey.c
cvs rdiff -u -r1.24 -r1.25 src/crypto/dist/ipsec-tools/src/setkey/token.l

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2020-05-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May 12 16:18:04 UTC 2020

Modified Files:
src/usr.sbin/sysinst: defs.h install.c util.c

Log Message:
At the end of a new installation save entropy.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/sysinst/install.c
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/sysinst/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/dist/ipsec-tools/src/setkey

2020-05-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 12 16:17:58 UTC 2020

Modified Files:
src/crypto/dist/ipsec-tools/src/setkey: extern.h setkey.c token.l

Log Message:
- in script mode always output errors to stderr prefixed by the program name.
- in command mode always output errors to stdout not prefixed " " "
- perror(3) -> warn(3)


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/crypto/dist/ipsec-tools/src/setkey/extern.h
cvs rdiff -u -r1.21 -r1.22 src/crypto/dist/ipsec-tools/src/setkey/setkey.c
cvs rdiff -u -r1.25 -r1.26 src/crypto/dist/ipsec-tools/src/setkey/token.l

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2020-05-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May 12 17:04:00 UTC 2020

Modified Files:
src/usr.sbin/sysinst: defs.h install.c util.c

Log Message:
Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/install.c
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/sysinst/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2020-05-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May 12 17:26:43 UTC 2020

Modified Files:
src/usr.sbin/sysinst: defs.h disks.c main.c

Log Message:
PR 55202: disable swapping if we started it due to low ram


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.66 -r1.67 src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/sysinst/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-05-12 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May 12 20:50:17 UTC 2020

Modified Files:
src/sys/kern: kern_entropy.c

Log Message:
Don't invoke callbacks of rndsources with collection disabled.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/kern_entropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-05-12 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Tue May 12 21:24:30 UTC 2020

Modified Files:
src/sys/kern: kern_mutex.c

Log Message:
PR kern/55251: use of ZFS may trigger kernel memory corruption

mutex_vector_enter(): reload mtx_owner with preemption disabled before
calling mutex_oncpu(), otherwise lwp_dtor() can intervene.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/kern/kern_mutex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-05-12 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Tue May 12 21:56:17 UTC 2020

Modified Files:
src/sys/kern: kern_mutex.c

Log Message:
PR kern/55251 (use of ZFS may trigger kernel memory corruption (KASAN error))

Previous wasn't quite right.  Redo it differently - disable preemption
earlier instead.


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/kern/kern_mutex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-05-12 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Tue May 12 23:17:42 UTC 2020

Modified Files:
src/sys/fs/tmpfs: tmpfs_subr.c
src/sys/kern: vfs_cache.c
src/sys/sys: namei.src
src/sys/ufs/ffs: ffs_vfsops.c
src/sys/ufs/ufs: ufs_vnops.c

Log Message:
cache_enter_id(): give it a boolean parameter to indicate whether the cached
identity is valid.


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/fs/tmpfs/tmpfs_subr.c
cvs rdiff -u -r1.141 -r1.142 src/sys/kern/vfs_cache.c
cvs rdiff -u -r1.53 -r1.54 src/sys/sys/namei.src
cvs rdiff -u -r1.367 -r1.368 src/sys/ufs/ffs/ffs_vfsops.c
cvs rdiff -u -r1.252 -r1.253 src/sys/ufs/ufs/ufs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-05-12 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Tue May 12 23:18:03 UTC 2020

Modified Files:
src/sys/rump/include/rump: rump_namei.h
src/sys/sys: namei.h

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/rump/include/rump/rump_namei.h
cvs rdiff -u -r1.108 -r1.109 src/sys/sys/namei.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2020-05-12 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Tue May 12 23:18:52 UTC 2020

Modified Files:
src/sys/sys: param.h

Log Message:
NetBSD 9.99.61 - vfa_cache interface changed


To generate a diff of this commit:
cvs rdiff -u -r1.663 -r1.664 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64/aarch64

2020-05-12 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed May 13 05:37:16 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: db_machdep.c

Log Message:
for "mach cpuinfo", print ci_biglock_count too.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/aarch64/aarch64/db_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2020-05-12 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed May 13 05:52:54 UTC 2020

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
fix the handling in putpage of the page containing EOF.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64

2020-05-12 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed May 13 06:08:51 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: db_trace.c fault.c
src/sys/arch/aarch64/include: armreg.h cpufunc.h pmap.h

Log Message:
- move aarch64 addressspace macros from pmap.h to cpufunc.h
- rename ptr_strip_pac() to aarch64_strip_pac()


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/aarch64/aarch64/db_trace.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/aarch64/aarch64/fault.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/aarch64/include/armreg.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/aarch64/include/cpufunc.h
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/aarch64/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2020-05-12 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Wed May 13 06:09:25 UTC 2020

Modified Files:
src/distrib/sets/lists/comp: ad.aarch64

Log Message:
fix evbarm64 build release with LLVM


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/distrib/sets/lists/comp/ad.aarch64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.