CVS commit: src/sys

2019-12-06 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Dec  6 08:35:21 UTC 2019

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/compat/common: compat_sysctl_09_43.c
src/sys/kern: tty_subr.c

Log Message:
Fix a bunch of unimportant "Local variable hides global variable" warnings
from the LGTM bot.


To generate a diff of this commit:
cvs rdiff -u -r1.341 -r1.342 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_sysctl_09_43.c
cvs rdiff -u -r1.41 -r1.42 src/sys/kern/tty_subr.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/hppa/hppa

2019-12-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Dec  6 08:40:34 UTC 2019

Modified Files:
src/sys/arch/hppa/hppa: trap.c

Log Message:
Simplify userret function signature.  From ad@


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/hppa/hppa/trap.c

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



CVS commit: src/sys/dev/ic

2019-12-06 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Fri Dec  6 12:39:51 UTC 2019

Modified Files:
src/sys/dev/ic: ndisreg.h

Log Message:
Added NDIS ver.6.20 definition.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ic/ndisreg.h

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



CVS commit: src/sys/dev/ic

2019-12-06 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Fri Dec  6 12:41:17 UTC 2019

Modified Files:
src/sys/dev/ic: rndisreg.h

Log Message:
Added RNDIS RSS and TCP offload related definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/rndisreg.h

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



CVS commit: src/sys/dev/hyperv

2019-12-06 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Fri Dec  6 12:46:06 UTC 2019

Modified Files:
src/sys/dev/hyperv: hyperv_common.c vmbus.c

Log Message:
Clear the allocated memory in hyperv_dma_alloc().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/hyperv/hyperv_common.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/hyperv/vmbus.c

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



CVS commit: src/sbin/rndctl

2019-12-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Dec  6 14:43:18 UTC 2019

Modified Files:
src/sbin/rndctl: Makefile rndctl.8 rndctl.c
Added Files:
src/sbin/rndctl: namespace.h

