CVS commit: src/sys/dev/hid

2020-08-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Aug 26 10:34:04 UTC 2020

Modified Files:
src/sys/dev/hid: hidkbdmap.c

Log Message:
for jp keymap map also scan code 49 to right bracket to handle ARCHISS model

PR kern/55608 by Shinichi Doyashiki


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/hid/hidkbdmap.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/include

2020-08-26 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Wed Aug 26 10:51:45 UTC 2020

Modified Files:
src/sys/arch/mips/include: mips_param.h proc.h

Log Message:
Define a UPAGES_MAX constant to size the a md_upte array in MIPS's
struct mdlwp.  This is exposed to userland, so we can't use something
based on PAGE_SIZE.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/mips/include/mips_param.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/mips/include/proc.h

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



CVS commit: src/bin/ps

2020-08-26 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Wed Aug 26 10:54:13 UTC 2020

Modified Files:
src/bin/ps: nlist.c

Log Message:
Don't rely on the USPACE kernel define as a fallback if the vm.uspace
sysctl fails.  We've got bigger problems if the sysctl fail anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/ps/nlist.c

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



CVS commit: src/usr.bin/systat

2020-08-26 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Wed Aug 26 10:56:01 UTC 2020

Modified Files:
src/usr.bin/systat: ps.c

Log Message:
Use the vm.uspace sysctl instead of using the USPACE kernel define.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/systat/ps.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/vax/vsa

2020-08-26 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Wed Aug 26 12:59:28 UTC 2020

Modified Files:
src/sys/arch/vax/vsa: vsaudio.c

Log Message:
Fix misuse of device_private().  sc_dev is device_t.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/vsa/vsaudio.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/nfsd

2020-08-26 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Wed Aug 26 13:32:57 UTC 2020

Modified Files:
src/usr.sbin/nfsd: nfsd.c

Log Message:
Remove superfluous empty line


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/usr.sbin/nfsd/nfsd.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/nfsd

2020-08-26 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Wed Aug 26 13:33:42 UTC 2020

Modified Files:
src/usr.sbin/nfsd: nfsd.c

Log Message:
Remove trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/usr.sbin/nfsd/nfsd.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/nfsd

2020-08-26 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Wed Aug 26 13:35:12 UTC 2020

Modified Files:
src/usr.sbin/nfsd: nfsd.c

Log Message:
Fix indentation


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/usr.sbin/nfsd/nfsd.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/wgconfig

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Aug 26 15:49:07 UTC 2020

Modified Files:
src/usr.sbin/wgconfig: Makefile

Log Message:
wgconfig does not need libcrypt.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/wgconfig/Makefile

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



CVS commit: src/sys

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Aug 26 15:49:56 UTC 2020

Modified Files:
src/sys/external/isc/libsodium/conf: files.libsodium
src/sys/rump/kern/lib/libcrypto: Makefile

Log Message:
Tidy up libsodium makefile and config fragments.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/isc/libsodium/conf/files.libsodium
cvs rdiff -u -r1.19 -r1.20 src/sys/rump/kern/lib/libcrypto/Makefile

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-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Aug 26 15:54:11 UTC 2020

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

Log Message:
Nix trailing whitespace and mixed space/tab indentation.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/arch/xen/xen/if_xennet_xenbus.c

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



CVS commit: src

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Aug 26 16:03:42 UTC 2020

