CVS commit: src/share/man/man4

2018-08-02 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Aug 3 05:27:16 UTC 2018 Modified Files: src/share/man/man4: ifmedia.4 Log Message: Add some missing IFM_* entries. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/share/man/man4/ifmedia.4 Please note

CVS commit: src/share/man/man4

2018-08-02 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Aug 3 05:27:16 UTC 2018 Modified Files: src/share/man/man4: ifmedia.4 Log Message: Add some missing IFM_* entries. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/share/man/man4/ifmedia.4 Please note

Re: CVS commit: src/sys/kern

2018-08-02 Thread Kamil Rytarowski
On 02.08.2018 12:23, Kamil Rytarowski wrote: > I will defer the research on a proper solution in the networking code as > I'm swamped by the development and improving of tool catching > misalignment access. I will be done with it soon. > For the record, I've landed the kUBSan implementation.

CVS commit: src/sys

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:35:20 UTC 2018 Modified Files: src/sys/arch/amd64/conf: GENERIC src/sys/kern: files.kern Log Message: Register kUBSan in the GENERIC amd64 kernel config Tested with GCC. To generate a diff of this commit:

CVS commit: src/sys

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:35:20 UTC 2018 Modified Files: src/sys/arch/amd64/conf: GENERIC src/sys/kern: files.kern Log Message: Register kUBSan in the GENERIC amd64 kernel config Tested with GCC. To generate a diff of this commit:

CVS commit: src/crypto/external/bsd/openssh/dist

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:32:12 UTC 2018 Modified Files: src/crypto/external/bsd/openssh/dist: sshkey.c Log Message: Appease GCC in the openssh code when built with UBSan Initialize eg to NULL in sshkey_ecdsa_key_to_nid(). The compiler warns

CVS commit: src/crypto/external/bsd/openssh/dist

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:32:12 UTC 2018 Modified Files: src/crypto/external/bsd/openssh/dist: sshkey.c Log Message: Appease GCC in the openssh code when built with UBSan Initialize eg to NULL in sshkey_ecdsa_key_to_nid(). The compiler warns

CVS commit: src/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:29:35 UTC 2018 Modified Files: src/lib/libc/misc: Makefile.inc Log Message: Add a support to build ubsan.c in libc Under the condition of MKLIBCSANITIZER==yes link ubsan.c into libc. This is a clean-room

CVS commit: src/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:29:35 UTC 2018 Modified Files: src/lib/libc/misc: Makefile.inc Log Message: Add a support to build ubsan.c in libc Under the condition of MKLIBCSANITIZER==yes link ubsan.c into libc. This is a clean-room

CVS commit: src

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:24:41 UTC 2018 Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/etc/mtree: NetBSD.dist.tests src/tests/lib/libc: Makefile Log Message: Register micro-UBSan

CVS commit: src

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:24:41 UTC 2018 Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/etc/mtree: NetBSD.dist.tests src/tests/lib/libc: Makefile Log Message: Register micro-UBSan

CVS commit: src/tests/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:18:40 UTC 2018 Added Files: src/tests/lib/libc/misc: Makefile t_ubsan.c t_ubsanxx.cpp Log Message: Import micro-UBSan ATF tests These tests are used only when a distribution is built without MKSANITIZER and without

CVS commit: src/tests/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 04:18:40 UTC 2018 Added Files: src/tests/lib/libc/misc: Makefile t_ubsan.c t_ubsanxx.cpp Log Message: Import micro-UBSan ATF tests These tests are used only when a distribution is built without MKSANITIZER and without

CVS commit: src/common/lib/libc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 03:35:17 UTC 2018 Modified Files: src/common/lib/libc: Makefile.inc Log Message: Register a new directory in common/lib/libc/misc Registe misc/ with ubsan.c. To generate a diff of this commit: cvs rdiff -u -r1.17

CVS commit: src/common/lib/libc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 03:35:17 UTC 2018 Modified Files: src/common/lib/libc: Makefile.inc Log Message: Register a new directory in common/lib/libc/misc Registe misc/ with ubsan.c. To generate a diff of this commit: cvs rdiff -u -r1.17

Re: ubsan.c (was: CVS commit: src/common/lib/libc/misc)

