CVS commit: src/sys/ufs/ffs

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 02:02:15 UTC 2018 Modified Files: src/sys/ufs/ffs: ffs_subr.c Log Message: Avoid Undefined Behavior in ffs_clusteracct() Change the type of 'bit' variable from int to unsigned int and use unsigned values consistently.

CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 02:19:02 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Avoid undefined behavior in pr_item_notouch_put() Do not left shift a signed integer changing its signedness bit. sys/kern/subr_pool.c:251:30, le

CVS commit: src/sys/dev/pci

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 03:00:46 UTC 2018 Modified Files: src/sys/dev/pci: pciide_piix_reg.h Log Message: Avoid undefined behavior in pciiide macros Cast the 'bytes' argument in PIIX_IDETIM_SET() and PIIX_IDETIM_CLEAR() to unsigned int. This p

CVS commit: src/sys/dev/scsipi

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 03:17:01 UTC 2018 Modified Files: src/sys/dev/scsipi: scsipiconf.h Log Message: Avoid undefined behavior in scsipiconf.h in _4ltol() and _4btol() Do not shift (through integer promotion) a signed value in an operation t

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 17:39:12 UTC 2018 Modified Files: src/sys/kern: sys_mqueue.c Log Message: Avoid undefined behavior in mq_recv1() Do not shift a signed integer causing change of the signed bit. sys/kern/sys_mqueue.c:712:24, left shift

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 17:50:18 UTC 2018 Modified Files: src/sys/kern: sys_mqueue.c Log Message: Avoid undefined behavior in mq_send1() Do not shift a signed integer causing change of the signed bit. sys/kern/sys_mqueue.c:881:23, left shift

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 18:13:01 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: Avoid undefined behavior in lwp_ctl_alloc() Do not left shift signed integer in a way that the signedness bit is changed. sys/kern/kern_lwp.c:1849

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 18:15:28 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: Avoid undefined behavior in lwp_ctl_free() Do not left shift signed integer in a way that the signedness bit is changed. sys/kern/kern_lwp.c:1892:

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

2018-07-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Jul 6 12:19:56 UTC 2018 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_reg.h Log Message: Remove UB from definition of symbols in i915_reg.h Kernel Undefined Behavior Sanitizer enforces more warnings in build t

CVS commit: src/sys/arch

2018-07-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jul 7 21:35:16 UTC 2018 Modified Files: src/sys/arch/amd64/include: tss.h src/sys/arch/i386/include: tss.h Log Message: Correct unportable signed integer left shift in i386/amd64 tss code Change the type of IOMAP_INVA

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

2018-07-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jul 7 23:05:50 UTC 2018 Modified Files: src/sys/arch/x86/x86: mpbios.c Log Message: Remove unaligned access to mpbios_page[] Replace unaligned pointer dereference with a more portable construct that is free from Undefined Beh

CVS commit: src/sys/kern

2018-07-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Jul 8 14:42:52 UTC 2018 Modified Files: src/sys/kern: kern_timeout.c Log Message: Try to avoid signed integer overflow in callout_softclock() The delta operation (c->c_time - ticks) is documented as safe, however it still can

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

2018-07-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Jul 8 14:46:23 UTC 2018 Modified Files: src/sys/arch/x86/x86: mpbios.c Log Message: Revert previous Misalignment access handling patches are now discussed on tech-kern. Requested by and . To generate a diff of this commit

CVS commit: src/sys/dev/ic

2018-07-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Jul 9 10:44:44 UTC 2018 Modified Files: src/sys/dev/ic: ahcisata_core.c Log Message: Avoid undefined behavior of signedness bit shift in ahcisata_core.c sys/dev/ic/ahcisata_core.c:365:31, left shift of 1 by 31 places cannot b

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

2018-07-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Jul 16 07:25:58 UTC 2018 Modified Files: src/tests/usr.bin/cc: t_asan_double_free.sh t_asan_global_buffer_overflow.sh t_asan_heap_overflow.sh t_asan_off_by_one.sh t_asan_poison.sh t_asan_uaf.sh

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

2018-07-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Jul 16 07:27:26 UTC 2018 Modified Files: src/tests/usr.bin/c++: t_asan_double_free.sh t_asan_global_buffer_overflow.sh t_asan_heap_overflow.sh t_asan_off_by_one.sh t_asan_poison.sh t_asan_uaf.sh

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

