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

2018-05-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 27 08:08:24 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Fix ATF ptrace(2) bytes_transfer_piod_read_auxv test Make the initial buffer larger to stop triggering the runtime assert about its

CVS commit: src/sys/compat/netbsd32

2018-05-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 26 21:07:47 UTC 2018 Modified Files: src/sys/compat/netbsd32: netbsd32_sysctl.c Log Message: Fix sysctl(3):vm.minaddress in compat_netbsd32(8) Cast minaddress from LP64-specific long (64-bit) to 32-bit long (int). This

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

2018-05-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 26 20:27:48 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_amd64_wait.h t_ptrace_x86_wait.h Log Message: Port the CVE 2018-8897 mitigation to i386 ATF ptrace(2) tests On i386 there is no need to switch

CVS commit: src/sys/compat/netbsd32

2018-05-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 26 18:18:19 UTC 2018 Modified Files: src/sys/compat/netbsd32: netbsd32_sysctl.c Log Message: Handle vm.maxaddress in compat_netbsd32(8) Return VM_MAXUSER_ADDRESS32 instead of the 64-bit specific address. Use CTLTYPE_INT

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

2018-05-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 26 15:32:31 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the PT_WRITE*/PT_READ* and PIOD_* ATF ptrace(2) tests Merge all the PT_WRITE*/PT_READ* and PIOD_* the test cases into the

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

2018-05-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 26 15:15:17 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Introduce can_we_write_to_text() to ATF ptrace(2) tests The purpose of this function is to detect whether a tracer can write to the

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

2018-05-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 24 08:28:40 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Try to fix 32-bit build Cast pointer to uintptr_t rather than uintmax_t. To generate a diff of this commit: cvs rdiff -u -r1.6

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

2018-05-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 23:56:08 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Merge the eventmask[1-6] ATF ptrace(2) tests into a shared function body While there, rename the tests to: -

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

2018-05-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 13:51:28 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Extend traceme_vfork_breakpoint in ATF ptrace(2) tests for more scenarios traceme_vfork_breakpoint used to test SIGTRAP event.

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

2018-05-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 13:18:09 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add new auxiliary functions in ATF ptrace(2) tests Introduce: - trigger_trap() - trigger_segv() - trigger_ill() - trigger_fpe()

CVS commit: src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common

2018-05-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 11:16:13 UTC 2018 Modified Files: src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Cherry-pick upstream patch for internal_mmap() in GCC(.old) sanitizers Fix

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

2018-05-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 11:14:49 UTC 2018 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Cherry-pick upstream patch for internal_mmap() in GCC sanitizers Fix

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

2018-05-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 23 01:29:43 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the attach[1-8] and race1 ATF t_ptrace_wait* tests Share code in: attach1, attach2 and race1 in the same function body.

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

2018-05-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 22 21:03:09 UTC 2018 Modified Files: src/sys/arch/i386/include: ptrace.h Log Message: Define PTRACE_BREAKPOINT_ASM for i386 in the MD part of x86 uses int3 for software breakpoint on i386 and amd64. Sponsored by To

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

2018-05-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 22 10:48:06 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF ptrace(2) tests: traceme_sendsignal_{masked,ignored}[1-3] These tests emit signal from a tracer/parent to the child and

CVS commit: src/share/man/man7

2018-05-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 22 02:31:57 UTC 2018 Modified Files: src/share/man/man7: signal.7 Log Message: Minor update to signal(7) Note that SIGCHLD is not just a child exit signal. Note that SIGIOT is PDP-11 specific signal. Sponsored by To

CVS commit: src/tests/kernel

2018-05-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 22 04:32:56 UTC 2018 Modified Files: src/tests/kernel: h_segv.c t_trapsignal.sh Log Message: Extend ATF tests in t_trapsignal.sh to verify software breakpoint traps There are at least four types of SIGTRAP events: -

CVS commit: src/lib/libc/sys