Modified Files:
src/distrib/sets/lists/base: shl.mi
src/distrib/sets/lists/comp: mi shl.mi
src/distrib/sets/lists/debug: mi shl.mi
src/distrib/sets/lists/tests: mi
src/doc: CHANGES
src/etc/mtree: NetBSD.dist.tests
src/share/man/man4: wg.4
src/sys/arch/amd64/conf: ALL
src/sys/net: if_types.h if_wg.c
src/sys/rump/net: Makefile.rumpnetcomp
src/tests/net: Makefile
src/usr.sbin/wg-keygen: wg-keygen.8
src/usr.sbin/wg-userspace: wg-userspace.8 wg-userspace.sh
src/usr.sbin/wgconfig: wgconfig.8
Added Files:
src/sys/rump/net/lib/libwg: Makefile WG.ioconf wg_component.c wg_user.c
wg_user.h
src/tests/net/if_wg: Makefile common.sh t_basic.sh
t_interoperability.sh t_misc.sh t_tunnel.sh
Removed Files:
src/sys/rump/net/lib/libwireguard: Makefile WG.ioconf wg_component.c
wg_user.c wg_user.h
src/tests/net/wireguard: Makefile common.sh t_basic.sh
t_interoperability.sh t_misc.sh t_tunnel.sh

Log Message:
Clarify wg(4)'s relation to WireGuard, pending further discussion.

Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.


To generate a diff of this commit:
cvs rdiff -u -r1.896 -r1.897 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.2344 -r1.2345 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.337 -r1.338 src/distrib/sets/lists/comp/shl.mi
cvs rdiff -u -r1.329 -r1.330 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.258 -r1.259 src/distrib/sets/lists/debug/shl.mi
cvs rdiff -u -r1.906 -r1.907 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.2732 -r1.2733 src/doc/CHANGES
cvs rdiff -u -r1.175 -r1.176 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/wg.4
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.30 -r1.31 src/sys/net/if_types.h
cvs rdiff -u -r1.23 -r1.24 src/sys/net/if_wg.c
cvs rdiff -u -r1.21 -r1.22 src/sys/rump/net/Makefile.rumpnetcomp
cvs rdiff -u -r0 -r1.1 src/sys/rump/net/lib/libwg/Makefile \
src/sys/rump/net/lib/libwg/WG.ioconf \
src/sys/rump/net/lib/libwg/wg_component.c \
src/sys/rump/net/lib/libwg/wg_user.c src/sys/rump/net/lib/libwg/wg_user.h
cvs rdiff -u -r1.1 -r0 src/sys/rump/net/lib/libwireguard/Makefile \
src/sys/rump/net/lib/libwireguard/WG.ioconf \
src/sys/rump/net/lib/libwireguard/wg_component.c \
src/sys/rump/net/lib/libwireguard/wg_user.c \
src/sys/rump/net/lib/libwireguard/wg_user.h
cvs rdiff -u -r1.35 -r1.36 src/tests/net/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/net/if_wg/Makefile \
src/tests/net/if_wg/common.sh src/tests/net/if_wg/t_basic.sh \
src/tests/net/if_wg/t_interoperability.sh src/tests/net/if_wg/t_misc.sh \
src/tests/net/if_wg/t_tunnel.sh
cvs rdiff -u -r1.1 -r0 src/tests/net/wireguard/Makefile \
src/tests/net/wireguard/common.sh src/tests/net/wireguard/t_basic.sh \
src/tests/net/wireguard/t_interoperability.sh \
src/tests/net/wireguard/t_misc.sh src/tests/net/wireguard/t_tunnel.sh
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/wg-keygen/wg-keygen.8
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/wg-userspace/wg-userspace.8
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/wg-userspace/wg-userspace.sh
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/wgconfig/wgconfig.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/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:28:17 UTC 2020

Modified Files:
src/sys/dev/nvmm: nvmm.c

Log Message:
nvmm: misc improvements

 - use mach->ncpus to get the number of vcpus, now that we have it
 - don't forget to decrement mach->ncpus when a machine gets killed
 - add more __predict_false()


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/nvmm/nvmm.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/nvmm/x86

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:29:20 UTC 2020

Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86_svm.c

Log Message:
nvmm-x86-svm: don't forget to intercept INVD

INVD executed in the guest can be dangerous for the host, due to CPU
caches being flushed without write-back.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dev/nvmm/x86/nvmm_x86_svm.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/nvmm

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:29:49 UTC 2020

