CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:38:40 UTC 2019 Modified Files: src/sys/dev/usb: umcs.c Log Message: Fix error handling, to prevent kernel crashes when detaching an umcs0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:38:40 UTC 2019 Modified Files: src/sys/dev/usb: umcs.c Log Message: Fix error handling, to prevent kernel crashes when detaching an umcs0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:37:35 UTC 2019 Modified Files: src/sys/dev/usb: if_otus.c Log Message: Fix NULL derefs, to prevent kernel crashes when detaching an otus0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:37:35 UTC 2019 Modified Files: src/sys/dev/usb: if_otus.c Log Message: Fix NULL derefs, to prevent kernel crashes when detaching an otus0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:36:35 UTC 2019 Modified Files: src/sys/dev/usb: if_athn_usb.c if_athn_usb.h Log Message: Fix error handling, to prevent kernel crashes when detaching an athn0 device. Found with vHCI. To generate a diff of this

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:36:35 UTC 2019 Modified Files: src/sys/dev/usb: if_athn_usb.c if_athn_usb.h Log Message: Fix error handling, to prevent kernel crashes when detaching an athn0 device. Found with vHCI. To generate a diff of this

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:32:08 UTC 2019 Modified Files: src/sys/dev/usb: vhci.c Log Message: Fixes: - Insert at the tail and not the head. I just noticed that the packets were in inverted order in the fifos when attaching a virtual

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:32:08 UTC 2019 Modified Files: src/sys/dev/usb: vhci.c Log Message: Fixes: - Insert at the tail and not the head. I just noticed that the packets were in inverted order in the fifos when attaching a virtual

CVS commit: src