2018-05-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 22 03:07:50 UTC 2018 Modified Files: src/lib/libc/sys: sigaction.2 Log Message: Minor improvement in sigaction(2) Note that SIGCHLD covers process continued event. Sponsored by To generate a diff of this commit: cvs

CVS commit: src/tests/kernel

2018-05-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 21 08:49:03 UTC 2018 Modified Files: src/tests/kernel: h_segv.c t_trapsignal.sh Log Message: Add new ATF test: t_trapsignal:trap_ignore Test ignored trap with right exit code. This test passes. Sponsored by To

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

2018-05-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 20 23:47:16 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor and enable the signal3 ATF ptrace(2) test Adapt the test to be independent from the software breakpoint trap behavior,

CVS commit: src/sys

2018-05-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 20 04:00:35 UTC 2018 Modified Files: src/sys/kern: kern_sig.c sys_ptrace_common.c src/sys/sys: signalvar.h Log Message: Make stopsigmask a non-static symbol now as it's used in ptrace(2) code This is a missing

CVS commit: src

2018-05-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 20 03:51:32 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Fix and enable traceme_signal_nohandler2 in ATF ptrace(2) tests traceme_signal_nohandler2

CVS commit: src/lib/libc/sys

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:39:21 UTC 2018 Modified Files: src/lib/libc/sys: vfork.2 Log Message: Note in vfork(2) that SIGTSTP is masked SIGSTOP is no longer masked, but it was never documented. Sponsored by To generate a diff of this

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

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:25:21 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Cover SIGTSTP, SIGTTIN and SIGTTOU in traceme_vfork_raise ATF tests SIGTSTP, SIGTTIN and SIGTTOU are special case signals ignored

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

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:10:16 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_fork.c Log Message: Reflect reality in the comment The watcher process is emitting SIGKILL, not SIGTERM. Sponsored by To generate a diff of this commit:

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

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:07:42 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Enable traceme_vfork_raise2 in ATF ptrace(2) tests raise(SIGSTOP) is now handled correctly by the kernel, in a child that

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

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:04:09 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add new auxiliary functions in t_ptrace_wait.h New functions: - FORKEE_ASSERT_NEQ() - await_stopped_child() Both will be used

CVS commit: src/sys/kern

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:01:42 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Stop masking raise(SIGSTOP) in a vfork(2)ed child that called PT_TRACE_ME. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.345

CVS commit: src

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 02:42:59 UTC 2018 Modified Files: src/sys/kern: kern_sig.c src/tests/lib/libc/sys: t_fork.c Log Message: Stop masking SIGSTOP in a vfork(2)ed child Keep the traditional BSD behavior masking SIGTSTP, SIGTTIN and

CVS commit: src

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 18 06:39:59 UTC 2018 Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/tests/lib/libc/sys: Makefile Added Files: src/tests/lib/libc/sys: t_fork.c t_vfork.c Log

CVS commit: src/tests/kernel

2018-05-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 18 00:25:30 UTC 2018 Modified Files: src/tests/kernel: t_zombie.c Log Message: Correct assert in ATF t_zombie test A failure is reported with -1, not 1. Sponsored by To generate a diff of this commit: cvs rdiff -u

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

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 03:52:35 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add extra asserts in three ATF ptrace(2) tests In traceme* tests after validate_status_stopped() include additional check the

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

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 03:18:38 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Improve the description of traceme_vfork_breakpoint (ATF ptrace(2) test) Sponsored by To generate a diff of this commit: cvs

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

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 02:47:25 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add a new ATF ptrace(2) test: traceme_vfork_exec Verify PT_TRACE_ME followed by exec(3) in a vfork(2)ed child. This tests passes

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

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 01:36:29 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Improve the description of traceme_vfork_raise in ATF ptrace(2) tests Set new description to: - "Verify PT_TRACE_ME followed by

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

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 01:27:27 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add a new ATF ptrace(2) test: traceme_vfork_breakpoint Verify software breakpoint in a vfork(2)ed child. The expected behavior is

CVS commit: src