2018-07-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jul 17 16:21:43 UTC 2018 Modified Files: src/sys/arch/aarch64/include: reg.h Log Message: Use __uint128_t conditionally in aarch64 reg.h Check whether __uint128_t is available checking __SIZEOF_INT128__ in preprocessor. Move _

CVS commit: src/lib/libc

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 7 15:33:25 UTC 2017 Modified Files: src/lib/libc: shlib_version Log Message: Document in libc's shlib_version request for exect(3) removal This functionality has been moved long time to the kernel. Kernel exec() emits SIG

CVS commit: src/doc

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 7 16:15:05 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace Note PT_WATCHPOINT change to PT_*ETDBREGS. Remove GDB and LLDB related entries from generic ptrace(2) TODO. Note need for TRAP_SCE a

CVS commit: src/lib/libc

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 7 19:29:40 UTC 2017 Modified Files: src/lib/libc/gen: Makefile.inc src/lib/libc/sys: Makefile.inc Added Files: src/lib/libc/gen: exect.c Removed Files: src/lib/libc/arch/aarch64/sys: exect.S

CVS commit: src/external/gpl3/gdb

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 7 22:53:20 UTC 2017 Modified Files: src/external/gpl3/gdb/bin/gdb: Makefile src/external/gpl3/gdb/bin/gdbtui: Makefile src/external/gpl3/gdb/dist/gdb: nbsd-thread.c Log Message: Detach libpthread_dbg(3) fro

CVS commit: src/external/gpl3/gdb.old

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 8 01:32:37 UTC 2017 Modified Files: src/external/gpl3/gdb.old/bin/gdb: Makefile src/external/gpl3/gdb.old/bin/gdbtui: Makefile src/external/gpl3/gdb.old/dist/gdb: nbsd-thread.c Log Message: Detach libpthrea

CVS commit: src

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 8 03:44:41 UTC 2017 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/comp: mi shl.mi src/distrib/sets/lists/debug: mi shl.mi src/distrib/sets/lists/tests: mi src/doc

CVS commit: src/doc

2017-02-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 8 04:01:44 UTC 2017 Modified Files: src/doc: CHANGES Log Message: pthread_dbg(3): Removed from the base distribution. To generate a diff of this commit: cvs rdiff -u -r1.2243 -r1.2244 src/doc/CHANGES Please note that di

CVS commit: src/doc

2017-02-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 8 14:53:50 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry in TODO.ptrace Added: add PT_SET_SIGMASK and PT_GET_SIGMASK - used by checkpointing software Example software: gdb, criu To genera

CVS commit: src/doc

2017-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 11 19:10:05 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace Remove entries: - remove exect(3) from libc - there is no usecase for it Interface has been marked obsolete and it's on the queue

CVS commit: src/sys/kern

2017-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 11 19:32:41 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Be paranoid about PT_SET_SIGINFO and PT_GET_SIGINFO in ptrace(2) Currently a tracer is prohibited to read and write memory of a tracee. Pr

CVS commit: src/doc

2017-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 12 05:21:34 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace with new entries Added entries: - add support to read debugger events via a file descriptor in procfs (kevent(2)), it's still us

CVS commit: src

2017-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 12 06:09:53 UTC 2017 Modified Files: src/lib/libc/sys: ptrace.2 src/sys/kern: sys_ptrace_common.c src/sys/sys: ptrace.h src/tests/kernel: t_ptrace_wait.c Log Message: Introduce new interface in ptrac

CVS commit: src/doc

2017-02-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 12 06:16:33 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace Remove: - add PT_SET_SIGMASK and PT_GET_SIGMASK - used by checkpointing software This interface has been committed to HEAD. Spons

CVS commit: src/doc

2017-02-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 12 20:59:23 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Add new entry in doc/CHANGES ptrace(2): Add signal mask information accessors API: PT_GET_SIGMASK and PT_SET_SIGMASK Sponsored by To ge

CVS commit: src/doc

2017-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 13 15:29:18 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Update TODO.ptrace Note BSD4.4-like /proc debugging removal Explain kevent(2)-based debugging proposal Sponsored by To generate a diff of this comm

CVS commit: src/doc

2017-02-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 14 18:38:07 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry to TODO.ptrace research ipkdb(4) Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/doc/TODO.ptrace Plea