Log Message:
Teach `rndctl -L' to update the seed file, not just delete it.

The seed file is updated by entering the old seed into the system and
then hashing the old seed together with data from /dev/urandom, and
writing it atomically with write-to-temporary/rename-to-permanent.

This way, interruption by crash or power loss does not obliterate
your persistent entropy (unless it causes file system corruption).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sbin/rndctl/Makefile
cvs rdiff -u -r0 -r1.1 src/sbin/rndctl/namespace.h
cvs rdiff -u -r1.22 -r1.23 src/sbin/rndctl/rndctl.8
cvs rdiff -u -r1.30 -r1.31 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

2019-12-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Dec  6 14:43:30 UTC 2019

Modified Files:
src/etc: security
src/etc/defaults: security.conf
src/share/man/man5: security.conf.5

Log Message:
Save the entropy seed daily in /etc/security.


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/etc/security
cvs rdiff -u -r1.26 -r1.27 src/etc/defaults/security.conf
cvs rdiff -u -r1.40 -r1.41 src/share/man/man5/security.conf.5

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



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:11:59 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target.c dm_target_error.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c

Log Message:
dm: Don't ignore dm_target_alloc() argument

dm_target_alloc() is supposed to be copying the name argument to its ->name.
taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target_zero.c

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



CVS commit: src/lib/libc/stdlib

2019-12-06 Thread Niclas Rosenvik
Module Name:src
Committed By:   nros
Date:   Fri Dec  6 16:19:32 UTC 2019

Modified Files:
src/lib/libc/stdlib: posix_memalign.3

Log Message:
Fix manpage due to updated aligned_alloc behavior

Since aligned_alloc does not demand that size is to be multiple of alignment
anymore, don't make that claim in the man page.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/stdlib/posix_memalign.3

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



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:33:47 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_ioctl.c dm_target_stripe.c

Log Message:
dm: Fix typos in comments/messages

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target_stripe.c

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



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:46:14 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c dm_target_linear.c dm_target_zero.c
netbsd-dm.h

Log Message:
dm: Remove trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_zero.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/netbsd-dm.h

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



CVS commit: src/sys/kern

2019-12-06 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Dec  6 16:54:47 UTC 2019

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

Log Message:
cast to proper type


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_msan.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

2019-12-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Dec  6 17:41:43 UTC 2019

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

Log Message:
Correct signals in siglist+sigmask passed in kinfo_lwp

Make the union of LWP and PROC pending signals correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/kern/kern_proc.c

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



CVS commit: src/share/man/man5

2019-12-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Dec  6 18:03:49 UTC 2019

Modified Files:
src/share/man/man5: core.5

Log Message:
Remove misleading comments from core(5)

netbsd_elfcore_procinfo is still in version 1.
cpi_siglwp is stored in the same netbsd_elfcore_procinfo version (1).

The size of struct is stored in cpi_cpisize and the struct can be
expanded without versioning the struct.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/share/man/man5/core.5

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



CVS commit: src/sys/kern

2019-12-06 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec  6 18:15:57 UTC 2019

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

Log Message:
softint_trigger (slow case): set RESCHED_IDLE too just to be consistent.
No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/kern/kern_softint.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

2019-12-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Dec  6 18:16:23 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: sys_machdep.c
src/sys/arch/aarch64/include: types.h

Log Message:
Remove __HAVE_CPU_LWP_SETPRIVATE from aarch64

aarch64 specific cpu_lwp_setprivate() is redundant with its caller
lwp_setprivate() and there are no MD bits.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/aarch64/sys_machdep.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/aarch64/include/types.h

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



CVS commit: src/sys/kern

2019-12-06 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec  6 18:33:19 UTC 2019

Modified Files:
src/sys/kern: sched_4bsd.c sched_m2.c

Log Message:
sched_tick(): don't try to optimise something that's called 10 times a
second, it's a fine way to introduce bugs (and I did).  Use the MI
interface for rescheduling which always does the correct thing.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/kern/sched_4bsd.c
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/sched_m2.c

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



CVS commit: src/tests/lib/libutil

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec  6 19:28:11 UTC 2019

Modified Files:
src/tests/lib/libutil: t_snprintb.c

Log Message:
Fix broken tests in big endian machines. Internally field values are
stored as uint64_t/uintmax_t so printing them with %d on big endian
ends up being 0.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libutil/t_snprintb.c

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



CVS commit: src/lib/libutil

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec  6 19:31:52 UTC 2019

Modified Files:
src/lib/libutil: snprintb.3

Log Message:
Correct the man page, and say that the printf(3) format characters need
to be uintmax_t.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libutil/snprintb.3

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



CVS commit: src/common/lib/libutil

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec  6 19:36:22 UTC 2019

Modified Files:
src/common/lib/libutil: snprintb.c

Log Message:
Formalize that the printf formats should be uintmax_t so we can
uniformly use 'j' in the user-provided formatting strings instead
of depending on _LP64 to use 'll' or 'l' (and the PRI macros). The
alternative is to parse the printf format manually to determine
which modifier to apply which would make this transparent to the
user (they could still always use '%u' or '%x'), but that's too
painful.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/common/lib/libutil/snprintb.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

2019-12-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Dec  6 19:36:22 UTC 2019

Modified Files:
src/usr.sbin/sysinst: disklabel.c

Log Message:
Sanitize disk type and packname a bit more - when using existing disklabel
partitions we might run into trouble later when filing this label (unescaped)
in disktab format otherwise.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/disklabel.c

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



CVS commit: src/sys/sys

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec  6 19:37:43 UTC 2019

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

Log Message:
Adjust snprintb(3) format from '%d' to '%ju' to reflect reality and so that
it works on big endian machines.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/sys/mman.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

2019-12-06 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec  6 21:07:08 UTC 2019

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

Log Message:
NetBSD 9.99.20 cpu_info/cpu_data changes for topology


To generate a diff of this commit:
cvs rdiff -u -r1.620 -r1.621 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

2019-12-06 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec  6 21:36:11 UTC 2019

Modified Files:
src/sys/kern: kern_exec.c kern_exit.c kern_idle.c kern_lwp.c kern_sig.c
kern_sleepq.c kern_softint.c kern_synch.c
src/sys/sys: sched.h

Log Message:
Make it possible to call mi_switch() and immediately switch to another CPU.
This seems to take about 3us on my Intel system.  Two changes required:

- Have the caller to mi_switch() be responsible for calling spc_lock().
- Avoid using l->l_cpu in mi_switch().

While here:

- Add a couple of calls to membar_enter()
- Have the idle LWP set itself to LSIDL, to match softint_thread().
- Remove unused return value from mi_switch().


To generate a diff of this commit:
cvs rdiff -u -r1.484 -r1.485 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.277 -r1.278 src/sys/kern/kern_exit.c
cvs rdiff -u -r1.27 -r1.28 src/sys/kern/kern_idle.c
cvs rdiff -u -r1.216 -r1.217 src/sys/kern/kern_lwp.c
cvs rdiff -u -r1.380 -r1.381 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.53 -r1.54 src/sys/kern/kern_sleepq.c
cvs rdiff -u -r1.54 -r1.55 src/sys/kern/kern_softint.c
cvs rdiff -u -r1.328 -r1.329 src/sys/kern/kern_synch.c
cvs rdiff -u -r1.79 -r1.80 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

2019-12-06 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Dec  6 21:45:14 UTC 2019

Modified Files:
src/lib/libc/sys: modctl.2
src/sbin/modstat: modstat.8

Log Message:
Note also that the load address (if provided) is also for the module's
text segment.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/sys/modctl.2
cvs rdiff -u -r1.24 -r1.25 src/sbin/modstat/modstat.8

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



CVS commit: src/sys/dev/pci

2019-12-06 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sat Dec  7 01:00:40 UTC 2019

Modified Files:
src/sys/dev/pci: machfb.c

Log Message:
clean up the video mode selection logic, switch modes only when actually
necessary
while there make some debug output optional


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/pci/machfb.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/i386/stand/lib

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  7 02:29:03 UTC 2019

Modified Files:
src/sys/arch/i386/stand/lib: exec.c

Log Message:
loadfile sets errno, return the correct error, not EIO.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/i386/stand/lib/exec.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/mopd/common

2019-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  7 04:55:01 UTC 2019

Modified Files:
src/usr.sbin/mopd/common: loop-linux2.c

Log Message:
Drop the advertising clause to match the other files.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/mopd/common/loop-linux2.c

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



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec  7 06:26:31 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c dm_table.c dm_target.c

Log Message:
dm: Simplify list eviction code

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target.c

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