CVS commit: src/tests/net

2020-02-20 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Feb 20 08:02:26 UTC 2020

Modified Files:
src/tests/net: net_common.sh

Log Message:
tests: abort if MAC address duplication found


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/tests/net/net_common.sh

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/libshmif

2020-02-20 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Feb 20 08:06:15 UTC 2020

Modified Files:
src/sys/rump/net/lib/libshmif: if_shmem.c

Log Message:
shmif: use cprng_strong32 to generate random bytes for a MAC address

cprng_fast32 sometimes returns indentical bytes, which look
"20:0e:11:33" in a MAC address, on different rump_server instances.
That leads MAC address duplications resulting in a test failure.

Fix it by using cprng_strong32 instead of cprng_fast32.  However
we should rather fix cprng_fast32 (or rump itself) somehow.

The fix mitigates PR kern/54897 but test failures due to other
causes still remain.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/rump/net/lib/libshmif/if_shmem.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

2020-02-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Feb 20 08:27:40 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: genassym.cf
src/sys/arch/alpha/alpha: genassym.cf
src/sys/arch/amiga/amiga: genassym.cf
src/sys/arch/atari/atari: genassym.cf
src/sys/arch/cesfic/cesfic: genassym.cf
src/sys/arch/hp300/hp300: genassym.cf
src/sys/arch/hppa/hppa: genassym.cf
src/sys/arch/luna68k/luna68k: genassym.cf
src/sys/arch/mac68k/mac68k: genassym.cf
src/sys/arch/mips/mips: genassym.cf
src/sys/arch/mvme68k/mvme68k: genassym.cf
src/sys/arch/news68k/news68k: genassym.cf
src/sys/arch/next68k/next68k: genassym.cf
src/sys/arch/sparc/sparc: genassym.cf
src/sys/arch/sun2/sun2: genassym.cf
src/sys/arch/sun3/sun3: genassym.cf
src/sys/arch/sun3/sun3x: genassym.cf
src/sys/arch/vax/vax: genassym.cf
src/sys/arch/x68k/x68k: genassym.cf

Log Message:
G/C


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/aarch64/aarch64/genassym.cf
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/alpha/alpha/genassym.cf
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/amiga/amiga/genassym.cf
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/atari/atari/genassym.cf
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/cesfic/cesfic/genassym.cf
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/hp300/hp300/genassym.cf
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hppa/hppa/genassym.cf
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/luna68k/luna68k/genassym.cf
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/mac68k/mac68k/genassym.cf
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/mips/mips/genassym.cf
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/mvme68k/mvme68k/genassym.cf
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/news68k/news68k/genassym.cf
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/next68k/next68k/genassym.cf
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sparc/sparc/genassym.cf
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sun2/sun2/genassym.cf
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sun3/sun3/genassym.cf
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sun3/sun3x/genassym.cf
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/vax/vax/genassym.cf
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/x68k/x68k/genassym.cf

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



CVS commit: src/sys/arch/evbarm/conf

2020-02-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Feb 20 08:31:18 UTC 2020

Modified Files:
src/sys/arch/evbarm/conf: files.rpi

Log Message:
Pull in arm_generic_dma.c to RPI kernel for arm_generic_dma_tag, which is
required by fdt_dma_machdep.c.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbarm/conf/files.rpi

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



CVS commit: src/sys/external/bsd/drm2/include/drm

2020-02-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 20 09:07:39 UTC 2020

Modified Files:
src/sys/external/bsd/drm2/include/drm: bus_dma_hacks.h

Log Message:
in bus_dmamap_load_pglist() try a 32-element array of
bus_dma_segment_t's before attempting to allocate.

this hopefully avoids hangs i've had in X since updating
from netbsd-8 to netbsd-9 that i've tracked down to this
function failing with ENOMEM.

XXX: maybe can avoid the alloc entirely by batching these
calls in 32 segments each.

XXX pullup-9


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 \
src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.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-02-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Feb 20 12:15:33 UTC 2020

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

Log Message:
When emulating obsoleted arm32 instructions, use ufetch(9) rather than
dereference tf_pc directly to retrieve an instruction.

Even if tf_pc is valid when processor decodes the instruction, someone
can unmap its page before tf_pc is read in the exception handler.

Now, SIGSEGV is delivered correctly to the process in this case, rather
than kernel panic.

Pointed out by maxv.
Discussed with ryo and skrll.


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

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



CVS commit: [netbsd-8] src/doc

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:32:21 UTC 2020

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1506


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.98 -r1.1.2.99 src/doc/CHANGES-8.2

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



CVS commit: [netbsd-8] src/sys/arch/hpcmips/hpcmips

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:31:46 UTC 2020

Modified Files:
src/sys/arch/hpcmips/hpcmips [netbsd-8]: hpcapm_machdep.c