CVS commit: src/tests/kernel

2017-02-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 15 20:58:22 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.h Log Message: Reintroduce ATF_TP_ADD_TC_HAVE_DBREGS for t_ptrace_wait* ATF tests PT_GETDBREGS & PT_SETDBREGS API will replace the current one for watchp

CVS commit: src/tests/kernel

2017-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 16 15:57:45 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.h src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Switch back arch/amd64/t_ptrace_wait.c to r1.6 and restore original DBREGS This is pr

CVS commit: src

2017-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 17 01:14:31 UTC 2017 Modified Files: src/doc: CHANGES src/share/man/man2: siginfo.2 src/sys/arch/amd64/amd64: trap.c src/sys/arch/i386/i386: trap.c Log Message: Add new si_code TRAP_DBREG It replace

CVS commit: src

2017-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 17 01:42:59 UTC 2017 Modified Files: src: UPDATING Log Message: Note TRAP_HWWPT -> TRAP_DBREG rename manual steps for build.sh -u To generate a diff of this commit: cvs rdiff -u -r1.281 -r1.282 src/UPDATING Please note t

CVS commit: src/sys/sys

2017-02-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 17 01:49:24 UTC 2017 Modified Files: src/sys/sys: siginfo.h Log Message: Commit TRAP_HWWPT -> TRAP_DBREG switch in This is integral part of the previous two commits. Sponsored by To generate a diff of this commit: cvs

CVS commit: src/doc

2017-02-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 17 21:22:03 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry in TODO.ptrace Research kgdb. It should be supported by GDB and LLDB. Sponsored by To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src

2017-02-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 17 21:34:19 UTC 2017 Modified Files: src: UPDATING Log Message: Remove entry for "TRAP_HWWPT renamed to TRAP_DBREG" from UPDATING Suggested by K.R.Elz To generate a diff of this commit: cvs rdiff -u -r1.282 -r1.283 src/U

CVS commit: src/tests/kernel/arch/amd64

2017-02-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 18 02:28:21 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Fix dbregs_dr[0123]_trap_variable in arch/amd64/t_ptrace_wait* Add missing PT_CONTINUE between two wait(2)-like calls. Sponsor

CVS commit: src/tests/kernel/arch/amd64

2017-02-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 18 04:30:34 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Synchronize struct dbreg with FreeBSD - rename field member .dbregs to .dr Currently this code is disabled in HEAD and the dbre

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 19 22:09:29 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add checks for si_code in dbregs_dr[0123]_trap_variable in ATF arch/amd64 Validate that debug register traps generate appropria

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Feb 19 23:58:30 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Extend dbregs_dr*_trap_variable tests to 1-2-4 byte traps in arch/amd64 Replace the following tests: - dbregs_dr0_trap_variabl

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 01:21:47 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr*_trap_variable_readwrite_write_*byte* in arch/amd64 Add new tests: - dbregs_dr0_trap_variable_readwrit

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 01:34:53 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr*_trap_variable_readwrite_read_*byte* in arch/amd64 Add new tests: - dbregs_dr0_trap_variable_readwrite

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 02:56:03 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr[0123]_trap_code in arch/amd64 Add new tests: - dbregs_dr0_trap_code - dbregs_dr1_trap_code - dbregs_

CVS commit: src

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 03:14:42 UTC 2017 Modified Files: src/distrib/sets/lists/tests: mi src/etc/mtree: NetBSD.dist.tests Log Message: Remove tests/lib/libc/gen/exect paths from mtree and sets The exect tests have been removed from t

CVS commit: src/doc

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 03:37:24 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry to TODO.ptrace check 64-bit debugger on 64-bit kernel tracing capabilities of 32-bit tracee Sponsored by To generate a diff of this c

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 05:40:51 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr*_dont_inherit_lwp and improve i386 compat Add new tests: - dbregs_dr0_dont_inherit_lwp - dbregs_dr1_d

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 05:47:59 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Fix more issues with compat to i386 in arch/amd64 tests for Debug Registers Stop compating the number of available registers wi

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 06:18:48 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr[67]_dont_inherit_lwp in arch/amd64 New tests: - dbregs_dr6_dont_inherit_lwp - dbregs_dr7_dont_inherit

CVS commit: src/tests/kernel/arch/amd64