2018-05-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 16 00:42:16 UTC 2018 Modified Files: src/sys/kern: kern_sig.c src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Correct handling of: vfork(2) + PT_TRACE_ME + raise(2) Follow the FreeBSD approach of not routing

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

2018-05-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 14 12:44:40 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace.c Log Message: Revert previous change in t_ptrace.c By a mistake this file started to include This is not needed. The include was intended to be add

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

2018-05-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 14 12:42:34 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_amd64_wait.h Log Message: Simplify the x86_64_cve_2018_8897 ATF ptrace(2) test Do not call _exit() from the child, ad this code shall not be reached.

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

2018-05-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 13 23:14:48 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace.c t_ptrace_amd64_wait.h t_ptrace_wait.c Log Message: Add a new ptrace(2) ATF exploit for: CVE-2018-8897 (POP SS debug exception) The

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

2018-05-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 13 23:01:25 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h t_ptrace_x86_wait.h Log Message: Refactor code in ATF ptrace(2) tests Move the can_we_set_dbregs() auxiliary function from t_ptrace_x86_wait.h

CVS commit: src/bin/ksh

2018-05-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 8 16:37:59 UTC 2018 Modified Files: src/bin/ksh: c_ksh.c c_sh.c emacs.c eval.c exec.c expand.h expr.c history.c io.c lex.c mail.c main.c misc.c syn.c table.c trap.c tree.c var.c vi.c Log Message:

CVS commit: src/sys

2018-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun May 6 13:40:52 UTC 2018 Modified Files: src/sys/compat/aoutm68k: aoutm68k_exec.c src/sys/compat/freebsd: freebsd_exec.c src/sys/compat/ibcs2: ibcs2_exec.c src/sys/compat/linux/common: linux_exec.c

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

2018-05-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 4 14:23:19 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi Log Message: Improve the category of libbozohttpd.0 in distribution sets It's man-sys-catman, not man-netutil-catman. To generate a diff of this

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

2018-05-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 4 14:15:42 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi Log Message: Register a new cat page: libbozohttpd.0 Fix build of the distribution with MKCATPAGES=yes. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/tests/usr.bin/c++

2018-05-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 4 12:51:18 UTC 2018 Modified Files: src/tests/usr.bin/c++: t_ubsan_int_add_overflow.sh t_ubsan_int_divzero.sh t_ubsan_int_neg_overflow.sh t_ubsan_int_sub_overflow.sh t_ubsan_vla_out_of_bounds.sh

CVS commit: src/tests/usr.bin/c++

2018-05-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 4 12:27:58 UTC 2018 Modified Files: src/tests/usr.bin/c++: t_ubsan_vla_out_of_bounds.sh Log Message: Explain VLA in c++/t_ubsan_vla_out_of_bounds.sh (ATF test) VLA - Variable Length Array Requested by To generate a

CVS commit: src/tests/usr.bin/cc

2018-05-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 4 12:26:53 UTC 2018 Modified Files: src/tests/usr.bin/cc: t_ubsan_vla_out_of_bounds.sh Log Message: Explain VLA in t_ubsan_vla_out_of_bounds.sh (ATF test) VLA - Variable Length Array Requested by To generate a diff

CVS commit: src/share/misc

2018-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 3 17:03:20 UTC 2018 Modified Files: src/share/misc: acronyms Log Message: Fix VLC -> VLA To generate a diff of this commit: cvs rdiff -u -r1.267 -r1.268 src/share/misc/acronyms Please note that diffs are not public

CVS commit: src/share/misc

2018-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 3 17:01:09 UTC 2018 Modified Files: src/share/misc: acronyms Log Message: Register new acronym in wtf(6) VLCvariable length array Noted by To generate a diff of this commit: cvs rdiff -u -r1.266 -r1.267

CVS commit: src

2018-05-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 2 18:46:05 UTC 2018 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/c++: Makefile src/tests/usr.bin/cc: Makefile Added Files: src/tests/usr.bin/c++: t_ubsan_int_add_overflow.sh

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