2018-08-02 Thread Kamil Rytarowski
On 03.08.2018 04:48, Paul Goyette wrote: > If there are no licensing issues or concerns, then please describe the > real reason(s) for avoiding KNF. > > As discussed, we have removed the comment and drop the unnecessary part from CVS log. signature.asc Description: OpenPGP digital signature

CVS commit: src/common/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 03:12:32 UTC 2018 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: Tidy up the comment in ubsan.c As noted, style has no impact on the comparison of a similar code. This version is a reimplementation from

CVS commit: src/common/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 03:12:32 UTC 2018 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: Tidy up the comment in ubsan.c As noted, style has no impact on the comparison of a similar code. This version is a reimplementation from

Re: ubsan.c (was: CVS commit: src/common/lib/libc/misc)

2018-08-02 Thread Paul Goyette
Module Name:src Committed By: kamil Date: Fri Aug 3 02:05:43 UTC 2018 Added Files: src/common/lib/libc/misc: ubsan.c Log Message: Import micro-UBSan (ubsan.c) This file does not follow the regular KNF style, due to potential licensing concerns. If there are

CVS commit: src/share/mk

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:34:31 UTC 2018 Modified Files: src/share/mk: bsd.sys.mk Log Message: Allow to overwrite sanitizer flags for userland Always define -fsanitize=${USE_SANITIZER} and -fsanitize=${USE_LIBCSANITIZER} before other flags

CVS commit: src/share/mk

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:34:31 UTC 2018 Modified Files: src/share/mk: bsd.sys.mk Log Message: Allow to overwrite sanitizer flags for userland Always define -fsanitize=${USE_SANITIZER} and -fsanitize=${USE_LIBCSANITIZER} before other flags

CVS commit: src/lib/libc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:29:35 UTC 2018 Modified Files: src/lib/libc: Makefile Log Message: Disable sanitization of -fsanitize=function in libc Generated code for the checks (in at least libunwind) depends on the C++ runtime feature of

CVS commit: src/lib/libc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:29:35 UTC 2018 Modified Files: src/lib/libc: Makefile Log Message: Disable sanitization of -fsanitize=function in libc Generated code for the checks (in at least libunwind) depends on the C++ runtime feature of

CVS commit: src/external/mit/xorg/server/drivers/xf86-video-wsfb

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:26:00 UTC 2018 Modified Files: src/external/mit/xorg/server/drivers/xf86-video-wsfb: Makefile Log Message: Fix xf86-video-wsfb build with Clang/LLVM The code uses non-orthodox types in format strings. Add a compiler

CVS commit: src/external/mit/xorg/server/drivers/xf86-video-wsfb

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:26:00 UTC 2018 Modified Files: src/external/mit/xorg/server/drivers/xf86-video-wsfb: Makefile Log Message: Fix xf86-video-wsfb build with Clang/LLVM The code uses non-orthodox types in format strings. Add a compiler

CVS commit: src/external/mit/xorg/lib/libXfont2

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:23:09 UTC 2018 Modified Files: src/external/mit/xorg/lib/libXfont2: Makefile Log Message: Fix libXfont2 build with Clang/LLVM on i386 The code uses non-orthodox types in format strings. Add a compiler flag to

CVS commit: src/external/mit/xorg/lib/libXfont2

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:23:09 UTC 2018 Modified Files: src/external/mit/xorg/lib/libXfont2: Makefile Log Message: Fix libXfont2 build with Clang/LLVM on i386 The code uses non-orthodox types in format strings. Add a compiler flag to

CVS commit: src/external/mit/xorg/lib/libGLU

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:20:21 UTC 2018 Modified Files: src/external/mit/xorg/lib/libGLU: Makefile Log Message: Fix libGLU build with Clang/LLVM The register keyword is deprecated in newer C++ standards. Add a compiler flag to disable a

CVS commit: src/external/mit/xorg/lib/libGLU

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:20:21 UTC 2018 Modified Files: src/external/mit/xorg/lib/libGLU: Makefile Log Message: Fix libGLU build with Clang/LLVM The register keyword is deprecated in newer C++ standards. Add a compiler flag to disable a

CVS commit: src/external/mit/xorg/lib/dri7

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:19:12 UTC 2018 Modified Files: src/external/mit/xorg/lib/dri7: libglsl7.mk Log Message: Fix dri7 build with Clang/LLVM The register keyword is deprecated in newer C++ standards. Add a compiler flag to disable a