2017-02-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Feb 20 06:48:49 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Protect dbregs_dr*_dont_inherit_lwp in arch/amd64 with HAVE_DBREGS The code for debug registers isn't in HEAD and it might brea

CVS commit: src/tests/kernel/arch/amd64

2017-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 21 08:40:16 UTC 2017 Modified Files: src/tests/kernel/arch/amd64: t_ptrace_wait.c Log Message: Add new tests dbregs_dr*_dont_inherit_execve in arch/amd64 Added tests: - dbregs_dr0_dont_inherit_execve - dbregs_dr1_dont_in

CVS commit: src

2017-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 22 01:07:14 UTC 2017 Modified Files: src/distrib/sets/lists/debug: md.amd64 md.i386 src/tests/kernel/arch: Makefile src/tests/kernel/arch/amd64: t_ptrace_wait.c Added Files: src/distrib/sets/lists/tes

CVS commit: src/etc/mtree

2017-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 22 02:42:53 UTC 2017 Modified Files: src/etc/mtree: NetBSD.dist.tests Log Message: Add new directory usr/tests/kernel/arch/x86 in mtree Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143 src/et

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

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 22 09:09:49 UTC 2017 Modified Files: src/distrib/sets/lists/tests: md.amd64 md.i386 mi Log Message: Fix build of !x86 ports Mark debug/usr/tests/kernel/arch/x86 as MI directory. Sponsored by To generate a diff of this

CVS commit: src

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 22 23:43:44 UTC 2017 Modified Files: src/lib/libc/sys: ptrace.2 src/sys/kern: sys_ptrace_common.c src/sys/sys: ptrace.h src/tests/kernel: t_ptrace_wait.c Log Message: Introduce new ptrace(2) API to a

CVS commit: src

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 00:50:09 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c src/tests/kernel: t_ptrace_wait.c Log Message: Improve PT_SET_SIGMASK and PT_GET_SIGMASK API in ptrace(2) Use proper check for LW_SYSTEM, don't

CVS commit: src

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 03:34:23 UTC 2017 Modified Files: src/distrib/sets/lists/comp: md.amd64 md.i386 src/sys/arch/amd64/amd64: machdep.c netbsd32_machdep.c process_machdep.c trap.c src/sys/arch/amd64/include: netbs

CVS commit: src/sys/sys

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 03:48:20 UTC 2017 Modified Files: src/sys/sys: param.h Log Message: Welcome to 7.99.62! New ptrace(2) operations: - PT_RESUME - PT_SUSPEND - PT_SETDBREGS - PT_GETDBREGS Sponsored by To generate a diff of this co

CVS commit: src/sys/kern

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 04:48:36 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix build of ports without PT_STEP Fallout after PT_*DBREGS introduction. Sponsored by To generate a diff of this commit: cvs rdiff -u

CVS commit: src/share/misc

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 05:04:14 UTC 2017 Modified Files: src/share/misc: acronyms.comp Log Message: Add SSA to wtf(6) SSAstatic single assignment Fix position of AMP. To generate a diff of this commit: cvs rdiff -u -r1.174 -r1.175 src/

CVS commit: src/lib/libc/sys

2017-02-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Feb 23 05:48:14 UTC 2017 Modified Files: src/lib/libc/sys: ptrace.2 Log Message: Document PT_GETDBREGS and PT_SETDBRGS in ptrace(2) Not this interface in MD part. Explain design choices. Sponsored by To generate a diff of

CVS commit: src/tests/kernel

2017-02-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 24 06:17:48 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Add new test syscall1 in t_ptrace_wait* syscall1: Verify that getpid(2) can be traced with PT_SYSCALL Enforce usage of syscall(2), it

CVS commit: src/sys/arch

2017-02-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 25 13:34:21 UTC 2017 Modified Files: src/sys/arch/amd64/include: proc.h src/sys/arch/i386/include: proc.h Log Message: Garbage collect unneeded inclusion of in This is left over after introduction of Debug Regist

CVS commit: src/doc

2017-02-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 28 13:10:54 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Sync TODO.ptrace with reality Remove entries: - add new ptrace(2) calls to lock (suspend) and unlock LWP within a process - switch PT_WATCHPOINT* to PT

CVS commit: src/tests/kernel

2017-02-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 28 13:19:50 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Add new test syscallemu1 in t_ptrace_wait* syscallemu1: Verify that exit(2) can be intercepted with PT_SYSCALLEMU This test is failin