Modified Files:
src/sys/dev/nvmm: nvmm_ioctl.h

Log Message:
nvmm: slightly clarify


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/nvmm/nvmm_ioctl.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/nvmm/x86

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:30:50 UTC 2020

Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86_vmx.c

Log Message:
nvmm-x86-vmx: improve the handling of CR4

 - Filter out certain features we don't want the guest to enable. This is
   for general correctness, and future-proofness.
 - Flush the guest TLB when certain flags change.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/nvmm/x86/nvmm_x86_vmx.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/nvmm/x86

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:32:03 UTC 2020

Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c

Log Message:
nvmm-x86: improve the handling of RFLAGS.RF

 - When injecting certain exceptions, set RF. For us to have an up-to-date
   view of RFLAGS, we commit the state before the event.
 - When advancing RIP, clear RF.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/nvmm/x86/nvmm_x86_svm.c
cvs rdiff -u -r1.73 -r1.74 src/sys/dev/nvmm/x86/nvmm_x86_vmx.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/nvmm/x86

2020-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:33:03 UTC 2020

Modified Files:
src/sys/dev/nvmm/x86: nvmm_x86_svm.c

Log Message:
nvmm-x86-svm: improve the handling of MSR_EFER

Intercept reads of it as well, just to mask EFER_SVME, which the guest
doesn't need to see.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/dev/nvmm/x86/nvmm_x86_svm.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-08-26 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 26 16:36:32 UTC 2020

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

Log Message:
Add a check to prevent shift by -1. Not really important in this case,
but to appease KUBSAN.

Reported-by: syzbot+4026e8201b6b484b8...@syzkaller.appspotmail.com


To generate a diff of this commit:
cvs rdiff -u -r1.288 -r1.289 src/sys/kern/tty.c

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



CVS commit: [netbsd-9] src/sys/dev/nvmm/x86

2020-08-26 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Aug 26 17:55:49 UTC 2020

Modified Files:
src/sys/dev/nvmm/x86 [netbsd-9]: nvmm_x86.c nvmm_x86.h nvmm_x86_svm.c
nvmm_x86_vmx.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1058):

sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.70
sys/dev/nvmm/x86/nvmm_x86.h: revision 1.19
sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.69
sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.71
sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.69
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.11
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.12
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.13
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.14

Improve the CPUID emulation:
 - Hide SGX*, PKU, WAITPKG, and SKINIT, because they are not supported.
 - Hide HLE and RTM, part of TSX. Because TSX is just too buggy and we
   cannot guarantee that it remains enabled in the guest (if for example
   the host disables TSX while the guest is running). Nobody wants this
   crap anyway, so bye-bye.
 - Advertise FSREP_MOV, because no reason to hide it.

Hide OSPKE. NFC since the host never uses PKU, but still.

Improve the CPUID emulation on nvmm-intel:
 - Limit the highest extended leaf.
 - Limit 0x0007 to ECX=0, for future-proofness.

nvmm-x86-svm: improve the CPUID emulation

Limit the hypervisor range, and properly handle each basic leaf until 0xD.

nvmm-x86: advertise the SERIALIZE instruction, available on future CPUs

nvmm-x86: improve the CPUID emulation
 - x86-svm: explicitly handle 0x8007 and 0x8008. The latter
   contains extended features we must filter out. Apply the same in
   x86-vmx for symmetry.
 - x86-svm: explicitly handle extended leaves until 0x801F, and
   truncate to it.


To generate a diff of this commit:
cvs rdiff -u -r1.7.4.3 -r1.7.4.4 src/sys/dev/nvmm/x86/nvmm_x86.c
cvs rdiff -u -r1.15.4.1 -r1.15.4.2 src/sys/dev/nvmm/x86/nvmm_x86.h
cvs rdiff -u -r1.46.4.8 -r1.46.4.9 src/sys/dev/nvmm/x86/nvmm_x86_svm.c
cvs rdiff -u -r1.36.2.10 -r1.36.2.11 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c

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



