CVS commit: src/share/man/man4

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 11:19:38 UTC 2019 Modified Files: src/share/man/man4: ugen.4 Log Message: add SYNOPSIS for how to make ugen capture specific vendor & product To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

CVS commit: src/share/man/man4

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 11:19:38 UTC 2019 Modified Files: src/share/man/man4: ugen.4 Log Message: add SYNOPSIS for how to make ugen capture specific vendor & product To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:48:51 UTC 2019 Modified Files: src/sys/dev/usb: ugensa.c Log Message: Fix error handling, to prevent kernel crashes when detaching an ugensa0 device. Also move usbd_add_drv_event() down, after we are sure the attach

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:48:51 UTC 2019 Modified Files: src/sys/dev/usb: ugensa.c Log Message: Fix error handling, to prevent kernel crashes when detaching an ugensa0 device. Also move usbd_add_drv_event() down, after we are sure the attach

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:50:16 UTC 2019 Modified Files: src/sys/dev/usb: udsbr.c Log Message: Fix NULL deref, to prevent kernel crashes when detaching an udsbr0 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:50:16 UTC 2019 Modified Files: src/sys/dev/usb: udsbr.c Log Message: Fix NULL deref, to prevent kernel crashes when detaching an udsbr0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/spi

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 15:12:12 UTC 2019 Modified Files: src/sys/dev/spi: m25p.c spiflash.c Log Message: On second thought revert that. Let's open this can of worms some other day. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:46:00 UTC 2019 Modified Files: src/sys/dev/usb: uipaq.c Log Message: Fix NULL deref, to prevent kernel crashes when detaching an uipaq0 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:46:00 UTC 2019 Modified Files: src/sys/dev/usb: uipaq.c Log Message: Fix NULL deref, to prevent kernel crashes when detaching an uipaq0 device. Found with vHCI. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/spi

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 15:12:12 UTC 2019 Modified Files: src/sys/dev/spi: m25p.c spiflash.c Log Message: On second thought revert that. Let's open this can of worms some other day. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

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

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

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

CVS commit: src/sys/dev/usb

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

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-14 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sat Sep 14 15:00:05 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: ira-color.c Log Message: Revert ira-color.c r1.2. "VAX does not fully populate the register move costs table, so do not access it w/o checks. Hack to

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-14 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sat Sep 14 15:00:05 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: ira-color.c Log Message: Revert ira-color.c r1.2. "VAX does not fully populate the register move costs table, so do not access it w/o checks. Hack to

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Kamil Rytarowski
On 13.09.2019 14:03, Robert Elz wrote: > | I think we need to specify the definition. Leak is a memory object > | without a pointer referencing it. > > I can accept that as a definition. But we also need to recognise that > there are no leaks after the program has finished. And the

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Kamil Rytarowski
On 14.09.2019 13:54, Martin Husemann wrote: > On Sat, Sep 14, 2019 at 01:45:08PM +0200, Kamil Rytarowski wrote: >> OK, thank you. So to sum it up. Plugging resource leaks costs time and >> human effort and this is what is not wanted by some people. For those >> who find it useless are not forced

CVS commit: src/sys/dev/usb

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

CVS commit: src/sys/dev/usb

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

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:40:31 UTC 2019 Modified Files: src/sys/dev/usb: if_urtw.c if_urtwreg.h Log Message: Fix error handling, to prevent kernel crashes when detaching an urtw0 device. Also, fail safely if we didn't recognize the RF chip,

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 12:41:32 UTC 2019 Modified Files: src/sys/dev/usb: urio.c Log Message: Fix error handling, to prevent kernel crashes when detaching an urio0 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:41:32 UTC 2019 Modified Files: src/sys/dev/usb: urio.c Log Message: Fix error handling, to prevent kernel crashes when detaching an urio0 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:40:31 UTC 2019 Modified Files: src/sys/dev/usb: if_urtw.c if_urtwreg.h Log Message: Fix error handling, to prevent kernel crashes when detaching an urtw0 device. Also, fail safely if we didn't recognize the RF chip,

CVS commit: src/sys/kern

2019-09-14 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 14 15:06:33 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Fix build. To generate a diff of this commit: cvs rdiff -u -r1.282 -r1.283 src/sys/kern/uipc_socket.c Please note that diffs are not public

CVS commit: src/sys/kern

