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 va

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 warni

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 warn

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 disable

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/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 RTTI.

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 de

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

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 -r1.

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 M

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

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

CVS commit: src/distrib/sets/lists

2018-08-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 06:07:02 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi src/distrib/sets/lists/man: mi Log Message: Fix distribution lists with MKCATPAGES=yes Add SCTP documentation. To generate a diff of this commi

CVS commit: src/lib/libc

2018-08-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 14:01:21 UTC 2018 Modified Files: src/lib/libc: Makefile Log Message: Restrict -fno-sanitize=function to Clang/LLVM only The base GCC version 6,x does not support this option. To generate a diff of this commit: cvs rd

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

2018-08-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 3 16:31:04 UTC 2018 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: Try to fix the evbppc-powerpc64 build Avoid "comparison between signed and unsigned integer expressions" on Big-Endian hosts. To generat

CVS commit: src/doc

2018-08-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Aug 5 13:07:33 UTC 2018 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace Drop the following entries: - PaX MPROTECT tests - done, implemented. - research of ipkdb(4) - it's gone, if it will be superseded

CVS commit: src/doc

2018-08-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Aug 5 13:10:04 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Update TODO.sanitizers Remove the following entries: - kernel-ubsan is done and merged with src/. - the no-ASRL boot.cfg option has been rejected

CVS commit: src/doc

2018-08-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Aug 5 13:24:56 UTC 2018 Modified Files: src/doc: CHANGES Log Message: Register micro-UBSan in CHANGES. There are 3 entries: - Import of the clean-room reimplementation of the runtime. - uUBSan (user-UBSan) integration with

CVS commit: src/lib/libc/gen

2018-08-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 10 20:35:52 UTC 2018 Modified Files: src/lib/libc/gen: timespec_get.3 Log Message: Merge FreeBSD improvements to the man-page of timespec_get(3) Keep NetBSD references instead of FreeBSD ones included in the FreeBSD versio

CVS commit: src/sys/sys

2018-08-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Aug 11 11:33:10 UTC 2018 Modified Files: src/sys/sys: sysctl.h Log Message: Remove unused symbols from Drop: P_PAXMPROTECT and P_PAXNOMPROTECT. These values are unused and the proper way to check PaX MPROTECT is to use CTL_P

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

2018-08-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 13 21:36:55 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add a new ATF ptrace(2) test: child_attach_to_its_stopped_parent Reuse the body of child_attach_to_its_parent for a test attaching t

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

2018-08-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 13 21:49:37 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add await_stopped() in t_ptrace_wait.h This is used in tests where a process awaits for a stopped process. To generate a diff of t

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

2018-08-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 13 22:00:45 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add a new ATF test parent_attach_to_its_stopped_child Reuse the body of parent_attach_to_its_child for a test attaching to a stopped

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

2018-08-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 13 22:59:52 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add a new ATF ptrace(2) test: tracer_attach_to_unrelated_stopped_process Reuse the body of tracer_sees_terminaton_before_the_parent_

CVS commit: src/lib/libpthread

2018-08-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Aug 19 02:10:42 UTC 2018 Modified Files: src/lib/libpthread: pthread.c Log Message: Drop a duplicate instruction line No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.151 -r1.152 src/lib/lib

CVS commit: src/doc

2018-08-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 21 23:34:56 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Mark kernel-asan as done (by maxv) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.sanitizers Please note that diffs are

CVS commit: src/doc

2018-08-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 28 20:11:58 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: TODO.sanitizers: Mark switch of syscall(2)/__syscall(2) to libc done Implemented in pkgsrc-wip, patches will land upstream review. To generate a

CVS commit: src/sys/external/bsd/drm2/i915drm

2018-09-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 21 11:27:13 UTC 2018 Modified Files: src/sys/external/bsd/drm2/i915drm: files.i915drmkms Log Message: Appease GCC with a kernel sanitizer Add -Wno-maybe-uninitialized for intel_sprite.c that is a false positive. To gener

CVS commit: src/sys/external/bsd/drm2/radeon

2018-09-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 21 11:31:50 UTC 2018 Modified Files: src/sys/external/bsd/drm2/radeon: files.radeon Log Message: Appease GCC with a kernel sanitizer Add -Wno-maybe-uninitialized for radeon, a compiler warning is triggered by a false posit

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2018-09-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 21 11:49:16 UTC 2018 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_dma.c Log Message: Avoid stack protector violation 'const int' is not a real constant in C and it cannot be used to define an array with a