CVS commit: [netbsd-9] src/sys/arch/sun3/sun3x

2020-08-26 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Aug 26 18:06:54 UTC 2020

Modified Files:
src/sys/arch/sun3/sun3x [netbsd-9]: pmap.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1060):

sys/arch/sun3/sun3x/pmap.c: revision 1.117

Make sure pmap_kenter_pa(9) handles uncached mappings properly.

Fixes "cgfour(4) is mis-probed as bwtwo(4)" problem on 3/80
that has been broken since NetBSD 1.6.

Now Xorg 1.20 based Xsun 8bpp color server is confirmed working
on the cgfour(4).

Should be pulled up to netbsd-9.

XXX: all MD PMAP_NC flags should be replaced with MI PMAP_NOCACHE flag.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.114.20.1 src/sys/arch/sun3/sun3x/pmap.c

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



CVS commit: src/tests/net/net

2020-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 26 22:52:58 UTC 2020

Modified Files:
src/tests/net/net: t_unix.c

Log Message:
Check that fstat returns the correct socket owner


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/tests/net/net/t_unix.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-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 26 22:54:31 UTC 2020

Modified Files:
src/sys/kern: uipc_socket.c uipc_socket2.c uipc_usrreq.c

Log Message:
add socket info for user and group for unix sockets in fstat.


To generate a diff of this commit:
cvs rdiff -u -r1.290 -r1.291 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.137 -r1.138 src/sys/kern/uipc_socket2.c
cvs rdiff -u -r1.198 -r1.199 src/sys/kern/uipc_usrreq.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Aug 26 22:55:46 UTC 2020

Modified Files:
src/usr.bin/make: arch.c dir.c lst.c lst.h main.c make.c meta.c parse.c
suff.c targ.c

Log Message:
make(1): add stricter variants for remaining Lst functions

In most cases the Lst functions are only called when the arguments are
indeed valid.  It's not guaranteed though, therefore each function call
needs to be analyzed and converted individually.

While here, remove a few statements that were only useful when the Lst
functions handled circular lists.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/usr.bin/make/arch.c
cvs rdiff -u -r1.110 -r1.111 src/usr.bin/make/dir.c
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/make/lst.c
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/make/lst.h
cvs rdiff -u -r1.313 -r1.314 src/usr.bin/make/main.c
cvs rdiff -u -r1.123 -r1.124 src/usr.bin/make/make.c
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/make/meta.c
cvs rdiff -u -r1.262 -r1.263 src/usr.bin/make/parse.c
cvs rdiff -u -r1.115 -r1.116 src/usr.bin/make/suff.c
cvs rdiff -u -r1.72 -r1.73 src/usr.bin/make/targ.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-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 26 22:56:55 UTC 2020

Modified Files:
src/sys/crypto/blake2: files.blake2s
src/sys/kern: init_main.c kern_descrip.c kern_proc.c
src/sys/sys: systm.h

Log Message:
Instead of returning 0 when sysctl kern.expose_address=0, return a random
hashed value of the data. This allows sockstat to work without exposing
kernel addresses or being setgid kmem.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/crypto/blake2/files.blake2s
cvs rdiff -u -r1.527 -r1.528 src/sys/kern/init_main.c
cvs rdiff -u -r1.246 -r1.247 src/sys/kern/kern_descrip.c
cvs rdiff -u -r1.255 -r1.256 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.295 -r1.296 src/sys/sys/systm.h

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



CVS commit: src/usr.bin/sockstat

2020-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 26 22:57:56 UTC 2020

Modified Files:
src/usr.bin/sockstat: Makefile sockstat.c

Log Message:
undo previous, now sockstat works without privs


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/sockstat/Makefile
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/sockstat/sockstat.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Aug 26 23:00:47 UTC 2020