2018-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 1 23:41:51 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi Log Message: Register a missing file in the distribution sets Add ./usr/share/man/cat3lua/netpgp.0 for cat-pages. To generate a diff of this commit:

CVS commit: src

2018-05-01 Thread Kamil Rytarowski
-8] tests pass. Fix PR kern/51630 by Kamil Rytarowski (myself). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/lib/libc/sys/ptrace.2 cvs rdiff -u -r1.204 -r1.205 src/sys/kern/kern_fork.c cvs rdiff -u -r1.341 -r1.342 src/sys/kern/kern_sig.c cvs rdiff -u -r1.39

CVS commit: src/sys/kern

2018-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 1 14:09:53 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Add additional hardening in PT_TRACE_ME and PT_ATTACH Prohibit: - calling PT_TRACE_ME by initproc (PID1), - calling PT_ATTACH by

CVS commit: src/sys/kern

2018-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 1 13:48:38 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Improve the proc_stoptrace() function proc_stoptrace() is dedicated for emitting a syscall trap for a debugger, either on entry or exit of the

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

2018-04-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 29 13:56:01 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace.c t_ptrace_wait.c Log Message: Add two new ptrace(2) ATF tests Added: - traceme_pid1_parent Assert that a process cannot mark its parent a

CVS commit: src/sys/kern

2018-04-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 29 04:28:10 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Harden the NetBSD PT_TRACE_ME operation You can't say to the parent of a process to start tracing if: (1) the parent is initproc,

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

2018-04-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 28 19:00:26 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Enable traceme_raise1 in the ATF ptrace(2) tests This test checks raise(SIGKILL). If we enter the kernel with this signal we report

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

2018-04-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 28 18:07:15 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the traceme3 ATF ptrace(2) test Replace traceme3 with new ATF tests using diverse signals: - traceme_signal_nohandler1

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

2018-04-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 28 17:56:55 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Handle core dumps in ATF ptrace(2) tests easier Cast WCOREDUMP() to either 1 or 0. It could be changed to a boolean type, but it's

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

2018-04-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 28 00:14:37 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the traceme2 ATF ptrace(2) tests Replace traceme2 with 3 tests: - traceme_sighandler_catch1 - traceme_sighandler_catch2

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

2018-04-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 27 21:36:45 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor the traceme1 and traceme4 ATF ptrace(2) tests Use common bode for these tests and a macro 1-liner to define a new test.

CVS commit: src/sys/kern

2018-04-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 27 16:50:57 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Correct XXX comment in the ptrace(2) kernel code Explain I and D read/write operations and its history, removing dummy XXX comments.

CVS commit: xsrc/external/mit/xkeyboard-config/dist/symbols

2018-04-25 Thread Kamil Rytarowski
Module Name:xsrc Committed By: kamil Date: Wed Apr 25 18:55:19 UTC 2018 Modified Files: xsrc/external/mit/xkeyboard-config/dist/symbols: pl Log Message: Fix the Polish keymap in xkeyboard-config Cherry-pick a patch from upstream BugZilla Bug 104904 - Polish symbols file

CVS commit: src/sys/kern

2018-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 24 18:34:46 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Remove unused code branch in the signal code Remove the ppsig argument from proc_stop_done() and from sigswitch(). This functionality was used in

CVS commit: src/sys/modules/examples

2018-04-19 Thread Kamil Rytarowski
by Kamil Rytarowski. - The executor and sysctls module first appeared in NetBSD 9.0 and were - authored by Siddharth Muralee. + The readhappy_mpsafe, executor and sysctls modules first appeared in NetBSD + 9.0 and were authored by Siddharth Muralee. AUTHORS This document

CVS commit: src/external/gpl2/gmake/dist/glob

2018-04-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 16 16:02:57 UTC 2018 Modified Files: src/external/gpl2/gmake/dist/glob: glob.c Log Message: Revert previous glob.c change It broke on !GLIBC. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src