CVS commit: src/lib/libcurses

2018-09-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 26 14:42:22 UTC 2018 Modified Files: src/lib/libcurses: get_wch.c getch.c Log Message: Correct detecting of terminal resize in curses(3) with keypad(,TRUE) A previous change fixed only keypad(,FALSE) scenarios. Handle cat

CVS commit: src/lib/libcurses

2018-09-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 26 18:51:45 UTC 2018 Modified Files: src/lib/libcurses: move.c Log Message: According to POSIX moving the cursor in curses(3) touches the window Mark the old and new lines as dirty, so they will be refreshed upon next call

CVS commit: src/lib/libcurses

2018-09-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 28 08:11:34 UTC 2018 Modified Files: src/lib/libcurses: curses_screen.3 Log Message: Fix typos in curses_screen.3 Fn -> Ft in the resize_term(3) prototype funcion -> function To generate a diff of this commit: cvs rdiff

CVS commit: src/lib/libcurses

2018-09-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Sep 29 11:23:18 UTC 2018 Modified Files: src/lib/libcurses: curses_background.3 Log Message: Correct function prototypes in curses_background(3) Fix prototypes for: bkgdset(3), wbkgd(3) and wbkgdset(3). To generate a diff of

CVS commit: src/lib/libcurses

2018-09-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Sep 29 21:52:29 UTC 2018 Modified Files: src/lib/libcurses: curses_underscore.3 Log Message: Fix function prototypes in curses_underscore.3 Correct function prototype of wunderscore(3) and wunderend(3). To generate a diff of

CVS commit: src/lib/libcurses

2018-09-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Sep 29 22:04:58 UTC 2018 Modified Files: src/lib/libcurses: curses_slk.3 Log Message: Fix the documented function prototype of slk_attr_set(3) Note the missing argument short pair. To generate a diff of this commit: cvs rdif

CVS commit: src/lib/libcurses

2018-09-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 30 10:08:13 UTC 2018 Modified Files: src/lib/libcurses: curses.h Log Message: Fix addchnstr() macro in curses.h Add a missing argument 'n'. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122 src/lib/libcurse

CVS commit: src/lib/libcurses

2018-09-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 30 10:55:00 UTC 2018 Modified Files: src/lib/libcurses: curses.h Log Message: curses.h: Fix typo in a comment of the word 'handling' No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.122

CVS commit: src/lib/libc/hash/sha2

2018-10-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Oct 9 11:36:35 UTC 2018 Modified Files: src/lib/libc/hash/sha2: sha2.3 Log Message: Drop Pad functions from sha2(3) This man-page first appeared before porting all the features to NetBSD and actually Pad ones were never porte

CVS commit: src/distrib/sets/lists/comp

2018-10-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Oct 27 07:24:58 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi Log Message: Register missing files in distrib sets Add curses_insch.0, mvinsch.0 and mvwinsch.0. To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/doc