Modified Files:
src/usr.bin/make: Makefile hash.c lst.h make.h
Removed Files:
src/usr.bin/make: sprite.h

Log Message:
make(1): remove header sprite.h

Make is independent of the Sprite operating system.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/usr.bin/make/Makefile
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/make/hash.c
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/make/lst.h
cvs rdiff -u -r1.126 -r1.127 src/usr.bin/make/make.h
cvs rdiff -u -r1.14 -r0 src/usr.bin/make/sprite.h

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



CVS commit: src/usr.bin/fstat

2020-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 26 23:08:29 UTC 2020

Modified Files:
src/usr.bin/fstat: fstat.c

Log Message:
Provide a helpful error message if we don't have privs to read kernel
addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/usr.bin/fstat/fstat.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Aug 26 23:08:26 UTC 2020

Modified Files:
src/usr.bin/make: suff.c

Log Message:
make(1): merge duplicate code for creating a new suffix


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/usr.bin/make/suff.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/pci/ixgbe

2020-08-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 27 00:07:56 UTC 2020

Modified Files:
src/sys/dev/pci/ixgbe: ixgbe.c ixgbe.h

Log Message:
 ADD SFP+ MOD_ABS inversion quirk.

 On X550 EM, GPIO(SDP) and SFP+'s MOD_ABS is directly connected. It has
no inverter. GIGABYTE MA10-ST0 has a inverter, so add new quirk for it.


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.69 -r1.70 src/sys/dev/pci/ixgbe/ixgbe.h

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



CVS commit: src/usr.bin/column

2020-08-26 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Thu Aug 27 01:52:04 UTC 2020

Modified Files:
src/usr.bin/column: column.c

Log Message:
Whitespace nit.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/column/column.c

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



CVS commit: src/sys/rump/net/lib/libwg

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:50:44 UTC 2020

Modified Files:
src/sys/rump/net/lib/libwg: wg_user.c

Log Message:
Paranoia: use strlcpy rather than strcpy here and detect truncation.

Not an issue for the one caller in tree, but let's not leave rakes to
step on.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/net/lib/libwg/wg_user.c

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



CVS commit: src/sys/rump/net/lib/libwg

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:51:15 UTC 2020

Modified Files:
src/sys/rump/net/lib/libwg: wg_user.c

Log Message:
Fix order of cleanup actions in rumpuser_wg_create error branch.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/net/lib/libwg/wg_user.c

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



CVS commit: src/tests/net/if_wg

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:51:50 UTC 2020

Modified Files:
src/tests/net/if_wg: t_misc.sh

Log Message:
Use wgconfig as intended to show diagnostics, not a usage message.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/net/if_wg/t_misc.sh

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



CVS commit: src

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:52:34 UTC 2020

Modified Files:
src/sys/net: if_wg.c
src/tests/net/if_wg: t_misc.sh

Log Message:
wg: Check mbuf chain length before m_copydata.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/net/if_wg.c
cvs rdiff -u -r1.2 -r1.3 src/tests/net/if_wg/t_misc.sh

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



CVS commit: src/sys/net

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:53:47 UTC 2020

Modified Files:
src/sys/net: if_wg.c

Log Message:
wg: Use m_pullup to make message header contiguous before processing.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/net/if_wg.c

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



CVS commit: src/sys/net

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:54:31 UTC 2020

Modified Files:
src/sys/net: if_wg.c

Log Message:
wg: KASSERT m_len before mtod.

XXX We should really make mtod do this automagically, and use
something else for mtod(m, void *).


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/net/if_wg.c

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



CVS commit: src/sys/net

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 02:55:05 UTC 2020

Modified Files:
src/sys/net: if_wg.c

Log Message:
wg: Drop invalid message types on the floor faster.

Don't even let them reach the thread -- drop them in softint.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/net/if_wg.c

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



CVS commit: src/sys/net

2020-08-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 27 03:05:34 UTC 2020