2019-09-14 Thread Maxime Villard
+1,1131 @@ +/* $NetBSD: vhci.c,v 1.1 2019/09/14 06:57:52 maxv Exp $ */ + +/* + * Copyright (c) 2019 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Maxime Villard. + * + * Redistribution and use in source and

CVS commit: src

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 06:57:52 UTC 2019 Modified Files: src/etc: MAKEDEV.tmpl src/sys/arch/amd64/conf: GENERIC src/sys/conf: files majors Added Files: src/sys/dev/usb: vhci.c Log Message: Add vHCI, a driver which

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

2019-09-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 13 14:19:13 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Always set hwcode on error. Useful for debugging. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

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

2019-09-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 13 14:19:13 UTC 2019 Modified Files: src/sys/dev/nvmm/x86: nvmm_x86_vmx.c Log Message: Always set hwcode on error. Useful for debugging. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

CVS commit: src/sys/net

2019-09-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 13 06:39:29 UTC 2019 Modified Files: src/sys/net: bpf.c Log Message: As I suspected, the KASSERT I added yesterday can fire if we try to process zero-sized packets. Skip them to prevent a type confusion that can trigger

CVS commit: src/sys/net

2019-09-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 13 06:39:29 UTC 2019 Modified Files: src/sys/net: bpf.c Log Message: As I suspected, the KASSERT I added yesterday can fire if we try to process zero-sized packets. Skip them to prevent a type confusion that can trigger

CVS commit: src/sys/net

2019-09-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 12 07:38:19 UTC 2019 Modified Files: src/sys/net: bpf.c Log Message: Add KASSERT to catch bugs. Something tells me it could easily fire. To generate a diff of this commit: cvs rdiff -u -r1.229 -r1.230 src/sys/net/bpf.c

CVS commit: src/sys/net

2019-09-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 12 07:38:19 UTC 2019 Modified Files: src/sys/net: bpf.c Log Message: Add KASSERT to catch bugs. Something tells me it could easily fire. To generate a diff of this commit: cvs rdiff -u -r1.229 -r1.230 src/sys/net/bpf.c

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

2019-09-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 12 06:39:47 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Fix a normally harmless race: initialize several global variables only on cpu0, so we don't get eg cpu1 re-initializing them while cpu0 is

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

2019-09-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 12 06:39:47 UTC 2019 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Fix a normally harmless race: initialize several global variables only on cpu0, so we don't get eg cpu1 re-initializing them while cpu0 is

CVS commit: src/sys/compat/linux/common

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 18:46:32 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were

CVS commit: src/sys/compat/linux/common

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 18:46:32 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were

CVS commit: src/sys

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 07:00:20 UTC 2019 Modified Files: src/sys/kern: sys_sig.c src/sys/sys: signalvar.h Log Message: Introduce sigaction_copy(), to copy sigaction structures without padding, and use it in sigaction1(). This is to fix

CVS commit: src/sys

2019-09-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Sep 8 07:00:20 UTC 2019 Modified Files: src/sys/kern: sys_sig.c src/sys/sys: signalvar.h Log Message: Introduce sigaction_copy(), to copy sigaction structures without padding, and use it in sigaction1(). This is to fix

CVS commit: src/sys/arch

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 18:56:01 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/amd64/conf: Makefile.amd64 files.amd64 src/sys/arch/xen/conf: files.xen Removed Files: src/sys/arch/amd64/amd64:

CVS commit: src/sys/arch

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 18:56:01 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/amd64/conf: Makefile.amd64 files.amd64 src/sys/arch/xen/conf: files.xen Removed Files: src/sys/arch/amd64/amd64:

CVS commit: src/sys/arch

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 18:33:16 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: cpufunc.h Log Message: Convert rdmsr_locked and wrmsr_locked to inlines.

CVS commit: src/sys/arch

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 18:33:16 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: cpufunc.S src/sys/arch/i386/i386: cpufunc.S src/sys/arch/x86/include: cpufunc.h Log Message: Convert rdmsr_locked and wrmsr_locked to inlines.

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

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 11:09:03 UTC 2019 Modified Files: src/sys/arch/x86/include: cpufunc.h Log Message: Add a memory barrier on wrmsr, because some MSRs control memory access rights (we don't use them though). Also add barriers on fninit and

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

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 11:09:03 UTC 2019 Modified Files: src/sys/arch/x86/include: cpufunc.h Log Message: Add a memory barrier on wrmsr, because some MSRs control memory access rights (we don't use them though). Also add barriers on fninit and

CVS commit: src/sys

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 10:24:01 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: bus_proto.h Log Message: Add KASAN instrumentation on the bus_space functions that handle buffers. To generate a diff of this commit: cvs

CVS commit: src/sys

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 10:24:01 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: bus_proto.h Log Message: Add KASAN instrumentation on the bus_space functions that handle buffers. To generate a diff of this commit: cvs

CVS commit: src/sys

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 09:46:08 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/lib/libkern: libkern.h Log Message: Add KASAN instrumentation for memmove. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys

2019-09-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 7 09:46:08 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/lib/libkern: libkern.h Log Message: Add KASAN instrumentation for memmove. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys/kern

2019-09-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 6 09:19:06 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Reorder for clarity, and localify pool_allocator_big[], should not be used outside. To generate a diff of this commit: cvs rdiff -u -r1.257

CVS commit: src/sys/kern

2019-09-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 6 09:19:06 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Reorder for clarity, and localify pool_allocator_big[], should not be used outside. To generate a diff of this commit: cvs rdiff -u -r1.257

CVS commit: src/sys

2019-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 5 16:19:17 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: atomic.h Log Message: Add KASAN instrumentation on the atomic functions. Use macros to simplify. These macros are prerequisites for future

CVS commit: src/sys

2019-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 5 16:19:17 UTC 2019 Modified Files: src/sys/kern: subr_asan.c src/sys/sys: atomic.h Log Message: Add KASAN instrumentation on the atomic functions. Use macros to simplify. These macros are prerequisites for future

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

2019-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 5 12:57:30 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: lock_stubs.S Log Message: Remove unused, and style. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/amd64/lock_stubs.S

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

2019-09-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 5 12:57:30 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: lock_stubs.S Log Message: Remove unused, and style. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/amd64/lock_stubs.S

CVS commit: src/sys/dev/usb

2019-08-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 27 17:24:51 UTC 2019 Modified Files: src/sys/dev/usb: if_upl.c Log Message: Fix bug, remove {0,0} because we switched to usb_lookup(). To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/dev/usb/if_upl.c

CVS commit: src/sys/kern

2019-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 26 10:35:35 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Revert r1.254, put back || for KASAN, some destructors like lwp_dtor() caused false positives. Needs more work. To generate a diff of this

CVS commit: src/sys/kern

2019-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 26 10:35:35 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Revert r1.254, put back || for KASAN, some destructors like lwp_dtor() caused false positives. Needs more work. To generate a diff of this

CVS commit: src/sys/kern

2019-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 26 10:19:08 UTC 2019 Modified Files: src/sys/kern: sys_descrip.c Log Message: Reject negative offsets, to prevent panics later in genfs_getpages(). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34

CVS commit: src/sys/kern

2019-08-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 26 10:19:08 UTC 2019 Modified Files: src/sys/kern: sys_descrip.c Log Message: Reject negative offsets, to prevent panics later in genfs_getpages(). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34

CVS commit: src/sys/dev

2019-08-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 25 07:10:30 UTC 2019 Modified Files: src/sys/dev: sequencer.c Log Message: Fix the size passed to memcpy, we only want 8 bytes. Found by KASAN. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/dev

2019-08-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 25 07:10:30 UTC 2019 Modified Files: src/sys/dev: sequencer.c Log Message: Fix the size passed to memcpy, we only want 8 bytes. Found by KASAN. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:21:13 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly.

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:21:13 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c Log Message: I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly.

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:18:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/compat/linux/common/linux_socket.c

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:18:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/compat/linux/common/linux_socket.c

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:08:35 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control(). To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 14:08:35 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control(). To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 12:33:25 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h Log Message: Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all

CVS commit: src/sys/compat/linux/common

2019-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 24 12:33:25 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h Log Message: Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all

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

2019-08-24 Thread Maxime Villard
Le 21/08/2019 à 23:47, matthew green a écrit : "Maxime Villard" writes: Module Name:src Committed By: maxv Date: Wed Aug 21 16:35:10 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Switch from printf to panic. These messages were

CVS commit: src/sys/miscfs/procfs

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 14:12:39 UTC 2019 Modified Files: src/sys/miscfs/procfs: procfs_linux.c Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/sys/miscfs/procfs/procfs_linux.c Please note that

CVS commit: src/sys/miscfs/procfs

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 14:12:39 UTC 2019 Modified Files: src/sys/miscfs/procfs: procfs_linux.c Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/sys/miscfs/procfs/procfs_linux.c Please note that

CVS commit: src/sys/compat/netbsd32

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:59:45 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_compat_43.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/compat/netbsd32/netbsd32_compat_43.c

CVS commit: src/sys/compat/netbsd32

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:59:45 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_compat_43.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/compat/netbsd32/netbsd32_compat_43.c

CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:49:12 UTC 2019 Modified Files: src/sys/compat/linux32/common: linux32_misc.c Log Message: Hum, don't forget the 'pid' argument, otherwise we're not gonna go very far. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:49:12 UTC 2019 Modified Files: src/sys/compat/linux32/common: linux32_misc.c Log Message: Hum, don't forget the 'pid' argument, otherwise we're not gonna go very far. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:36:45 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_statfs.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/common/linux_statfs.h Please

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 13:36:45 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_statfs.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/common/linux_statfs.h Please

CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:49:59 UTC 2019 Modified Files: src/sys/compat/linux32/common: linux32_ioctl.c Log Message: Put the printf under DEBUG_LINUX. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:49:59 UTC 2019 Modified Files: src/sys/compat/linux32/common: linux32_ioctl.c Log Message: Put the printf under DEBUG_LINUX. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/sys/compat/ossaudio

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:42:14 UTC 2019 Modified Files: src/sys/compat/ossaudio: ossaudio.c Log Message: Fix error handling, returns an errno, not -1. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/sys/compat/ossaudio

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:42:14 UTC 2019 Modified Files: src/sys/compat/ossaudio: ossaudio.c Log Message: Fix error handling, returns an errno, not -1. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:09:18 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.c src/sys/compat/linux32/common: linux32_termios.c Log Message: Add a default case, don't call sys_ioctl() with an uninitialized 'com'

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 12:09:18 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.c src/sys/compat/linux32/common: linux32_termios.c Log Message: Add a default case, don't call sys_ioctl() with an uninitialized 'com'

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 11:19:39 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_fcntl.h Log Message: When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later. To generate a diff of this

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 11:19:39 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_fcntl.h Log Message: When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later. To generate a diff of this

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

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 10:31:14 UTC 2019 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Remove printf. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

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

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 10:31:14 UTC 2019 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Remove printf. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

CVS commit: src/sys

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 10:22:15 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_ipc.c src/sys/kern: sysv_shm.c src/sys/sys: shm.h Log Message: Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound

CVS commit: src/sys

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 10:22:15 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_ipc.c src/sys/kern: sysv_shm.c src/sys/sys: shm.h Log Message: Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound

CVS commit: src/sys/dev/audio

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 09:41:26 UTC 2019 Modified Files: src/sys/dev/audio: audio.c Log Message: Add missing mutex, we were hitting a KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/audio/audio.c Please

CVS commit: src/sys/dev/audio

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 09:41:26 UTC 2019 Modified Files: src/sys/dev/audio: audio.c Log Message: Add missing mutex, we were hitting a KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/audio/audio.c Please

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 08:31:12 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_signal.c src/sys/compat/linux32/common: linux32_signal.c Log Message: Fix info leaks in sigaltstack. To generate a diff of this commit: cvs

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 08:31:12 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_signal.c src/sys/compat/linux32/common: linux32_signal.c Log Message: Fix info leaks in sigaltstack. To generate a diff of this commit: cvs

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 08:01:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_sysinfo.c Log Message: Fix info leaks in sysinfo(). To generate a diff of this commit: cvs

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 08:01:43 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_sysinfo.c Log Message: Fix info leaks in sysinfo(). To generate a diff of this commit: cvs

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 07:53:37 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c linux_misc.c src/sys/compat/linux32/common: linux32_dirent.c Log Message: Fix info leaks. To generate a diff of this commit: cvs

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 07:53:37 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c linux_misc.c src/sys/compat/linux32/common: linux32_dirent.c Log Message: Fix info leaks. To generate a diff of this commit: cvs

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:59:52 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/compat/linux/common/linux_termios.h

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:59:52 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_termios.h Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/compat/linux/common/linux_termios.h

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:54:54 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/common/linux_file64.c Please

CVS commit: src/sys/compat/linux/common

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:54:54 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_file64.c Log Message: Fix info leak. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/common/linux_file64.c Please

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:47:58 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_utsname.c Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.240

CVS commit: src/sys/compat

2019-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 23 06:47:58 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_utsname.c Log Message: Fix info leaks. To generate a diff of this commit: cvs rdiff -u -r1.240

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 17:14:05 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Style and cleanup. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/sys/arch/amd64/amd64/trap.c Please note that diffs

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 17:14:05 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Style and cleanup. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/sys/arch/amd64/amd64/trap.c Please note that diffs

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 17:06:36 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Remove the single-step check, it is wrong. There is no way we could single-step on these entry points. If there were, we would be running

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 17:06:36 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Remove the single-step check, it is wrong. There is no way we could single-step on these entry points. If there were, we would be running

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 16:35:10 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Switch from printf to panic. These messages were notorious for being unreadable, and at least a clean panic allows the user to inspect the

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 16:35:10 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Switch from printf to panic. These messages were notorious for being unreadable, and at least a clean panic allows the user to inspect the

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:46:56 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Style and remove dead stuff. To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:46:56 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Style and remove dead stuff. To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:33:12 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Don't depend on #ifdef USER_LDT in cpu_mcontext32_validate(), but rather on whether the proc uses a user-set LDT. Same as

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

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:33:12 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Don't depend on #ifdef USER_LDT in cpu_mcontext32_validate(), but rather on whether the proc uses a user-set LDT. Same as

CVS commit: src/sys/arch

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:16:07 UTC 2019 Modified Files: src/sys/arch/amd64/conf: XEN3_DOM0 XEN3_DOMU XEN3_PVHVM src/sys/arch/i386/conf: XEN3PAE_DOM0 XEN3PAE_DOMU XEN3PAE_PVHVM Log Message: No USER_LDT on Xen. To generate a diff of

CVS commit: src/sys/arch

2019-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 21 12:16:07 UTC 2019 Modified Files: src/sys/arch/amd64/conf: XEN3_DOM0 XEN3_DOMU XEN3_PVHVM src/sys/arch/i386/conf: XEN3PAE_DOM0 XEN3PAE_DOMU XEN3PAE_PVHVM Log Message: No USER_LDT on Xen. To generate a diff of

<    1   2   3   4   5   6   7   8   >