CVS commit: src/external/mit/xorg/lib/dri7

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:19:12 UTC 2018 Modified Files: src/external/mit/xorg/lib/dri7: libglsl7.mk Log Message: Fix dri7 build with Clang/LLVM The register keyword is deprecated in newer C++ standards. Add a compiler flag to disable a

CVS commit: src/external/bsd/dhcpcd/dist/src

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:17:33 UTC 2018 Modified Files: src/external/bsd/dhcpcd/dist/src: dhcp.c Log Message: Fix build failure in dhcpcd under uUBSan GCC with -fsanitize=undefiend detects a potential overflow in the code. Cast the return

CVS commit: src/external/bsd/dhcpcd/dist/src

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:17:33 UTC 2018 Modified Files: src/external/bsd/dhcpcd/dist/src: dhcp.c Log Message: Fix build failure in dhcpcd under uUBSan GCC with -fsanitize=undefiend detects a potential overflow in the code. Cast the return

CVS commit: src/common/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:05:43 UTC 2018 Added Files: src/common/lib/libc/misc: ubsan.c Log Message: Import micro-UBSan (ubsan.c) This is a reimplementation of the Undefined Behavior Sanitizer with the following properties: - pure C

CVS commit: src/common/lib/libc/misc

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 02:05:43 UTC 2018 Added Files: src/common/lib/libc/misc: ubsan.c Log Message: Import micro-UBSan (ubsan.c) This is a reimplementation of the Undefined Behavior Sanitizer with the following properties: - pure C

CVS commit: src/doc

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 17:34:51 UTC 2018 Modified Files: src/doc: TODO.kaslr Log Message: Mark two entries as done. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/doc/TODO.kaslr Please note that diffs are not public domain;

CVS commit: src/doc

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 17:34:51 UTC 2018 Modified Files: src/doc: TODO.kaslr Log Message: Mark two entries as done. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/doc/TODO.kaslr Please note that diffs are not public domain;

CVS commit: src/sys/arch/amd64

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 17:18:00 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: prekern.c src/sys/arch/amd64/stand/prekern: prekern.c Log Message: Add a "version" field in the prekern_args structure. The kernel checks it, and if

CVS commit: src/sys/arch/amd64

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 17:18:00 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: prekern.c src/sys/arch/amd64/stand/prekern: prekern.c Log Message: Add a "version" field in the prekern_args structure. The kernel checks it, and if

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

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:58:00 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: prekern.c Log Message: Don't forget to call init_slotspace when we're booted via the prekern. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

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

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:58:00 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: prekern.c Log Message: Don't forget to call init_slotspace when we're booted via the prekern. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.sbin/npf

2018-08-02 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Thu Aug 2 16:42:12 UTC 2018 Modified Files: src/usr.sbin/npf: npf.7 Log Message: Use Nm macro Move history details to the HISTORY section Spelling Be less meta & clarify the website should be consulted. To generate a diff of

CVS commit: src/usr.sbin/npf

2018-08-02 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Thu Aug 2 16:42:12 UTC 2018 Modified Files: src/usr.sbin/npf: npf.7 Log Message: Use Nm macro Move history details to the HISTORY section Spelling Be less meta & clarify the website should be consulted. To generate a diff of

CVS commit: src

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:26:09 UTC 2018 Modified Files: src/distrib/notes/common: contents src/etc/etc.amd64: Makefile.inc Log Message: Distribute GENERIC_KASLR on amd64. To generate a diff of this commit: cvs rdiff -u -r1.176

CVS commit: src

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:26:09 UTC 2018 Modified Files: src/distrib/notes/common: contents src/etc/etc.amd64: Makefile.inc Log Message: Distribute GENERIC_KASLR on amd64. To generate a diff of this commit: cvs rdiff -u -r1.176

