CVS commit: src/sys

2020-09-10 Thread Maxime Villard
$ */ /* - * Copyright (c) 2018-2020 The NetBSD Foundation, Inc. + * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation - * by Maxime Villard. + * This code is part of the KASAN subsystem

CVS commit: src/sys

2020-09-10 Thread Maxime Villard
maxv Exp $ */ +/* $NetBSD: csan.h,v 1.4 2020/09/10 14:04:45 maxv Exp $ */ /* - * Copyright (c) 2019 The NetBSD Foundation, Inc. + * Copyright (c) 2019-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation

CVS commit: src/sys

2020-09-09 Thread Maxime Villard
christos Exp $ */ +/* $NetBSD: msan.h,v 1.5 2020/09/09 16:29:59 maxv Exp $ */ /* - * Copyright (c) 2019 The NetBSD Foundation, Inc. + * Copyright (c) 2019-2020 Maxime Villard, m00nbsd.net * All rights reserved. * - * This code is derived from software contributed to The NetBSD Foundation

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

2020-09-08 Thread Maxime Villard
: nvmm_x86_vmx.c,v 1.79 2020/09/08 17:00:07 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_vmx.c,v 1.78 2020/09/06 02:18:53 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_vm

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

2020-09-08 Thread Maxime Villard
$ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.80 2020/09/08 16:58:38 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.81 2020/09/08 17:02:03 maxv Exp $"); #include

CVS commit: src/sys/dev/nvmm

2020-09-08 Thread Maxime Villard
+1,4 @@ -/* $NetBSD: nvmm.c,v 1.40 2020/09/05 16:30:11 riastradh Exp $ */ +/* $NetBSD: nvmm.c,v 1.41 2020/09/08 16:58:38 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.40 2020/09/05 16:

CVS commit: src

2020-09-05 Thread Maxime Villard
7 Sat Sep 5 07:22:26 2020 +++ src/sys/dev/nvmm/x86/nvmm_x86.c Sat Sep 5 07:45:44 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nvmm_x86.c,v 1.17 2020/09/05 07:22:26 maxv Exp $ */ +/* $NetBSD: nvmm_x86.c,v 1.18 2020/09/05 07:45:44 maxv Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @

CVS commit: src/sys

2020-09-05 Thread Maxime Villard
mm/x86/nvmm_x86_svm.c:1.76 Sat Sep 5 07:22:26 2020 +++ src/sys/dev/nvmm/x86/nvmm_x86_svm.c Sat Sep 5 07:26:38 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: nvmm_x86_svm.c,v 1.76 2020/09/05 07:22:26 maxv Exp $ */ +/* $NetBSD: nvmm_x86_svm.c,v 1.77 2020/09/05 07:26:38 maxv Exp $ */ /* * Copyright (c) 2018-2020 Max

CVS commit: src

2020-09-05 Thread Maxime Villard
v Exp $ +.\" $NetBSD: libnvmm.3,v 1.27 2020/09/05 07:22:25 maxv Exp $ .\" -.\" Copyright (c) 2018-2020 The NetBSD Foundation, Inc. +.\" Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net .\" All rights reserved. .\" -.\" This code is derived from softw

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:09:03 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: improve the CPUID emulation - Mask DTES64, DS_CPL, CID, SDBG, xTPR, PN. - B10, B20 and IA64 do not exist, so just remove them.

CVS commit: src/sys/dev/nvmm

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:08:01 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: more __read_mostly To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/nvmm/nvmm.c Please note that diffs are not

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:07:33 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: improve the handling of CR0 - Flush the guest TLB when certain CR0 bits change. - If the guest updates a static bit in

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:06:23 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: check the SVM revision Only revision 1 exists, but check it, for future-proofness. To generate a diff of this commit:

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

2020-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 4 17:05:09 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add a few more CPUID flags. To generate a diff of this commit: cvs rdiff -u -r1.171 -r1.172 src/sys/arch/x86/include/specialreg.h

CVS commit: src/sys/arch/aarch64

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:17:23 UTC 2020 Modified Files: src/sys/arch/aarch64/aarch64: locore_el2.S src/sys/arch/aarch64/include: hypervisor.h Log Message: Slightly clarify, and style. To generate a diff of this commit: cvs rdiff -u

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

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:16:04 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: 'doreti_checkast' isn't global anymore, localify. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/net

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:50 UTC 2020 Modified Files: src/sys/net: if_tun.c Log Message: Correct my rev1.159, it was incomplete, the check must be done later because the value can change in the meantime (and get set to zero). To generate

CVS commit: src/sys/dev/nvmm

2020-08-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 29 07:14:17 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: explicitly include atomic.h To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/nvmm/nvmm.c Please note that diffs

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:

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

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

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

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

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

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

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:01:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: nvmm-x86-vmx: fix detection of the BIOS lock If it's locked, ensure it's locked with VMX enabled. If it's not locked, then lock it

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 11:00:01 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: hide more CPUID flags, mostly related to perf monitors To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

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

2020-08-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 22 10:59:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: dedup code To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/dev/nvmm/x86/nvmm_x86_svm.c Please

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:09:56 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c nvmm_x86.h nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: improve the CPUID emulation - x86-svm: explicitly handle 0x8007 and

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

2020-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 20 11:07:43 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: nvmm-x86: advertise the SERIALIZE instruction, available on future CPUs To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:08:05 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: nvmm-x86-svm: improve the CPUID emulation Limit the hypervisor range, and properly handle each basic leaf until 0xD. To generate a

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:04:38 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: use relaxed atomics to read nmachines To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/nvmm/nvmm.c Please note

CVS commit: src/sys/dev/nvmm

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:58 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: nvmm: localify a variable that doesn't need to be global To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/nvmm/nvmm.c

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

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 17:03:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: nvmm-x86: also flush the guest TLB when CR4.{PCIDE,SMEP} changes To generate a diff of this commit: cvs rdiff -u -r1.67

CVS commit: src/sys/net/npf

2020-08-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 18 07:53:24 UTC 2020 Modified Files: src/sys/net/npf: npf_os.c Log Message: Add missing cases, to prevent memory corruption. Reported-by: syzbot+f8b8a689a3560dda2...@syzkaller.appspotmail.com To generate a diff of this

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:48:42 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svmfunc.S nvmm_x86_vmxfunc.S Log Message: Micro-optimize: use pushq instead of pushw. To avoid LCP stalls and unaligned stack accesses. To generate a

CVS commit: src/doc

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:35:17 UTC 2020 Modified Files: src/doc: TODO.nvmm Log Message: sync To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.nvmm Please note that diffs are not public domain; they are subject to

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:31:52 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve the CPUID emulation on nvmm-intel: - Limit the highest extended leaf. - Limit 0x0007 to ECX=0, for future-proofness. To

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:27:46 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Improve emulation of MSR_IA32_ARCH_CAPABILITIES: publish only the *_NO bits. Initially they were the only ones there, but Intel then

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

2020-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 11 15:23:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Hide OSPKE. NFC since the host never uses PKU, but still. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys/dev/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 16:36:34 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.h Log Message: Add CTASSERT. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/dev/nvmm/nvmm.h Please note that diffs are not public domain;

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:40:46 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add new fields here and there. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/sys/arch/x86/include/specialreg.h

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:38:28 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Improve the CPUID emulation: - Hide SGX*, PKU, WAITPKG, and SKINIT, because they are not supported. - Hide HLE and RTM, part of TSX.

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:22:25 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Add new field definitions, and intercept everything, for future-proofness. To generate a diff of this commit: cvs rdiff -u -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:20:09 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Add new field definitions. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 15:16:51 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86.c Log Message: Make it easier to understand what's going on, no functional change. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/sys/modules/nvmm

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:33:01 UTC 2020 Modified Files: src/sys/modules/nvmm: Makefile Log Message: Upgrade NVMM to WARNS=5. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/modules/nvmm/Makefile Please note that diffs

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:31:37 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c Log Message: Use ULL, to make it clear we are unsigned. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

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

2020-08-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 5 10:20:50 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Simplify, remove unnecessary #ifdef DIAGNOSTIC around KASSERTs. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66

CVS commit: src/sys/net

2020-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 2 07:19:39 UTC 2020 Modified Files: src/sys/net: bpf.c Log Message: Use a more informative panic message. To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/sys/net/bpf.c Please note that diffs are not

CVS commit: src/doc

2020-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 2 07:15:05 UTC 2020 Modified Files: src/doc: CHANGES Log Message: Note PAN. To generate a diff of this commit: cvs rdiff -u -r1.2722 -r1.2723 src/doc/CHANGES Please note that diffs are not public domain; they are

CVS commit: src/sys/arch

2020-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 2 06:58:16 UTC 2020 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c copyinout.S cpufunc.c db_interface.c fault.c fusu.S locore.S trap.c src/sys/arch/aarch64/include: armreg.h asm.h

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

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:47:05 UTC 2020 Modified Files: src/sys/arch/aarch64/include: armreg.h Log Message: The system registers we modify can have an impact on memory accesses, and we don't want the compiler to randomly re-order the

CVS commit: src/doc

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:22:37 UTC 2020 Modified Files: src/doc: CHANGES Log Message: Note BRIDGE_IPF removal. To generate a diff of this commit: cvs rdiff -u -r1.2721 -r1.2722 src/doc/CHANGES Please note that diffs are not public domain;

CVS commit: src

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:20:53 UTC 2020 Modified Files: src/doc: TODO.smpnet src/share/man/man4: bridge.4 options.4 src/sys/arch/acorn32/conf: EB7500ATX GENERIC src/sys/arch/alpha/conf: GENERIC

CVS commit: src/sys/dev/nvmm

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 08:18:37 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm.h nvmm_internal.h Log Message: Put the few x86-specific structures under #ifdef __x86_64__, for clarity. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 06:50:43 UTC 2020 Modified Files: src/sys/external/bsd/ipf/netinet: ip_nat.c src/sys/net: if_bridge.c Log Message: Remove #ifdef BRIDGE_IPF, compile in the code by default. Sent to tech-net@. To generate a diff

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

2020-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 1 06:35:00 UTC 2020 Modified Files: src/sys/arch/aarch64/include: asan.h Log Message: Use large pages for the KASAN shadow, same as amd64, discussed with ryo@. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9

CVS commit: src/doc

2020-07-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 31 16:59:04 UTC 2020 Modified Files: src/doc: TODO.smpnet Log Message: BRIDGE_IPF is MP-safe, discussed with ozaki-r@ To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/doc/TODO.smpnet Please note that

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 20 05:50:56 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Revert previous, to unbreak the build (NVMM declares the macro too). There are hundreds of MSRs, we're not going to list them all,

CVS commit: src/sbin/brconfig

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 14:39:42 UTC 2020 Modified Files: src/sbin/brconfig: brconfig.8 Log Message: sync with reality To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sbin/brconfig/brconfig.8 Please note that diffs are not

CVS commit: src

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 14:31:31 UTC 2020 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC src/sys/arch/x86/x86: x86_machdep.c src/tests/lib/libi386: t_user_ldt.c Log Message: Compile USER_LDT by default, but, put it behind

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 13:58:27 UTC 2020 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: we're already in an #ifdef USER_LDT block, so no need to #ifdef again To generate a diff of this commit: cvs rdiff -u -r1.400 -r1.401

CVS commit: src/sys

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 13:55:09 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep_13.c src/sys/arch/i386/include: pmap.h src/sys/arch/x86/include: cpu.h src/sys/arch/xen/x86: xen_pmap.c

CVS commit: src/sys/arch

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 07:35:08 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/amd64/include: frameasm.h src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: pmap.h

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:56:10 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Switch to fpu_kern_enter/leave, to prevent clobbering, now that the kernel itself uses the fpu. To generate a diff of

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

2020-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 19 06:36:38 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_svmfunc.S nvmm_x86_vmx.c nvmm_x86_vmxfunc.S Log Message: The TLB flush IPIs do not respect the IPL, so enforcing IPL_HIGH has no

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

2020-07-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 18 20:56:53 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Now that the IDT is per-CPU, it must be saved/restored on each CPU independently. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/share/man/man7

2020-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 12 10:10:53 UTC 2020 Modified Files: src/share/man/man7: kernel_sanitizers.7 Log Message: fix inaccuracy about kmsan To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/share/man/man7/kernel_sanitizers.7

CVS commit: src/sys/kern

2020-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 11 07:14:53 UTC 2020 Modified Files: src/sys/kern: subr_prf.c Log Message: Remove support for '%n' in the kernel printf functions. It makes vulnerabilities too easily exploitable, is unused and as a sanity rule should not

CVS commit: src/sys

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:23:03 UTC 2020 Modified Files: src/sys/arch/amiga/dev: clock.c src/sys/arch/arm/at91: at91st.c at91tctmr.c src/sys/arch/atari/dev: clock.c src/sys/arch/vax/vax: clock.c

CVS commit: src/sys/kern

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:11:11 UTC 2020 Modified Files: src/sys/kern: subr_kcov.c Log Message: Sync trace-pc and trace-cmp. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/kern/subr_kcov.c Please note that diffs are

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

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:17:25 UTC 2020 Modified Files: src/sys/arch/x86/x86: vm_machdep.c Log Message: In cpu_uarea_{alloc,free}: - My previous change in this file was not correct, kremove does not free the underlying PA, which caused a

CVS commit: src/share/mk

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:12:16 UTC 2020 Modified Files: src/share/mk: bsd.sys.mk Log Message: Enable trace-cmp. To generate a diff of this commit: cvs rdiff -u -r1.301 -r1.302 src/share/mk/bsd.sys.mk Please note that diffs are not public

CVS commit: src/sys/dev/nvmm

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:09:55 UTC 2020 Modified Files: src/sys/dev/nvmm: nvmm.c nvmm_internal.h src/sys/dev/nvmm/x86: nvmm_x86_svm.c nvmm_x86_vmx.c Log Message: Print the backend name when attaching. To generate a diff of this

CVS commit: src/tests/lib/libi386

2020-07-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 3 16:07:52 UTC 2020 Modified Files: src/tests/lib/libi386: t_user_ldt.c Log Message: more To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libi386/t_user_ldt.c Please note that diffs are not

CVS commit: src/sys

2020-06-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 30 16:28:17 UTC 2020 Modified Files: src/sys/kern: subr_fault.c src/sys/sys: fault.h Log Message: be one-shot by default, with room for circular To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/share/man/man7

2020-06-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 30 16:22:56 UTC 2020 Modified Files: src/share/man/man7: kernel_sanitizers.7 Log Message: fix file path To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/share/man/man7/kernel_sanitizers.7 Please note that

CVS commit: src/sys

2020-06-30 Thread Maxime Villard
es: Index: src/sys/lib/libkern/copystr.c diff -u /dev/null src/sys/lib/libkern/copystr.c:1.1 --- /dev/null Tue Jun 30 16:20:03 2020 +++ src/sys/lib/libkern/copystr.c Tue Jun 30 16:20:02 2020 @@ -0,0 +1,54 @@ +/* $NetBSD: copystr.c,v 1.1 2020/06/30 16:20:02 maxv Exp $ */ + +/* + * Copyright (c) 2020 T

CVS commit: src/sys/dev/usb

2020-06-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 27 07:29:11 UTC 2020 Modified Files: src/sys/dev/usb: ulpt.c Log Message: Fix NULL deref on attach failure. Found via vHCI fuzzing. Reported-by: syzbot+9fdcdc21799e5d6d7...@syzkaller.appspotmail.com To generate a diff of

CVS commit: src/sys/compat/sys

2020-06-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 27 07:00:43 UTC 2020 Modified Files: src/sys/compat/sys: mount.h Log Message: Yet another idiotic compat syscall that was developed with literally zero test made. Simply invoking this syscall with _valid parameters_

CVS commit: src/sys

2020-06-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 25 17:01:20 UTC 2020 Modified Files: src/sys/dev/nvmm: files.nvmm nvmm.c src/sys/modules/nvmm: nvmm.ioconf Log Message: Register NVMM as an actual pseudo-device. Without PMF handler, to explicitly disallow ACPI

CVS commit: src/sys/kern

2020-06-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 25 16:19:07 UTC 2020 Modified Files: src/sys/kern: sys_pipe.c Log Message: Fix NULL deref. The original code before Jaromir's cleanup had an #ifndef block that wrongly contained the 'else' statement, causing the NULL check

CVS commit: src/sys/arch

2020-06-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 24 18:09:37 UTC 2020 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: pmap.h Log Message: remove unused x86_stos To generate a diff of this

CVS commit: src/sys/net

2020-06-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 23 18:30:17 UTC 2020 Modified Files: src/sys/net: if_tun.c Log Message: Hum. Fix NULL deref triggerable with just write(0). Reported-by: syzbot+45b31355bf880e175...@syzkaller.appspotmail.com To generate a diff of this

CVS commit: src/sys/arch

2020-06-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 23 17:21:55 UTC 2020 Modified Files: src/sys/arch/aarch64/include: asan.h src/sys/arch/amd64/include: asan.h Log Message: Rename __MD_CANONICAL_BASE -> __MD_KERNMEM_BASE for clarity. To generate a diff of this

CVS commit: src

2020-06-23 Thread Maxime Villard
\" $NetBSD: kernel_sanitizers.7,v 1.1 2020/06/23 16:08:46 maxv Exp $ +.\" +.\" Copyright (c) 2020 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Maxime Villard. +.\" +.\&

CVS commit: src/sys/net

2020-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 22 16:39:56 UTC 2020 Modified Files: src/sys/net: pfil.c Log Message: pfil_psz gets dropped by the compiler because it is unused if !NET_MPSAFE, so add an #ifdef around it, not to leak memory. Found by kLSan. To generate

CVS commit: src/sys/kern

2020-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 22 16:29:24 UTC 2020 Modified Files: src/sys/kern: tty.c Log Message: Don't leak an unused sysctl log. Found by kLSan. To generate a diff of this commit: cvs rdiff -u -r1.287 -r1.288 src/sys/kern/tty.c Please note that

CVS commit: src/sys/kern

2020-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 22 16:21:29 UTC 2020 Modified Files: src/sys/kern: kern_lwp.c Log Message: Permanent node doesn't need a log, plus the log gets leaked anyway. Found by kLSan. To generate a diff of this commit: cvs rdiff -u -r1.241

CVS commit: src/sys/dev/acpi

2020-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 22 16:14:18 UTC 2020 Modified Files: src/sys/dev/acpi: acpi.c Log Message: Fix memory leak. Found by kLSan. To generate a diff of this commit: cvs rdiff -u -r1.284 -r1.285 src/sys/dev/acpi/acpi.c Please note that diffs

CVS commit: src/sys/arch/x86

2020-06-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 19 16:20:22 UTC 2020 Modified Files: src/sys/arch/x86/include: cpu.h sysarch.h src/sys/arch/x86/x86: sys_machdep.c Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126

CVS commit: src/sys/netinet6

2020-06-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 19 16:08:06 UTC 2020 Modified Files: src/sys/netinet6: ip6_input.c ip6_var.h Log Message: localify To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217 src/sys/netinet6/ip6_input.c cvs rdiff -u -r1.83 -r1.84

CVS commit: src/sys/sys

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:56:31 UTC 2020 Modified Files: src/sys/sys: pool.h Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/sys/sys/pool.h Please note that diffs are not public domain; they are subject

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

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:31:15 UTC 2020 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/dev/nvmm/x86/nvmm_x86_vmx.c Please note that diffs are

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

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:27:24 UTC 2020 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: style and fix typo To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src/sys/arch/x86/include/specialreg.h Please

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

2020-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 18 16:23:43 UTC 2020 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.569 -r1.570 src/sys/arch/amd64/conf/GENERIC Please note that diffs are not

CVS commit: src/sys/dev/usb

2020-06-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 16 17:25:56 UTC 2020 Modified Files: src/sys/dev/usb: usbdi_util.c usbdi_util.h Log Message: remove unused To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/sys/dev/usb/usbdi_util.c cvs rdiff -u -r1.53

CVS commit: src/sys/netinet6

2020-06-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 16 17:12:18 UTC 2020 Modified Files: src/sys/netinet6: in6.c in6_var.h scope6.c scope6_var.h Log Message: remove unused To generate a diff of this commit: cvs rdiff -u -r1.280 -r1.281 src/sys/netinet6/in6.c cvs rdiff -u

CVS commit: src

2020-06-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 8 16:36:18 UTC 2020 Modified Files: src/distrib/sets/lists/comp: mi src/sys/sys: Makefile Log Message: install fault.h To generate a diff of this commit: cvs rdiff -u -r1.2333 -r1.2334

  1   2   3   4   5   6   7   8   9   10   >