2018-04-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 16 14:52:00 UTC 2018 Modified Files: src/share/man/man9: fork1.9 src/sys/compat/freebsd: freebsd_fork.c src/sys/compat/linux/common: linux_sched.c src/sys/kern: init_main.c kern_fork.c

CVS commit: src/external/gpl2/gmake/dist/glob

2018-04-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 16 14:39:19 UTC 2018 Modified Files: src/external/gpl2/gmake/dist/glob: glob.c Log Message: Fix build of gmake (in tools) on new GLIBC systems Reported on Debian and Fedora. Reference for similar fix:

CVS commit: src/sys/kern

2018-04-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 16 14:18:16 UTC 2018 Modified Files: src/sys/kern: init_main.c Log Message: Set initproc inside start_init() This allows us to stop using the rnewprocp argument in fork1(9). The rnewprocp argument will be removed soon

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

2018-04-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 15 03:25:25 UTC 2018 Modified Files: src/sys/compat/linux/common: linux_sched.c Log Message: Remove unused variable p from linux_sys_clone() After refactoring by in 2010 (r. 1.63) the p variable is no longer used. As

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

2018-04-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 15 00:19:23 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Refactor fork-like ATG tests in t_ptrace_wait* Add CPP syntax sugare to define each fork-like test within a single line of code

CVS commit: src/sys/kern

2018-04-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 14 14:26:20 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Don't set errno ESRCH for empty result of KINFO_PROC[2] Restore the previous behavior as it's prefered. This new behavior was introduced in

CVS commit: src/sys/modules/examples

2018-04-13 Thread Kamil Rytarowski
- demonstrates adding a sysctl handle dynamically To build the examples you need a local copy of NetBSD sources. You also @@ -57,8 +58,8 @@ HISTORY ping, luahello and luareadhappy) first appeared in NetBSD 8.0; they were written by Kamil Rytarowski. - The sysctl

CVS commit: src/sys/modules/examples

2018-04-12 Thread Kamil Rytarowski
Rytarowski. + The sysctl module first appeared in NetBSD 9.0 and was authored by + Siddharth Muralee. + AUTHORS This document was written by Kamil Rytarowski. Added files: Index: src/sys/modules/examples/sysctl/Makefile diff -u /dev/null src/sys/modules/examples/sysctl/Makefile:1.1

CVS commit: src

2018-04-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 11 03:25:25 UTC 2018 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/c++: Makefile src/tests/usr.bin/cc: Makefile Added Files: src/tests/usr.bin/c++: t_asan_poison.sh

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

2018-04-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 11 01:52:59 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Cover more fork/vfork/vforkdone scenarios in ATF ptrace(2) tests Use a shared common body for all the tests: fork1..fork8,

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

2018-04-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 10 22:45:39 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF t_ptrace_wait* refactoring: vforkdone1 and vforkdone2 Merge vforkdone1 and vforkdone2 into other fork tests and reuse the same

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

2018-04-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 10 00:40:35 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: ptrace: Merge code in fork2 and vfork2 tests with (v)fork1 ones Reduce code duplication, use the same function body with

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

2018-04-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 10 00:09:31 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Merge code in tests: fork1 and vfork1 (ATF t_ptrace_wait*) Marge bodies of two tests into the same function. Add few checks for

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

2018-04-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 9 15:45:16 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Improve documentation of the ATF test t_ptrace_wait*: traceme2 Set the description to: Verify that a signal emitted by a tracer

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

2018-04-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 8 17:20:18 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_x86_wait.h Log Message: Add check in ATF tests for security.models.extensions.user_set_dbregs Introduce a new function can_we_set_dbregs() in the ATF

CVS commit: src/sys

2018-04-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 8 14:46:32 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c src/sys/secmodel/extensions: secmodel_extensions.c Log Message: Add new sysctl(3) entry: security.models.extensions.user_set_dbregs Model this

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

2018-04-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 8 14:21:23 UTC 2018 Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Add paranoid code to X86 Debug Registers Reset certain bits in DR6 and DR7 in x86_dbregs_setup_initdbstate(). Reset