CVS commit: src/distrib/notes/common

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:22:43 UTC 2018 Modified Files: src/distrib/notes/common: contents Log Message: Remove netbsd-INSTALL_XEN3_DOMU.gz (it doesn't exist anymore), and add netbsd-XEN3PAE_DOM0.gz (has always existed, but was apparently

CVS commit: src/distrib/notes/common

2018-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 2 16:22:43 UTC 2018 Modified Files: src/distrib/notes/common: contents Log Message: Remove netbsd-INSTALL_XEN3_DOMU.gz (it doesn't exist anymore), and add netbsd-XEN3PAE_DOM0.gz (has always existed, but was apparently

Re: CVS commit: src/sys/kern

2018-08-02 Thread Kamil Rytarowski
On 02.08.2018 12:09, Masanobu SAITOH wrote: > On 2018/08/02 18:10, Kamil Rytarowski wrote: >> On 02.08.2018 06:33, Masanobu SAITOH wrote: >>> On 2018/08/02 13:28, SAITOH Masanobu wrote: Module Name:    src Committed By:    msaitoh Date:    Thu Aug  2 04:28:56 UTC 2018

CVS commit: src/lib/libc/net

2018-08-02 Thread Robert Swindells
Module Name:src Committed By: rjs Date: Thu Aug 2 10:18:19 UTC 2018 Added Files: src/lib/libc/net: sctp_recvmsg.3 Log Message: Add missing SCTP manpage. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/libc/net/sctp_recvmsg.3 Please note that diffs

CVS commit: src/lib/libc/net

2018-08-02 Thread Robert Swindells
Module Name:src Committed By: rjs Date: Thu Aug 2 10:18:19 UTC 2018 Added Files: src/lib/libc/net: sctp_recvmsg.3 Log Message: Add missing SCTP manpage. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/libc/net/sctp_recvmsg.3 Please note that diffs

Re: CVS commit: src/sys/kern

2018-08-02 Thread Masanobu SAITOH
On 2018/08/02 18:10, Kamil Rytarowski wrote: On 02.08.2018 06:33, Masanobu SAITOH wrote: On 2018/08/02 13:28, SAITOH Masanobu wrote: Module Name:    src Committed By:    msaitoh Date:    Thu Aug  2 04:28:56 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf2.c Log Message: Adjust

Re: CVS commit: src/sys/kern

2018-08-02 Thread Kamil Rytarowski
On 02.08.2018 06:33, Masanobu SAITOH wrote: > On 2018/08/02 13:28, SAITOH Masanobu wrote: >> Module Name:    src >> Committed By:    msaitoh >> Date:    Thu Aug  2 04:28:56 UTC 2018 >> >> Modified Files: >> src/sys/kern: uipc_mbuf2.c >> >> Log Message: >> Adjust alignment in m_pulldown().

CVS commit: src

2018-08-02 Thread Robert Swindells
Module Name:src Committed By: rjs Date: Thu Aug 2 08:40:48 UTC 2018 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/comp: mi src/distrib/sets/lists/debug: shl.mi src/lib/libc: shlib_version src/lib/libc/net:

CVS commit: src

2018-08-02 Thread Robert Swindells
Module Name:src Committed By: rjs Date: Thu Aug 2 08:40:48 UTC 2018 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/comp: mi src/distrib/sets/lists/debug: shl.mi src/lib/libc: shlib_version src/lib/libc/net:

CVS commit: src/external/gpl3/gcc.old/usr.bin/include/sanitizer

2018-08-02 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Aug 2 07:47:30 UTC 2018 Modified Files: src/external/gpl3/gcc.old/usr.bin/include/sanitizer: Makefile Log Message: fix the sanitizer include path. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \

CVS commit: src/external/gpl3/gcc.old/usr.bin/include/sanitizer

2018-08-02 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Aug 2 07:47:30 UTC 2018 Modified Files: src/external/gpl3/gcc.old/usr.bin/include/sanitizer: Makefile Log Message: fix the sanitizer include path. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \

CVS commit: src/sys/dev/usb

2018-08-02 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 2 06:09:05 UTC 2018 Modified Files: src/sys/dev/usb: if_athn_usb.c if_atu.c if_aue.c if_axe.c if_axen.c if_cue.c if_otus.c if_rum.c if_run.c if_smsc.c if_udav.c if_upgt.c if_ural.c if_url.c

CVS commit: src/sys/dev/usb

2018-08-02 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 2 06:09:05 UTC 2018 Modified Files: src/sys/dev/usb: if_athn_usb.c if_atu.c if_aue.c if_axe.c if_axen.c if_cue.c if_otus.c if_rum.c if_run.c if_smsc.c if_udav.c if_upgt.c if_ural.c if_url.c