CVS commit: src/tests/kernel

2017-02-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 28 13:29:52 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Mark resume1 and syscallemu1 tests broken in t_ptrace_wait* resume1: PR kern/51995 ptrace(2) PT_RESUME is not reliable syscallemu1:

CVS commit: src/sys/sys

2017-02-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 1 00:19:23 UTC 2017 Modified Files: src/sys/sys: siginfo.h Log Message: Add new SIGTRAP types: TRAP_SCE and TRAP_SCX New entries: - TRAP_SCE7 /* Process syscall entry trap */ - TRAP_SCX8

CVS commit: src/tests/kernel

2017-03-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 1 08:05:15 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Mark syscall1 broken in t_ptrace_wait* Mark this test broken with kern/52012 as the tracee does not stop on syscall entry. Check for sigin

CVS commit: src/doc

2017-03-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 1 10:28:47 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Document PT_GETDBREGS, PT_SETDBREGS, TRAP_SCE and TRAP_SCX in CHANGES Added entries: ptrace(2): Add new API replacing PT_WATCHPOINT for Debug Regist

CVS commit: src/doc

2017-03-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 1 10:32:09 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Correct the date of PT_GETDBREGS and PT_SETDBREGS introduction Feb 28th -> Feb 23rd Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.22

CVS commit: src/doc

2017-03-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Mar 2 14:25:41 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry in TODO.ptrace about PT_STEP with a signal Added: GDB Remote Protocol expects a case with a step with a signal to be sent, this is cu

CVS commit: src/doc

2017-03-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Mar 3 07:03:11 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: Add new entry in TODO.ptrace about QPassSignals Added: support QPassSignals (PT_SET_SIGPASS/PT_GET_SIGPASS) in the kernel, a way to stop routing

CVS commit: src/doc

2017-03-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Mar 3 07:11:49 UTC 2017 Modified Files: src/doc: TODO.ptrace Log Message: TODO.ptrace: Remove entry about addition of TRAP_SCE and TRAP_SCX These siginfo(2) codes have been committed. To generate a diff of this commit: cvs

CVS commit: [netbsd-7-1] src/usr.bin/gcore

2017-03-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Mar 26 20:30:45 UTC 2017 Modified Files: src/usr.bin/gcore [netbsd-7-1]: gcore.1 Log Message: Remove the BUGS section from gcore(1) - issues are no longer relevant gcore(1) uses internally ptrace(2). PT_DUMPCORE is restricted

CVS commit: [netbsd-7-1] src/usr.bin/gcore

2017-03-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Mar 26 21:06:25 UTC 2017 Modified Files: src/usr.bin/gcore [netbsd-7-1]: gcore.1 Log Message: Revert previous - wrong branch To generate a diff of this commit: cvs rdiff -u -r1.15.14.1 -r1.15.14.2 src/usr.bin/gcore/gcore.1 P

CVS commit: src/usr.bin/gcore

2017-03-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Mar 26 22:00:04 UTC 2017 Modified Files: src/usr.bin/gcore: gcore.1 Log Message: Remove the BUGS section from gcore(1) - issues are no longer relevant gcore(1) uses internally ptrace(2). PT_DUMPCORE is restricted to stopped pr

CVS commit: src/share/man/man5

2017-03-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Mar 26 23:49:28 UTC 2017 Modified Files: src/share/man/man5: core.5 Log Message: Update core(5) with current reality Note cpi_siglwp addition in NetBSD-2.0 and retaining the procinfo ver. 1. Note ELF_NOTE_NETBSD_CORE_AUXV (2)

CVS commit: src/tests/kernel

2017-03-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 01:00:33 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Mark signal6 as failing due to timeout not regular failure This test is marked as PR kern/51918. Timeout has been reported on i386, amd64

CVS commit: src/tests/kernel

2017-03-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 01:40:40 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Optimize signal6 in t_ptrace_wait Reduce timeout to 5 seconds. This tests timeouts and this change saves time. PR kern/51918 Sponsored b

CVS commit: src/tests/kernel

2017-03-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 03:03:15 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Mark fork1 and siginfo5 as broken on sparc, sparc64, evbarm and alpha PR kern/52117 ptrace(2) PTRACE_FORK fails on some platforms These t

CVS commit: src/tests/kernel