Modified Files:
src/sys/net: if_wg.c

Log Message:
wg: Make sure all paths into wg_handle_msg_data guarantee enough m_len.

Earlier commit moved the m_pullup into wg_validate_msg_header, but
wg_overudp_cb doesn't go through that.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/net/if_wg.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/pci/ixgbe

2020-08-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 27 03:57:52 UTC 2020

Modified Files:
src/sys/dev/pci/ixgbe: ixgbe.c ixgbe_common.c

Log Message:
Minor change.

 - Print "X550EM X" instead of "X550EM" for Xeon D devices.
 - Fix typo in comment. Same as FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/ixgbe/ixgbe_common.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/pci/ixgbe

2020-08-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 27 04:49:52 UTC 2020

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

Log Message:
 Fix compile error.


To generate a diff of this commit:
cvs rdiff -u -r1.246 -r1.247 src/sys/dev/pci/ixgbe/ixgbe.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/pci/ixgbe

2020-08-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 27 04:54:43 UTC 2020

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

Log Message:
Limit MA10-ST0's quirk only for on-chip devices.


To generate a diff of this commit:
cvs rdiff -u -r1.247 -r1.248 src/sys/dev/pci/ixgbe/ixgbe.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Aug 27 06:13:53 UTC 2020

Modified Files:
src/usr.bin/make: arch.c nonints.h parse.c

Log Message:
make(1): convert Arch_ParseArchive from ReturnStatus to Boolean

There are only few functions left that use the ReturnStatus.  These will
be converted as well, to get rid of the additional typedef.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/usr.bin/make/arch.c
cvs rdiff -u -r1.98 -r1.99 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.263 -r1.264 src/usr.bin/make/parse.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Aug 27 06:18:23 UTC 2020

Modified Files:
src/usr.bin/make: job.h

Log Message:
make(1): remove unused declarations from job.h


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/usr.bin/make/job.h

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Aug 27 06:28:44 UTC 2020

Modified Files:
src/usr.bin/make: dir.c lst.c lst.h

Log Message:
make(1): migrate remaining code from Lst_Open to Lst_OpenS


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/usr.bin/make/dir.c
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/make/lst.c
cvs rdiff -u -r1.45 -r1.46 src/usr.bin/make/lst.h

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Aug 27 06:31:46 UTC 2020

Modified Files:
src/usr.bin/make: job.c make.c

Log Message:
make(1): migrate Lst_ForEachFrom to Lst_ForEachFromS


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 src/usr.bin/make/job.c
cvs rdiff -u -r1.124 -r1.125 src/usr.bin/make/make.c

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



CVS commit: src/usr.bin/make

2020-08-26 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Aug 27 06:53:57 UTC 2020

Modified Files:
src/usr.bin/make: compat.c dir.c job.c lst.c lst.h main.c make.c meta.c
parse.c suff.c targ.c

Log Message:
make(1): migrate Lst_ForEach to Lst_ForEachS

Most lists are always valid.  Only the "targets" variable may be null in
some cases, probably.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/usr.bin/make/compat.c
cvs rdiff -u -r1.112 -r1.113 src/usr.bin/make/dir.c
cvs rdiff -u -r1.216 -r1.217 src/usr.bin/make/job.c
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/make/lst.c
cvs rdiff -u -r1.46 -r1.47 src/usr.bin/make/lst.h
cvs rdiff -u -r1.314 -r1.315 src/usr.bin/make/main.c
cvs rdiff -u -r1.125 -r1.126 src/usr.bin/make/make.c
cvs rdiff -u -r1.100 -r1.101 src/usr.bin/make/meta.c
cvs rdiff -u -r1.264 -r1.265 src/usr.bin/make/parse.c
cvs rdiff -u -r1.117 -r1.118 src/usr.bin/make/suff.c
cvs rdiff -u -r1.73 -r1.74 src/usr.bin/make/targ.c

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