2019-09-14 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Sep 14 15:06:33 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Fix build. To generate a diff of this commit: cvs rdiff -u -r1.282 -r1.283 src/sys/kern/uipc_socket.c Please note that diffs are not public

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 15:21:19 UTC 2019 Modified Files: src/sys/dev/usb: ustir.c Log Message: Fix error handling, to prevent kernel crashes at detach time. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 15:21:19 UTC 2019 Modified Files: src/sys/dev/usb: ustir.c Log Message: Fix error handling, to prevent kernel crashes at detach time. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Martin Husemann
On Sat, Sep 14, 2019 at 01:45:08PM +0200, Kamil Rytarowski wrote: > OK, thank you. So to sum it up. Plugging resource leaks costs time and > human effort and this is what is not wanted by some people. For those > who find it useless are not forced to do it, so can ignore it. For > others it can be

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: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/spi

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 14:41:23 UTC 2019 Modified Files: src/sys/dev/spi: m25p.c spiflash.c Log Message: KB -> kB To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/spi/m25p.c cvs rdiff -u -r1.21 -r1.22

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-14 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sat Sep 14 15:02:47 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: ira-color.c Log Message: Initialize the mode before accessing the move costs. This matches the code of the rest of the file, and might be acceptable by

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-14 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sat Sep 14 15:02:47 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: ira-color.c Log Message: Initialize the mode before accessing the move costs. This matches the code of the rest of the file, and might be acceptable by

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 15:24:23 UTC 2019 Modified Files: src/sys/dev/usb: udl.c udl.h Log Message: Fix error handling, to prevent kernel crashes at detach time. The code is slightly reorganized. Found via 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 15:24:23 UTC 2019 Modified Files: src/sys/dev/usb: udl.c udl.h Log Message: Fix error handling, to prevent kernel crashes at detach time. The code is slightly reorganized. Found via 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 15:22:31 UTC 2019 Modified Files: src/sys/dev/usb: usscanner.c Log Message: Fix NULL deref. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/usb/usscanner.c Please note that

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 15:22:31 UTC 2019 Modified Files: src/sys/dev/usb: usscanner.c Log Message: Fix NULL deref. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/usb/usscanner.c Please note that

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 15:19:52 UTC 2019 Modified Files: src/sys/dev/usb: uvisor.c Log Message: Fix possible NULL deref. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/dev/usb/uvisor.c Please note that

CVS commit: src/sys/dev/usb

2019-09-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 14 15:19:52 UTC 2019 Modified Files: src/sys/dev/usb: uvisor.c Log Message: Fix possible NULL deref. Found by vHCI. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/dev/usb/uvisor.c Please note that

CVS commit: src/sys/kern

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 14:09:54 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: PT/54527: Anthony Mallet: Don't clear socket errors for MSG_PEEK. To generate a diff of this commit: cvs rdiff -u -r1.281 -r1.282

CVS commit: src/sys/kern

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 14:09:54 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: PT/54527: Anthony Mallet: Don't clear socket errors for MSG_PEEK. To generate a diff of this commit: cvs rdiff -u -r1.281 -r1.282

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Alexander Nasonov
Martin Husemann wrote: > On Sat, Sep 14, 2019 at 01:45:08PM +0200, Kamil Rytarowski wrote: > > Thanks! I will go for __NO_LEAKS ifdef. > > But it is not a good idea to clutter perfectly fine sources with such > #ifdefs and unused/untested/likely broken code (even if it does not affect > the

CVS commit: src/sys/dev/pci

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 21:09:00 UTC 2019 Modified Files: src/sys/dev/pci: if_vioif.c Log Message: - KNF - fix typo in error message - use aprint* everywhere - use loops to initialize mac - remove unused variables To generate a diff of

CVS commit: src/sys/dev/pci

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 21:09:00 UTC 2019 Modified Files: src/sys/dev/pci: if_vioif.c Log Message: - KNF - fix typo in error message - use aprint* everywhere - use loops to initialize mac - remove unused variables To generate a diff of

Re: Leak Sanitizer - how to suppress leaks,Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread aran
From: Kamil Rytarowski Subject: Re: Leak Sanitizer - how to suppress leaks,Re: Leak Sanitizer - how to suppress leaks Date: Sat, 14 Sep 2019 13:45:08 +0200 > On 13.09.2019 14:03, Robert Elz wrote: > >> | I think we need to specify the definition. Leak is a memory object >> | without a

CVS commit: src/sys/kern

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 21:23:34 UTC 2019 Modified Files: src/sys/kern: vfs_getcwd.c Log Message: - add missing error check - use '\0' for char const To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/kern/vfs_getcwd.c

CVS commit: src/sys/kern

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 14 21:23:34 UTC 2019 Modified Files: src/sys/kern: vfs_getcwd.c Log Message: - add missing error check - use '\0' for char const To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/kern/vfs_getcwd.c

CVS commit: src/sys

2019-09-14 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Sep 14 17:11:39 UTC 2019 Modified Files: src/sys/arch/dreamcast/dev/g1: wdc_g1.c src/sys/dev/ic: wdc.c wdcvar.h Log Message: Restore interface to pass a MD reset function to MI wdcprobe(). Fixes silent hang on G1IDE

CVS commit: src/sys

2019-09-14 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Sep 14 17:11:39 UTC 2019 Modified Files: src/sys/arch/dreamcast/dev/g1: wdc_g1.c src/sys/dev/ic: wdc.c wdcvar.h Log Message: Restore interface to pass a MD reset function to MI wdcprobe(). Fixes silent hang on G1IDE

CVS commit: src/lib/libc/gen

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 01:03:24 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: fix wrong names and add markup To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/lib/libc/gen/sysctl.3 Please note that

CVS commit: src/lib/libc/gen

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 01:03:24 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: fix wrong names and add markup To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/lib/libc/gen/sysctl.3 Please note that

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/sys/dev/spi

2019-09-14 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sat Sep 14 14:41:23 UTC 2019 Modified Files: src/sys/dev/spi: m25p.c spiflash.c Log Message: KB -> kB To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/spi/m25p.c cvs rdiff -u -r1.21 -r1.22