2017-03-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 03:19:20 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Set timeout expected in resume1 (t_ptrace_wait*) Mark timeout for this test 5 sec. It sometimes works sometimes does not. Add a local sle

CVS commit: src/tests/kernel

2017-03-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 12:39:07 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Mark PT_STEP tests in t_ptrace_wait* as broken on ARM There is a definition of PT_STEP for userland, but no implementation in the kernel.

CVS commit: src/tests/kernel

2017-03-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 28 13:16:30 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Explain expected behavior for PTRACE_FORK events in t_ptrace_wait* PR kern/52117 ptrace(2) PTRACE_FORK fails on some platforms Add messag

CVS commit: src/sys/kern

2017-03-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 29 19:52:30 UTC 2017 Modified Files: src/sys/kern: core_elf32.c sys_ptrace_common.c Log Message: Generate ELF AUXV for core(5) and ptrace(2) limited to the vector TYPE x V Previously PT_DUMPCORE and PIOD_READ_AUXV and regu

CVS commit: src/sys/kern

2017-03-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 29 22:48:03 UTC 2017 Modified Files: src/sys/kern: core_elf32.c sys_ptrace_common.c Log Message: Revert previous. Pointed out by Christous Zoulas that ELF_AUX_ENTRIES * sizeof(AuxInfo) assumption is incomplete. There is em

CVS commit: src/tests/kernel/arch/x86

2017-03-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Mar 29 23:50:09 UTC 2017 Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Deduplicate shared code in dbregs_preserve_dr[0123]{,_yield,_continued} Move common function code into shared subroutine. While

CVS commit: src/tests/kernel/arch/x86

2017-03-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Mar 30 02:17:38 UTC 2017 Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Eliminate code duplication in the x86 dbregs_dr[0123]_trap_variable* tests This is work in progress to remove no longer needed co

CVS commit: src/tests/kernel/arch/x86

2017-03-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Mar 30 20:24:35 UTC 2017 Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Remove deuplicated code in dbregs_dr[01234]_dont_inherit_lwp Currently remove tests for dbregs_dr[67]_dont_inherit_lwp. Sponsore

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

2017-03-31 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Mar 31 23:50:01 UTC 2017 Modified Files: src/external/bsd/dhcpcd/sbin/dhcpcd: Makefile Log Message: Disable stack-protector for bpf.c (sbin/dhcpcd) This is temporary build fix. Approved by To generate a diff of this commit

CVS commit: src/tests/kernel/arch/x86

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 1 23:25:08 UTC 2017 Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Refactor dbregs_dr*_dont_inherit_execve ATF tests for x86/ Eliminate duplicated code. Sponsored by To generate a diff of this

CVS commit: src/tests/kernel/arch/x86

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 1 23:28:02 UTC 2017 Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Try to fix Clang/LLVM build Initialize a local variable. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 1 23:51:27 UTC 2017 Modified Files: src/tests/kernel: t_ptrace.c Log Message: Correct securelevel in attach_pid1_securelevel Assert that a debugger cannot attach to PID 1 with securelevel >= 0 (as root) instead of >= 1.

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 2 00:03:40 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Log Message: Deduplicate code in step* tests in t_ptrace_wait* No functional change. Sponsored by To generate a diff of this commit: cvs rdiff -u -

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 2 00:06:09 UTC 2017 Modified Files: src/tests/kernel: t_ptrace.c Log Message: Correct another string about securelevel in t_ptrace Change: Test must be run with securelevel >= 1 To: Test must be run with securele

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 2 00:29:08 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Added Files: src/tests/kernel: t_ptrace_x86_wait.h Log Message: Merge kernel/t_ptrace_wait with kernel/arch/x86/t_ptrace_wait This aims to remo

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 2 00:40:12 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_wait.c Added Files: src/tests/kernel: t_ptrace_i386_wait.h Log Message: Merge kernel/t_ptrace_wait with kernel/arch/i386/t_ptrace_wait This aims to re

CVS commit: src/tests/kernel

2017-04-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 2 01:14:35 UTC 2017 Modified Files: src/tests/kernel: t_ptrace_i386_wait.h t_ptrace_wait.c Added Files: src/tests/kernel: t_ptrace_amd64_wait.h Log Message: Merge kernel/t_ptrace_wait with kernel/arch/amd64/t_ptrac

<    1   2   3   4   5   6   7   8   9   10   >