Log Message:
Pull up following revision(s) (requested by sevan in ticket #1506):

sys/arch/hpcmips/hpcmips/hpcapm_machdep.c: revision 1.6

spelling


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.48.1 src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.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/arm/ti

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:36:38 UTC 2020

Modified Files:
src/sys/arch/arm/ti [netbsd-9]: if_cpsw.c

Log Message:
Pull up following revision(s) (requested by skrll in ticket #711):

sys/arch/arm/ti/if_cpsw.c: revision 1.9

Fix KERNHIST build (and simplify)


To generate a diff of this commit:
cvs rdiff -u -r1.6.2.2 -r1.6.2.3 src/sys/arch/arm/ti/if_cpsw.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/hpcmips/hpcmips

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:38:29 UTC 2020

Modified Files:
src/sys/arch/hpcmips/hpcmips [netbsd-9]: hpcapm_machdep.c

Log Message:
Pull up following revision(s) (requested by sevan in ticket #712):

sys/arch/hpcmips/hpcmips/hpcapm_machdep.c: revision 1.6

spelling


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.60.1 src/sys/arch/hpcmips/hpcmips/hpcapm_machdep.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/lib/libdm

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:42:30 UTC 2020

Modified Files:
src/lib/libdm [netbsd-9]: libdm_ioctl.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #713):

lib/libdm/libdm_ioctl.c: revision 1.4

Let's not write temporary files to fixed paths in /tmp, shall we?
XXX pullup


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.2.1 src/lib/libdm/libdm_ioctl.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/crypto/external/bsd/openssl/dist/crypto/rand

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:48:19 UTC 2020

Modified Files:
src/crypto/external/bsd/openssl/dist/crypto/rand [netbsd-9]:
rand_unix.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #714):

crypto/external/bsd/openssl/dist/crypto/rand/rand_unix.c: revision 1.14

Open /dev/urandom with O_CLOEXEC.

Let's avoid bleeding file descriptors into our clients' children,
shall we?

XXX pullup


To generate a diff of this commit:
cvs rdiff -u -r1.12.2.1 -r1.12.2.2 \
src/crypto/external/bsd/openssl/dist/crypto/rand/rand_unix.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/external/cddl/osnet/dist/cmd/zpool

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:49:47 UTC 2020

Modified Files:
src/external/cddl/osnet/dist/cmd/zpool [netbsd-9]: zpool_vdev.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #715):

external/cddl/osnet/dist/cmd/zpool/zpool_vdev.c: revision 1.5

zpool: The NetBSD specific ioctl needs to include sys/ioctl.h


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.4.1 \
src/external/cddl/osnet/dist/cmd/zpool/zpool_vdev.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/usb

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:53:09 UTC 2020

Modified Files:
src/sys/dev/usb [netbsd-9]: usbdi.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #716):

sys/dev/usb/usbdi.c: revision 1.194

When aborting a pipe, set pipe->up_running = 0.

This prevents any concurrent usb_transfer_complete from restarting
the pipe with usbd_start_next.


To generate a diff of this commit:
cvs rdiff -u -r1.182.4.1 -r1.182.4.2 src/sys/dev/usb/usbdi.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/doc

2020-02-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 20 14:54:22 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.1

Log Message:
Tickets #711 - #716


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/doc/CHANGES-9.1

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



CVS commit: src/doc

2020-02-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Feb 20 15:04:53 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
Fix two entries.


To generate a diff of this commit:
cvs rdiff -u -r1.2650 -r1.2651 src/doc/CHANGES

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



CVS commit: src/sys/miscfs/deadfs

2020-02-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Feb 20 15:48:05 UTC 2020

Modified Files:
src/sys/miscfs/deadfs: dead_vnops.c

Log Message:
Use vn_bwrite, not genfs_nullop, for VOP_BWRITE.

VOP_BWRITE is responsible for calling biodone; can't just leave it
hanging.

XXX pullup


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/miscfs/deadfs/dead_vnops.c

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



CVS commit: src/lib/libp2k

2020-02-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Feb 20 15:48:52 UTC 2020

Modified Files:
src/lib/libp2k: p2k.c

Log Message:
Fix kassert in lfs by initializing vp first.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/lib/libp2k/p2k.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-02-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Feb 20 15:48:38 UTC 2020

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

Log Message:
Buffer cache SDT probes.


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

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



CVS commit: src/bin/sh

2020-02-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Feb 20 18:24:21 UTC 2020

Modified Files:
src/bin/sh: sh.1

Log Message:
Typo: s/./,/


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/bin/sh/sh.1

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



CVS commit: src/external/historical/nawk/dist

2020-02-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Feb 20 19:59:12 UTC 2020

Modified Files:
src/external/historical/nawk/dist: lex.c lib.c main.c proto.h run.c

Log Message:
Fix failing unittests (by restoring old changes).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/historical/nawk/dist/lex.c
cvs rdiff -u -r1.10 -r1.11 src/external/historical/nawk/dist/lib.c \
src/external/historical/nawk/dist/main.c \
src/external/historical/nawk/dist/proto.h
cvs rdiff -u -r1.11 -r1.12 src/external/historical/nawk/dist/run.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-02-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Feb 20 21:14:23 UTC 2020

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

Log Message:
protect deferred lists' manipulation by config_misc_lock, same as
config_pending semaphore itself; right now this also covers
DVF_ATTACH_INPROGRESS flag


To generate a diff of this commit:
cvs rdiff -u -r1.265 -r1.266 src/sys/kern/subr_autoconf.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/libc/sys

2020-02-20 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Feb 20 22:38:54 UTC 2020

Modified Files:
src/tests/lib/libc/sys: t_ptrace_wait.c

Log Message:
Minor changes to t_ptrace_wait*

Add check for security.models.extensions.user_set_dbregs in the
concurrent event tests.

Use unconditionally atf_tc_skip(); as the test is racy.


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/tests/lib/libc/sys/t_ptrace_wait.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

2020-02-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Feb 20 22:52:11 UTC 2020

Modified Files:
src/sys/rump: Makefile.rump
src/sys/rump/librump/rumpkern: kobj_rename.c

Log Message:
The global offset table is spelled .TOC. on PPC64, so preserve that symbol.


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/sys/rump/Makefile.rump
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/librump/rumpkern/kobj_rename.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/libc/sys

2020-02-20 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Feb 20 23:57:16 UTC 2020

Modified Files:
src/tests/lib/libc/sys: t_ptrace_x86_wait.h

Log Message:
Refactor dbregs_dont_inherit_lwp()

Switch from native LWP calls to pthread(3) calls.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/lib/libc/sys/t_ptrace_x86_wait.h

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



CVS commit: src

2020-02-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Feb 21 00:26:23 UTC 2020

Modified Files:
src/external/bsd/libevent/dist/test: regress_http.c regress_ssl.c
src/external/bsd/wpa/dist/src/radius: radius_client.c
src/external/cddl/osnet/dist/tools/ctf/cvt: iidesc.c
src/sys/arch/x86/x86: spectre.c tsc.c
src/sys/dev: clockctl.c
src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c
src/sys/dist/pf/net: pf_ioctl.c
src/sys/external/bsd/ipf/netinet: ip_fil_netbsd.c
src/sys/kern: kern_ktrace.c kern_proc.c kern_resource.c kern_veriexec.c
sys_pset.c sysv_ipc.c uipc_socket.c vfs_init.c
src/sys/net: if.c
src/sys/netsmb: smb_conn.c
src/sys/secmodel/extensions: secmodel_extensions.c
src/sys/secmodel/keylock: secmodel_keylock.c
src/sys/secmodel/securelevel: secmodel_securelevel.c
src/sys/secmodel/suser: secmodel_suser.c

Log Message:
Explicitly cast pointers to uintptr_t before casting to enums. They are
not necessarily the same size. Don't cast pointers to bool, check for
NULL instead.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/libevent/dist/test/regress_http.c
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/libevent/dist/test/regress_ssl.c
cvs rdiff -u -r1.1.1.7 -r1.2 \
src/external/bsd/wpa/dist/src/radius/radius_client.c
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/dist/tools/ctf/cvt/iidesc.c
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/x86/x86/spectre.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/x86/x86/tsc.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/clockctl.c
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/nvmm/x86/nvmm_x86_svm.c
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c
cvs rdiff -u -r1.56 -r1.57 src/sys/dist/pf/net/pf_ioctl.c
cvs rdiff -u -r1.33 -r1.34 src/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c
cvs rdiff -u -r1.174 -r1.175 src/sys/kern/kern_ktrace.c
cvs rdiff -u -r1.240 -r1.241 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.185 -r1.186 src/sys/kern/kern_resource.c
cvs rdiff -u -r1.22 -r1.23 src/sys/kern/kern_veriexec.c \
src/sys/kern/sys_pset.c
cvs rdiff -u -r1.40 -r1.41 src/sys/kern/sysv_ipc.c
cvs rdiff -u -r1.286 -r1.287 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.49 -r1.50 src/sys/kern/vfs_init.c
cvs rdiff -u -r1.472 -r1.473 src/sys/net/if.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netsmb/smb_conn.c
cvs rdiff -u -r1.10 -r1.11 src/sys/secmodel/extensions/secmodel_extensions.c
cvs rdiff -u -r1.9 -r1.10 src/sys/secmodel/keylock/secmodel_keylock.c
cvs rdiff -u -r1.32 -r1.33 \
src/sys/secmodel/securelevel/secmodel_securelevel.c
cvs rdiff -u -r1.50 -r1.51 src/sys/secmodel/suser/secmodel_suser.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-02-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Feb 21 02:04:40 UTC 2020

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

Log Message:
OOPS -- fix mistake in previous commit.

bbusy really needs to return the error; otherwise things are very
bad!


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

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