CVS commit: src/sys/sys

2019-12-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 8 11:48:15 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Fix __nomsan: missing opt_kmsan.h, and the attribute should be kernel-memory. To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150

CVS commit: src/sys/sys

2019-12-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 8 11:48:15 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Fix __nomsan: missing opt_kmsan.h, and the attribute should be kernel-memory. To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150

CVS commit: src/sys/arch/amd64/amd64

2019-12-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 7 10:19:35 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Panic instead of printf, same as syscall. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

CVS commit: src/sys/arch/amd64/amd64

2019-12-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 7 10:19:35 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Panic instead of printf, same as syscall. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

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

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

Re: CVS commit: src/sys

2019-12-06 Thread Maxime Villard
Le 06/12/2019 à 08:49, m...@netbsd.org a écrit : > On Fri, Dec 06, 2019 at 07:27:07AM +0000, Maxime Villard wrote: >> Log Message: >> Minor changes, reported by the LGTM bot. > > Would be nice if the commit message was "address some integer overflows" >

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

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

CVS commit: src/sys

2019-12-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 6 07:27:07 UTC 2019 Modified Files: src/sys/dev/acpi: acpi_pci_link.c src/sys/dev/pci: auich.c src/sys/kern: uipc_mbuf.c Log Message: Minor changes, reported by the LGTM bot. To generate a diff of this

CVS commit: src/sys

2019-12-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 6 07:27:07 UTC 2019 Modified Files: src/sys/dev/acpi: acpi_pci_link.c src/sys/dev/pci: auich.c src/sys/kern: uipc_mbuf.c Log Message: Minor changes, reported by the LGTM bot. To generate a diff of this

CVS commit: src/sys/dev

2019-12-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 6 07:12:39 UTC 2019 Modified Files: src/sys/dev/gpio: gpioow.c src/sys/dev/ic: smc91cxx.c smc91cxxvar.h src/sys/dev/pci: if_txp.c src/sys/dev/pcmcia: if_cnw.c src/sys/dev/usb: uhidev.c

CVS commit: src/sys/dev

2019-12-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 6 07:12:39 UTC 2019 Modified Files: src/sys/dev/gpio: gpioow.c src/sys/dev/ic: smc91cxx.c smc91cxxvar.h src/sys/dev/pci: if_txp.c src/sys/dev/pcmcia: if_cnw.c src/sys/dev/usb: uhidev.c

Re: CVS commit: src/sys/kern [change in kern_lwp.c]

2019-12-03 Thread Maxime Villard
Le 01/12/2019 à 16:27, Andrew Doran a écrit : Module Name:src Committed By: ad Date: Sun Dec 1 15:27:58 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: Fix a longstanding problem with LWP limits. When changing the user's LWP count, we must use the

CVS commit: src/sys/dev

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 12:47:10 UTC 2019 Modified Files: src/sys/dev/pci: if_msk.c src/sys/dev/usb: if_atu.c uhid.c ustir.c Log Message: minor adjustments, to avoid warnings on debug builds To generate a diff of this commit: cvs

CVS commit: src/sys/dev

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 12:47:10 UTC 2019 Modified Files: src/sys/dev/pci: if_msk.c src/sys/dev/usb: if_atu.c uhid.c ustir.c Log Message: minor adjustments, to avoid warnings on debug builds To generate a diff of this commit: cvs

CVS commit: src/sys/dev/usb

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:27:54 UTC 2019 Modified Files: src/sys/dev/usb: if_ural.c uaudio.c uberry.c ubt.c ucycom.c udsbr.c uep.c ugen.c uhid.c uhso.c ulpt.c umidi.c ums.c urio.c usscanner.c ustir.c uthum.c utoppy.c

CVS commit: src/sys/dev/usb

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:27:54 UTC 2019 Modified Files: src/sys/dev/usb: if_ural.c uaudio.c uberry.c ubt.c ucycom.c udsbr.c uep.c ugen.c uhid.c uhso.c ulpt.c umidi.c ums.c urio.c usscanner.c ustir.c uthum.c utoppy.c