CVS commit: src/tests/usr.bin/c++

2018-04-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 4 23:53:26 UTC 2018 Modified Files: src/tests/usr.bin/c++: Makefile Added Files: src/tests/usr.bin/c++: t_asan_double_free.sh t_asan_global_buffer_overflow.sh t_asan_heap_overflow.sh

CVS commit: src

2018-04-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 4 23:51:35 UTC 2018 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/cc: Makefile Added Files: src/tests/usr.bin/cc: t_asan_double_free.sh t_asan_global_buffer_overflow.sh

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

2018-04-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 4 16:42:48 UTC 2018 Modified Files: src/distrib/sets/lists/tests: mi Log Message: Sort files in usr/tests/usr.bin/c++/ No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.778 -r1.779

CVS commit: src/tests/usr.bin/c++

2018-04-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 4 15:53:04 UTC 2018 Modified Files: src/tests/usr.bin/c++: Makefile Log Message: Correct a small regression typo in usr.bin/c++ ATF tests TESTS_SH= changed to TESTS_SH+= To generate a diff of this commit: cvs rdiff -u

CVS commit: src/tests/usr.bin/c++

2018-04-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 4 15:08:59 UTC 2018 Modified Files: src/tests/usr.bin/c++: Makefile Log Message: Sort entries in ATF tests in tests/usr.bin/c++/Makefile No functional change intended. To generate a diff of this commit: cvs rdiff -u

CVS commit: src

2018-03-31 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Mar 31 14:24:54 UTC 2018 Modified Files: src/lib/libc: Makefile src/share/mk: bsd.own.mk Log Message: Drop the USE_LIBTRE build option libtre cannot be used any more as a replacement for regex(3). Tt does not build

CVS commit: src/sys/dev/scsipi

2018-03-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Mar 24 01:45:22 UTC 2018 Modified Files: src/sys/dev/scsipi: st.c Log Message: Revert previous commit in st.c in order to unbreak build There are various build errors like: /usr/src/sys/dev/scsipi/st.c: In function

CVS commit: src

2018-03-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Mar 24 00:26:51 UTC 2018 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/c++: Makefile t_cxxruntime.sh t_hello.sh t_static_destructor.sh Added Files: src/tests/usr.bin/c++:

CVS commit: src/tests/net/icmp

2018-03-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Mar 24 00:06:32 UTC 2018 Modified Files: src/tests/net/icmp: t_ping.c Log Message: Fix a printf(3)-like format in ATF ICMP t_ping.c Use %zd for ssize_t, instead of %d. To generate a diff of this commit: cvs rdiff -u -r1.20

CVS commit: src

2018-03-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 14 02:13:47 UTC 2018 Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/tests/kernel: Makefile Added Files: src/tests/kernel: t_zombie.c Log Message: Add new ATF

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

2018-03-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 13 14:54:13 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Add new test race1 in t_ptrace_wait* Reuse the attach1's test body for race1. Add a new test race1: Assert that

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

2018-03-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 13 14:45:36 UTC 2018 Modified Files: src/tests/lib/libc/sys: msg.h Log Message: ATF t_ptrace_wait*: Disable debug messages in msg.h msg.h is a dummy IPC interface. Disable additional debugging logging here, especially

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

2018-03-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 13 13:34:40 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add a new function in ATF t_ptrace_wait*: await_zombie_raw() Add await_zombie_raw() that is the same as await_zombie(), whith an

CVS commit: src/sys/kern

2018-03-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 13 02:24:26 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Make sysctl_doeproc() more predictable Swap the order of looking into zombie and all process lists, start now with the zombie one. This prevents

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

2018-03-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 7 16:40:06 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Reenable attach2 in t_ptrace_wait* The primary race specific to this test has been fixed in previous commit (wrong WNOHANG).

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

2018-03-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 7 10:53:55 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Correct a race bug in attach2 (t_ptrace_wait*) At the end of the test we resume a tracer and expect to observe it to collect

<    3   4   5   6   7   8   9   10   11   12   >