2018-11-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Nov 17 01:08:55 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Move two entries in TODO.sanitizers to be done later (post -9 branch) - develop fts(3) interceptors (MSan, for ls(1), find(1), mtree(8) - investi

CVS commit: src/bin/sh

2018-11-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Nov 26 20:03:40 UTC 2018 Modified Files: src/bin/sh: redir.c Log Message: Fix typo: O_ALTIO -> O_ALT_IO Noted by @jbeich via GitHub. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/bin/sh/redir.c Please no

CVS commit: src/lib/libc/hash/sha1

2018-11-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Nov 27 03:29:36 UTC 2018 Modified Files: src/lib/libc/hash/sha1: sha1.3 Log Message: Document SHA1FileChunk(3) in sha1(3) Description taken from OpenBSD. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/li

CVS commit: src/lib/libc/hash/sha1

2018-11-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Nov 27 03:56:37 UTC 2018 Modified Files: src/lib/libc/hash/sha1: Makefile.inc Log Message: Fix link sha1.3 <- SHA1File.3 This SHA1File used to link to sha2(3). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/

CVS commit: src/sys/sys

2018-11-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Nov 28 05:19:13 UTC 2018 Modified Files: src/sys/sys: md4.h Log Message: Define MD4_DIGEST_STRING_LENGTH in This is a kind of a symbol existing in other implementations and included in headers for other hash APIs (like MD5).

CVS commit: src

2018-11-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Dec 1 02:43:43 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi src/lib/libc/cdb: Makefile.inc cdbr.3 Log Message: Correct the documentation of cdbr_open_mem(3) Fix function prototype in the man-page. Add link

CVS commit: src/doc

2018-12-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 4 18:39:03 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Update TODO.sanitizers Reflect with reality the fts(3) entry as handling compar callback is the only feature still missing. Add a new entry for ut

CVS commit: src/sys/sys

2018-12-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 4 22:06:37 UTC 2018 Modified Files: src/sys/sys: cdefs.h Log Message: Stop mangling __func__ for C++11 and newer Drop local logic between GCC 2.4 and GCC 2.6 that used __PRETTY_FUNCTION__. This caused __func__ to be redef

CVS commit: src/lib/libc/stdlib

2018-12-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 6 06:29:56 UTC 2018 Modified Files: src/lib/libc/stdlib: strtonum.c Log Message: Correct handling of minval > maxval in strtonum(3) The original implementation in OpenBSD returns "invalid" and avoids reading the input str

CVS commit: src/doc

2018-12-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 7 17:57:22 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Add new entry in TODO.sanitizers for NetBSD tar(1) enhancement request Added: - NetBSD tar: handle character escaping in file names (\\ \), needed

CVS commit: src/sys/uvm

2018-12-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Dec 17 06:53:01 UTC 2018 Modified Files: src/sys/uvm: uvm_map.c Log Message: Raise the fill_vmentries() E2BIG limit from 1MB to 10MB The previous limit was not enough for libFuzzer as it requires up to 2.5MB in test-suite. Al

CVS commit: src/distrib/sets/lists

2018-12-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 18 18:11:34 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi src/distrib/sets/lists/debug: mi Log Message: Correct libproc_p.a in distribution sets There was a stale entry under MKPROFILE=no option. To ge

CVS commit: src/doc

2018-12-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 27 21:20:40 UTC 2018 Modified Files: src/doc: TODO.sanitizers Log Message: Update TODO.sanitizers Mark as done: - upstream local patches, mostly to compiler-rt <- all patches submitted to review - investigate and address

CVS commit: src/sys/external/bsd/compiler_rt

2018-12-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Dec 29 16:27:12 UTC 2018 Modified Files: src/sys/external/bsd/compiler_rt: prepare-import.sh Log Message: compiler_rt: Update prepare-import.sh according to future updates Allow: asan, msan, lsan, tsan, ubsan, xray, intercepti

CVS import: src/sys/external/bsd/compiler_rt/dist

2019-01-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 8 05:40:59 UTC 2019 Update of /cvsroot/src/sys/external/bsd/compiler_rt/dist In directory ivanova.netbsd.org:/tmp/cvs-serv29706 Log Message: Import compiler-rt r350590. LLVM sanitizers on top of unmodified files from compiler-rt-

CVS commit: src/sys/external/bsd/compiler_rt/dist/lib/lsan

2019-01-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 8 05:44:58 UTC 2019 Added Files: src/sys/external/bsd/compiler_rt/dist/lib/lsan: lsan.cc lsan.h lsan_allocator.cc lsan_allocator.h lsan_common.cc lsan_common.h lsan_common_linux.cc lsan_interceptors.

CVS commit: src/doc

2019-01-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 8 06:34:23 UTC 2019 Modified Files: src/doc: CHANGES Log Message: Import compiler-rt r350590 LLVM sanitizers To generate a diff of this commit: cvs rdiff -u -r1.2487 -r1.2488 src/doc/CHANGES Please note that diffs are n

CVS commit: src/sys/modules/examples

2019-01-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Jan 17 20:47:42 UTC 2019 Modified Files: src/sys/modules/examples: Makefile README Added Files: src/sys/modules/examples/mapper: Makefile cmd_mapper.c mapper.c Log Message: Add a new example kernel module: mapper Basic

CVS commit: src/distrib/sets/lists/xserver

2019-01-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 22 03:11:32 UTC 2019 Modified Files: src/distrib/sets/lists/xserver: md.amd64 md.i386 Log Message: Fix MKCATPAGES=yes build Register vboxvideo.0 for i386 and amd64 sets. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/sys/kern

2019-01-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 22 03:44:45 UTC 2019 Modified Files: src/sys/kern: core_elf32.c Log Message: Fix code generation for programs with a faulty process map In case of any errors of scanning the segments reset their content to a default value

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

2019-01-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 22 03:47:45 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Mark traceme_vfork_crash_bus as no longer failing Fixed in src/sys/kern/core_elf32.c r. 1.58 Closes PR lib/53343 To generate a di

CVS commit: src/sys/kern

2019-01-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jan 23 13:38:30 UTC 2019 Modified Files: src/sys/kern: init_main.c Log Message: Change the place of initproc initialization The initproc variable cannot be initialized in start_init as there is a race between vfs_mountroot and

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

2019-02-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 5 02:57:10 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_x86_wait.h Log Message: Add missing break keywords in t_ptrace_wait* x86 tests Add missing break in switch() cases in dbregs_trap_variable(). Reported

CVS commit: src/sys/kern

2019-02-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 5 13:50:10 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: The panic for fopen(NULL, ... is back, fix it Restore the original behavior before merging the compat refactoring branch. Now: - no compat_10

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

2019-02-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 5 17:30:19 UTC 2019 Modified Files: src/tests/lib/libc/stdio: t_fopen.c Log Message: Add 2 new tests in t_fopen Added: - fopen_nullptr (without COMPAT_10) - fopen_nullptr_compat10 (with COMPAT_10) PR kern/53948 Review

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

2019-02-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 7 00:19:54 UTC 2019 Modified Files: src/sys/arch/amd64/include: ptrace.h Log Message: Define PTRACE_ILLEGAL_ASM for NetBSD/amd64 in ptrace.h Use ud2 instruction that is guaranteed to raise an invalid instruction exception

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

2019-02-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 7 00:24:59 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Enable 3 new ptrace(2) tests for SIGILL Add missing code for SIGILL verification and enable new SIGILL tests: - traceme_crash_ill

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

2019-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 7 23:03:33 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor GPR and FPR tests in t_ptrace_wait* tests This change deduplicates the code and puts all the test into shared function body

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

2019-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 8 00:29:41 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor definition of PT_STEP tests into single macro No functional change intended. To generate a diff of this commit: cvs rdiff

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

2019-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 8 00:31:47 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Correct a style in description of PT_STEP tests in t_ptrace_wait* To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src

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

2019-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 8 03:08:00 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor kill* test in t_ptrace_wait* Drop original scenario of kill1 (PT_CONTINUE(SIGKILL)) as it duplicates traceme_sendsignal_sim

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

2019-02-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 9 23:10:42 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add infinite_thread() for ptrace(2) ATF tests infinite_thread() is designed to be spawned as a pthread(3) function. It will be used

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

2019-02-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 10 02:04:06 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add initial pthread(3) tests in ATF t_prace_wait* tests There were tested few scenarios with native _lwp_create(2) functions, using

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

2019-02-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 10 02:13:45 UTC 2019 Modified Files: src/tests/lib/libc/sys: Makefile t_ptrace_amd64_wait.h t_ptrace_i386_wait.h t_ptrace_wait.c t_ptrace_wait.h t_ptrace_wait3.c t_ptrace_wait4.c t_ptrace_wait6.c

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

2019-02-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 11 04:13:28 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Initial refactoring of siginfo* tests in t_ptrace_wait* Drop test siginfo1 as duplicated with earlier tests. Rework and rename sigi

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

2019-02-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 11 04:20:06 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Drop siginfo5 from ATF tests in t_ptrace_wait* siginfo5 duplicates older tests verifying PTRACE_FORK. To generate a diff of this c

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

2019-02-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 11 05:51:20 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Merge siginfo6 into other PT_STEP tests in t_ptrace_wait* To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/tests/l

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

2019-02-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 11 05:59:00 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Rename the siginfo4 test in ATF t_ptrace_wait* The siginfo group of ptrace(2) tests has been replaced with new individual tests or m

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

2019-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 12 06:00:05 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor lwp_create1 and lwp_exit1 into trace_thread* in ptrace(2) tests New tests: - trace_thread1 - trace_thread2 - trace_threa

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

2019-02-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 12 21:35:35 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Rename signal1 to signal_mask_unrelated in t_ptrace_wait* No functional change intended. To generate a diff of this commit: cvs rd

CVS commit: src/sys/kern

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 13 14:55:29 UTC 2019 Modified Files: src/sys/kern: subr_asan.c Log Message: Align the kASan message style with kUBSan Print messages with initial 'ASan', simiarly to kUBSan printing 'UBSan'. To generate a diff of this co

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

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 13 17:17:02 UTC 2019 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: Fix kUBSan build with GCC7 Add missing __unreachable() and FALLTHROUGH keywords. Reported by To generate a diff of this commit: cvs rd

CVS commit: src/sys/kern

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 13 18:04:35 UTC 2019 Modified Files: src/sys/kern: files.kern Log Message: Silent UB alignment issues in acpica under kUBSan Pass -DACPI_MISALIGNMENT_NOT_SUPPORTED under kUBSan enabled. This option is dedicated for alignme

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

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 14 05:38:45 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new regression scenarios for crash signals in t_ptrace_wait* Verify correct behavior of crash signals (SIGTRAP, SIGBUS, SIGILL,

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

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 14 06:47:32 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Replace signal2 in t_ptrace_wait* with new tests Add new tests traceme_raisesignal_masked[1-8]. New tests to verify that masking (w

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

2019-02-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 15 04:11:39 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF tests traceme_raisesignal_ignored in t_ptrace_wait* Verify that ignoring (with SIG_IGN) in tracee does not stop tracer f

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

2019-02-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 15 05:06:38 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF tests traceme_signal{ignored,masked}_crash* in t_ptrace_wait* New tests verify that crashes (from trap signals) are deli

CVS commit: src/sys/dev/acpi/acpica

2019-02-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 15 20:48:57 UTC 2019 Modified Files: src/sys/dev/acpi/acpica: OsdHardware.c Log Message: Avoid UB in OsdHardware.c UBSan: Undefined Behavior in src/sys/dev/acpi/acpica/OsdHardware.c:265:17, left shift of 255 by 24 places c

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

2019-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 17 04:19:39 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add additional assert in traceme_signalmasked_crash t_ptrace_wait* tests Check whether signal mask is not reset on a trapsignal unde

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

2019-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 17 04:57:09 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add additional assert in traceme_signalignored_crash t_ptrace_wait* tests Check whether sigignore is not reset on a trapsignal under

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

2019-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 17 05:21:49 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Remove redundant test from ATF t_ptrace_wait* signal3 duplicates traceme_signalmasked_crash(SIGSEGV) To generate a diff of this co

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

2019-02-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 17 09:29:35 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF t_ptrace_wait* vfork(2) tests Add traceme_vfork_signalmasked_crash and traceme_vfork_signalignored_crash tests for crash

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

2019-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 20 05:20:05 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add minor improvements in unrelated_tracer_sees_crash in t_ptrace_wait* Switch forkee commands with asserts to be aligned for the pu

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

2019-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 20 07:18:18 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add more tests for variations of unrelated_tracer_sees_crash in ATF New tests: - unrelated_tracer_sees_signalmasked_crash_trap - u

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

2019-02-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 20 09:25:12 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Replace signal4 (PT_STEP) test with refactored ones with extra asserts New tests: step_signalmasked and step_signalignored. Assert

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

2019-02-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 20 09:50:09 UTC 2019 Modified Files: src/tests/lib/libc/misc: t_ubsan.c Log Message: Try to make load_invalid_value_bool portable to Big-Endian PR bin/53968 by Michael van Elst To generate a diff of this commit: cvs rdif

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

2019-02-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 20 11:40:41 UTC 2019 Modified Files: src/tests/lib/libc/misc: t_ubsan.c Log Message: Unify the style of t_ubsan tests Apply similar change for load_invalid_value_bool in test_load_invalid_value_enum. Follow up of PR bin/5

CVS commit: src

2019-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 23 03:10:06 UTC 2019 Modified Files: src/distrib/sets/lists/comp: mi src/distrib/sets/lists/man: mi src/distrib/sets/lists/tests: module.mi src/etc: MAKEDEV.tmpl src/share/man/man4: Makefile

<    9   10   11   12   13   14   15   >