CVS commit: src/sys/arch/x86

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:23:09 UTC 2019 Modified Files: src/sys/arch/x86/include: i82489var.h src/sys/arch/x86/x86: lapic.c Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/arch/x86

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:23:09 UTC 2019 Modified Files: src/sys/arch/x86/include: i82489var.h src/sys/arch/x86/x86: lapic.c Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/uvm

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:19:09 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: Use atomic_{load,store}_relaxed() on global counters. To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/uvm/uvm_fault.c

CVS commit: src/sys/uvm

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:19:09 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: Use atomic_{load,store}_relaxed() on global counters. To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/uvm/uvm_fault.c

CVS commit: src/sys

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:15:58 UTC 2019 Modified Files: src/sys/kern: subr_csan.c src/sys/sys: atomic.h Log Message: Add KCSAN instrumentation for atomic_{load,store}_*. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys

2019-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 1 08:15:58 UTC 2019 Modified Files: src/sys/kern: subr_csan.c src/sys/sys: atomic.h Log Message: Add KCSAN instrumentation for atomic_{load,store}_*. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/netatalk

2019-11-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 29 17:40:16 UTC 2019 Modified Files: src/sys/netatalk: ddp_usrreq.c Log Message: Add sanity check, only sat_len bytes got copied in, the rest is uninitialized. Found by KMSAN. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/netatalk

2019-11-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 29 17:40:16 UTC 2019 Modified Files: src/sys/netatalk: ddp_usrreq.c Log Message: Add sanity check, only sat_len bytes got copied in, the rest is uninitialized. Found by KMSAN. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev

2019-11-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 28 17:09:10 UTC 2019 Modified Files: src/sys/dev/pci: if_et.c if_msk.c if_sk.c mpii.c src/sys/dev/pcmcia: if_xi.c src/sys/dev/usb: if_atu.c if_urtw.c if_zyd.c Log Message: localify To generate a diff of

CVS commit: src/sys/dev

2019-11-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 28 17:09:10 UTC 2019 Modified Files: src/sys/dev/pci: if_et.c if_msk.c if_sk.c mpii.c src/sys/dev/pcmcia: if_xi.c src/sys/dev/usb: if_atu.c if_urtw.c if_zyd.c Log Message: localify To generate a diff of

CVS commit: src/sys

2019-11-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 27 19:21:37 UTC 2019 Modified Files: src/sys/arch/x86/pci: if_vmx.c src/sys/dev/pci: mfii.c Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/arch/x86/pci/if_vmx.c cvs

CVS commit: src/sys

2019-11-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 27 19:21:37 UTC 2019 Modified Files: src/sys/arch/x86/pci: if_vmx.c src/sys/dev/pci: mfii.c Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/arch/x86/pci/if_vmx.c cvs

CVS commit: src/sys/arch/x86

2019-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 27 06:24:33 UTC 2019 Modified Files: src/sys/arch/x86/include: cpu.h fpu.h src/sys/arch/x86/x86: cpu.c fpu.c Log Message: Add a small API for in-kernel FPU operations. fpu_kern_enter(); /* do FPU

CVS commit: src/sys/arch/x86

2019-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 27 06:24:33 UTC 2019 Modified Files: src/sys/arch/x86/include: cpu.h fpu.h src/sys/arch/x86/x86: cpu.c fpu.c Log Message: Add a small API for in-kernel FPU operations. fpu_kern_enter(); /* do FPU

CVS commit: src/sys

2019-11-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 22 14:28:46 UTC 2019 Modified Files: src/sys/kern: subr_msan.c src/sys/lib/libkern: libkern.h Log Message: Ah, strcat/strchr/strrchr are ASM functions, so instrument them. To generate a diff of this commit: cvs

CVS commit: src/sys

2019-11-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 22 14:28:46 UTC 2019 Modified Files: src/sys/kern: subr_msan.c src/sys/lib/libkern: libkern.h Log Message: Ah, strcat/strchr/strrchr are ASM functions, so instrument them. To generate a diff of this commit: cvs

CVS commit: src/tests/lib/libnvmm

2019-11-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 22 10:26:32 UTC 2019 Modified Files: src/tests/lib/libnvmm: h_mem_assist.c Log Message: Several improvements. In particular, reduce CS.limit, because Intel CPUs perform strict sanity checks, and the previous (too high)

CVS commit: src/tests/lib/libnvmm

2019-11-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 22 10:26:32 UTC 2019 Modified Files: src/tests/lib/libnvmm: h_mem_assist.c Log Message: Several improvements. In particular, reduce CS.limit, because Intel CPUs perform strict sanity checks, and the previous (too high)

CVS commit: src/sys/dev/nvmm/x86

2019-11-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 20 10:26:56 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Hide XSAVES-specific stuff and the masked extended states. To generate a diff of this commit: cvs rdiff -u -r1.53

CVS commit: src/sys/dev/nvmm/x86

2019-11-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 20 10:26:56 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Hide XSAVES-specific stuff and the masked extended states. To generate a diff of this commit: cvs rdiff -u -r1.53

CVS commit: src/sys/arch/amd64

2019-11-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 17 14:07:00 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: vector.S src/sys/arch/amd64/include: frameasm.h Log Message: Disable KCOV - by raising the interrupt level - in the TLB IPI handler, because this is

CVS commit: src/sys/arch/amd64

2019-11-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 17 14:07:00 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: vector.S src/sys/arch/amd64/include: frameasm.h Log Message: Disable KCOV - by raising the interrupt level - in the TLB IPI handler, because this is

CVS commit: src/sys/dev/usb

2019-11-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 17 11:28:48 UTC 2019 Modified Files: src/sys/dev/usb: vhci.c Log Message: Not a bug strictly speaking, but compute the address only after the length checks, for clarity and to appease kUBSan. To generate a diff of this

CVS commit: src/sys/dev/usb

2019-11-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 17 11:28:48 UTC 2019 Modified Files: src/sys/dev/usb: vhci.c Log Message: Not a bug strictly speaking, but compute the address only after the length checks, for clarity and to appease kUBSan. To generate a diff of this

Re: CVS commit: src [llvm]

2019-11-17 Thread Maxime Villard
Le 16/11/2019 à 23:01, Joerg Sonnenberger a écrit : On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote: Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit : Module Name:src Committed By: joerg Date: Mon Nov 11 22:45:32 UTC 2019 [...] Log Message: Update LLVM

CVS commit: src/sys/dev/nvmm/x86

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 17:53:46 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Don't report MWAITX by default. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/dev/nvmm/x86/nvmm_x86.c Please note

CVS commit: src/sys/dev/nvmm/x86

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 17:53:46 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Don't report MWAITX by default. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/dev/nvmm/x86/nvmm_x86.c Please note

CVS commit: src/sys/arch/x86/x86

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:19:29 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Add a NULL check on the structure pointer, not to retrieve its first field if it is NULL. The previous code was not buggy strictly speaking.

CVS commit: src/sys/arch/x86/x86

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:19:29 UTC 2019 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Add a NULL check on the structure pointer, not to retrieve its first field if it is NULL. The previous code was not buggy strictly speaking.

CVS commit: src/sys/netinet

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:15:10 UTC 2019 Modified Files: src/sys/netinet: tcp_input.c Log Message: Call rtcache_unref() only when the checks succeed, instead of relying on another NULL check in rtcache_unref(). Because, in order to resolve

CVS commit: src/sys/netinet

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:15:10 UTC 2019 Modified Files: src/sys/netinet: tcp_input.c Log Message: Call rtcache_unref() only when the checks succeed, instead of relying on another NULL check in rtcache_unref(). Because, in order to resolve

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:07:53 UTC 2019 Modified Files: src/sys/kern: vfs_mount.c Log Message: NULL-check the structure pointer, not the address of its first field. Also add KASSERT. For clarity, and to appease kUBSan. To generate a diff of

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:07:53 UTC 2019 Modified Files: src/sys/kern: vfs_mount.c Log Message: NULL-check the structure pointer, not the address of its first field. Also add KASSERT. For clarity, and to appease kUBSan. To generate a diff of

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:05:44 UTC 2019 Modified Files: src/sys/kern: vfs_subr.c Log Message: Add a NULL check on the structure (same logic as my previous change in this file). For clarity, and to appease kUBSan. To generate a diff of this

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:05:44 UTC 2019 Modified Files: src/sys/kern: vfs_subr.c Log Message: Add a NULL check on the structure (same logic as my previous change in this file). For clarity, and to appease kUBSan. To generate a diff of this

CVS commit: src/sys/kern

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 15:51:57 UTC 2019 Modified Files: src/sys/kern: vfs_subr.c Log Message: NULL-check the structure pointer, not the address of its first field. This is clearer and also appeases syzbot. Reported-by:

CVS commit: src/sys/kern

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 15:51:57 UTC 2019 Modified Files: src/sys/kern: vfs_subr.c Log Message: NULL-check the structure pointer, not the address of its first field. This is clearer and also appeases syzbot. Reported-by:

CVS commit: src/sys

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 12:18:46 UTC 2019 Modified Files: src/sys/kern: subr_msan.c src/sys/sys: systm.h Log Message: Instrument ufetch/ustore in kMSan, these were the last remaining functions. To generate a diff of this commit: cvs

CVS commit: src/sys

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 12:18:46 UTC 2019 Modified Files: src/sys/kern: subr_msan.c src/sys/sys: systm.h Log Message: Instrument ufetch/ustore in kMSan, these were the last remaining functions. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/amd64/amd64

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:50:01 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpu_in_cksum.S Log Message: Since cpu_in_cksum.S can be built outside of the kernel, add an ugly #ifdef _KERNEL for kMSan. To generate a diff of this commit:

CVS commit: src/sys/arch/amd64/amd64

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:50:01 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpu_in_cksum.S Log Message: Since cpu_in_cksum.S can be built outside of the kernel, add an ugly #ifdef _KERNEL for kMSan. To generate a diff of this commit:

CVS commit: src

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:44:44 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/kern: subr_kcov.c Log Message: Make kMSan compatible with KCOV. With kMSan we are forced to stay with the fsanitize flag on subr_kcov.c, which

CVS commit: src

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:44:44 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/kern: subr_kcov.c Log Message: Make kMSan compatible with KCOV. With kMSan we are forced to stay with the fsanitize flag on subr_kcov.c, which

CVS commit: src/sys/arch

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:03:26 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: pio.h Log Message: Remove the ins* and outs* functions. Not

CVS commit: src/sys/arch

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 09:03:26 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: pio.h Log Message: Remove the ins* and outs* functions. Not

CVS commit: src/sys

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 08:11:37 UTC 2019 Modified Files: src/sys/kern: subr_csan.c src/sys/sys: systm.h Log Message: Instrument copyout() in kCSan, for parity with kMSan. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/sys

2019-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 15 08:11:37 UTC 2019 Modified Files: src/sys/kern: subr_csan.c src/sys/sys: systm.h Log Message: Instrument copyout() in kCSan, for parity with kMSan. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/sys

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 17:09:23 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c pmap.c src/sys/arch/amd64/amd64: machdep.c src/sys/arch/x86/x86: pmap.c src/sys/sys: asan.h Log Message: Mark

CVS commit: src/sys

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 17:09:23 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c pmap.c src/sys/arch/amd64/amd64: machdep.c src/sys/arch/x86/x86: pmap.c src/sys/sys: asan.h Log Message: Mark

CVS commit: src/sys/kern

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:56:13 UTC 2019 Modified Files: src/sys/kern: subr_csan.c Log Message: Don't include "opt_kcsan.h" since there's already included. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_csan.c

CVS commit: src/sys/kern

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:56:13 UTC 2019 Modified Files: src/sys/kern: subr_csan.c Log Message: Don't include "opt_kcsan.h" since there's already included. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_csan.c

CVS commit: src/sys

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:48:51 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c pmap.c src/sys/arch/amd64/amd64: machdep.c src/sys/uvm: uvm_glue.c Log Message: Don't include "opt_kasan.h" when there's

CVS commit: src/doc

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:27:26 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kMSan. To generate a diff of this commit: cvs rdiff -u -r1.2613 -r1.2614 src/doc/CHANGES Please note that diffs are not public domain; they are

CVS commit: src/doc

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:27:26 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kMSan. To generate a diff of this commit: cvs rdiff -u -r1.2613 -r1.2614 src/doc/CHANGES Please note that diffs are not public domain; they are

CVS commit: src/sys

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:23:53 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S busfunc.S cpu_in_cksum.S cpufunc.S lock_stubs.S locore.S machdep.c mptramp.S spl.S src/sys/arch/amd64/conf: GENERIC

CVS commit: src/sys

2019-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 14 16:23:53 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S busfunc.S cpu_in_cksum.S cpufunc.S lock_stubs.S locore.S machdep.c mptramp.S spl.S src/sys/arch/amd64/conf: GENERIC

CVS commit: src/sys/arch/x86

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 12:55:10 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h pmap_pv.h src/sys/arch/x86/x86: pmap.c Log Message: Rename: PP_ATTRS_M -> PP_ATTRS_D PP_ATTRS_U -> PP_ATTRS_A For consistency.

CVS commit: src/sys/arch/x86

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 12:55:10 UTC 2019 Modified Files: src/sys/arch/x86/include: pmap.h pmap_pv.h src/sys/arch/x86/x86: pmap.c Log Message: Rename: PP_ATTRS_M -> PP_ATTRS_D PP_ATTRS_U -> PP_ATTRS_A For consistency.

CVS commit: src/external/cddl/osnet/dev/fbt/x86

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 10:13:41 UTC 2019 Modified Files: src/external/cddl/osnet/dev/fbt/x86: fbt_isa.c Log Message: Use x86_patch_window_{open,close}. This also fixes a bug: the CR0/PSL reloads were inverted. To generate a diff of this

CVS commit: src/external/cddl/osnet/dev/fbt/x86

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 10:13:41 UTC 2019 Modified Files: src/external/cddl/osnet/dev/fbt/x86: fbt_isa.c Log Message: Use x86_patch_window_{open,close}. This also fixes a bug: the CR0/PSL reloads were inverted. To generate a diff of this

Re: CVS commit: src [llvm]

2019-11-13 Thread Maxime Villard
Le 12/11/2019 à 23:10, Joerg Sonnenberger a écrit : On Tue, Nov 12, 2019 at 04:31:00PM +0100, Maxime Villard wrote: Le 12/11/2019 à 16:06, Maxime Villard a écrit : Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit : On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote: Le 11/11

CVS commit: src/sys/arch/usermode/usermode

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 09:47:37 UTC 2019 Modified Files: src/sys/arch/usermode/usermode: db_memrw.c Log Message: Switch to the new PTE naming. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/usermode/usermode

2019-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 13 09:47:37 UTC 2019 Modified Files: src/sys/arch/usermode/usermode: db_memrw.c Log Message: Switch to the new PTE naming. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/x86

2019-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 12 18:00:13 UTC 2019 Modified Files: src/sys/arch/x86/include: specialreg.h src/sys/arch/x86/x86: spectre.c Log Message: Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA). Two sysctls are added:

CVS commit: src/sys/arch/x86

2019-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 12 18:00:13 UTC 2019 Modified Files: src/sys/arch/x86/include: specialreg.h src/sys/arch/x86/x86: spectre.c Log Message: Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA). Two sysctls are added:

Re: CVS commit: src [llvm]

2019-11-12 Thread Maxime Villard
Le 12/11/2019 à 16:06, Maxime Villard a écrit : Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit : On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote: Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit : Module Name:    src Committed By:    joerg Date:    Mon Nov 11 22:45:32

Re: CVS commit: src [llvm]

2019-11-12 Thread Maxime Villard
Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit : On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote: Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit : Module Name:src Committed By: joerg Date: Mon Nov 11 22:45:32 UTC 2019 [...] Log Message: Update LLVM

Re: CVS commit: src [llvm]

2019-11-12 Thread Maxime Villard
Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit : Module Name:src Committed By: joerg Date: Mon Nov 11 22:45:32 UTC 2019 [...] Log Message: Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) Since this change, I cannot cross-compile GENERIC amd64 from Linux:

CVS commit: src/sys/netinet6

2019-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 12 08:11:55 UTC 2019 Modified Files: src/sys/netinet6: ip6_input.c Log Message: Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The Rip6 entry point could see a garbage Hop6 option. Not a big issue,

CVS commit: src/sys/netinet6

2019-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 12 08:11:55 UTC 2019 Modified Files: src/sys/netinet6: ip6_input.c Log Message: Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The Rip6 entry point could see a garbage Hop6 option. Not a big issue,

CVS commit: src/sys/kern

2019-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 11 09:50:11 UTC 2019 Modified Files: src/sys/kern: subr_xcall.c Log Message: Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot expect the accesses to be MP-safe on 32bit arches. Found by KCSAN. To

CVS commit: src/sys/kern

2019-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 11 09:50:11 UTC 2019 Modified Files: src/sys/kern: subr_xcall.c Log Message: Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot expect the accesses to be MP-safe on 32bit arches. Found by KCSAN. To

CVS commit: src/sys

2019-11-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 8 12:36:11 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Exclude the PTE space from KCSAN, since there the same VA can point to different PAs. To generate a

CVS commit: src/sys

2019-11-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 8 12:36:11 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Exclude the PTE space from KCSAN, since there the same VA can point to different PAs. To generate a

CVS commit: src/sys

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 6 06:57:22 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Change kcsan_md_is_avail() to always return true; I was testing with interrupts disabled as debugging.

CVS commit: src/sys

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 6 06:57:22 UTC 2019 Modified Files: src/sys/arch/amd64/include: csan.h src/sys/kern: subr_csan.c Log Message: Change kcsan_md_is_avail() to always return true; I was testing with interrupts disabled as debugging.

Re: CVS commit: src

2019-11-05 Thread Maxime Villard
Le 05/11/2019 à 22:01, m...@netbsd.org a écrit : On Tue, Nov 05, 2019 at 08:19:18PM +, Maxime Villard wrote: Module Name:src Committed By: maxv Date: Tue Nov 5 20:19:18 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/arch/amd64/amd64: machdep.c

CVS commit: src/doc

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:23:44 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kCSan. To generate a diff of this commit: cvs rdiff -u -r1.2608 -r1.2609 src/doc/CHANGES Please note that diffs are not public domain; they are

CVS commit: src/doc

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:23:44 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Note kCSan. To generate a diff of this commit: cvs rdiff -u -r1.2608 -r1.2609 src/doc/CHANGES Please note that diffs are not public domain; they are

CVS commit: src/sys/arch/x86/acpi

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:21:34 UTC 2019 Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c Log Message: Add the __nocsan attribute on this function. Races on ci_want_resched are accepted (part of the design). To generate a diff of this

CVS commit: src

2019-11-05 Thread Maxime Villard
Added files: Index: src/sys/arch/amd64/include/csan.h diff -u /dev/null src/sys/arch/amd64/include/csan.h:1.1 --- /dev/null Tue Nov 5 20:19:18 2019 +++ src/sys/arch/amd64/include/csan.h Tue Nov 5 20:19:17 2019 @@ -0,0 +1,119 @@ +/* $NetBSD: csan.h,v 1.1 2019/11/05 20:19:17 maxv Exp $ */ + +/* + *

CVS commit: src

2019-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 5 20:19:18 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk src/sys/arch/amd64/amd64: machdep.c mptramp.S src/sys/arch/amd64/conf: GENERIC Makefile.amd64 src/sys/arch/x86/x86: cpu.c

<    2   3   4   5   6   7   8   9   10   11   >