CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Jan 13 09:00:20 UTC 2020 Modified Files: src/share/man/man3: dlinfo.3 Log Message: Bump date in dlinfo(3) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/dlinfo.3 Please note that diffs are

CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Jan 13 08:29:05 UTC 2020 Modified Files: src/share/man/man3: dlfcn.3 Log Message: Cross-Link from dlfcn(3) to dlinfo(3) To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/dlfcn.3 Please note

CVS commit: src

2020-01-13 Thread Kamil Rytarowski
nt; +.\" +.\" /* obtain sarch path information */ +.\" dlinfo(RTLD_SELF, RTLD_DI_SERINFO, (void *)info); +.\" +.\" path = >dls_serpath[0]; +.\" +.\" for (cnt = 1; cnt <= info->dls_cnt; cnt++, path++) { +.\" (void) printf("%2d: %s\\n", cnt, path->dls_name); +.\" } +.\" .Ed +.Sh SEE ALSO +.Xr rtld 1 , +.Xr dladdr 3 , +.Xr dlopen 3 , +.Xr dlsym 3 +.Sh HISTORY +The +.Fn dlinfo +function first appeared in the Solaris operating system. +In +.Nx , +it first appeared in +.Nx 5.1 . +.Sh AUTHORS +.An -nosplit +The +.Fx +implementation of the +.Fn dlinfo +function was originally written by +.An Antii Kantee Aq Mt po...@netbsd.org . +.Pp +The manual page for this function was written by +.An Alexey Zelkin Aq Mt phan...@freebsd.org +and adapted to +.Nx +by +.An Kamil Rytarowski Aq Mt ka...@netbsd.org .

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

2020-01-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Jan 9 10:46:31 UTC 2020 Modified Files: src/sys/arch/i386/include: ptrace.h Log Message: Add missing compat define of PT32_GETXSTATE Fixes i386 build. Reviewed by To generate a diff of this commit: cvs rdiff -u -r1.24

CVS commit: src/lib/libc/sys

2020-01-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jan 4 04:40:17 UTC 2020 Modified Files: src/lib/libc/sys: ptrace.2 Log Message: /tmp/cvsbigmGa To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/lib/libc/sys/ptrace.2 Please note that diffs are not public

CVS commit: src/sys/kern

2020-01-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jan 4 03:46:19 UTC 2020 Modified Files: src/sys/kern: files.kern Added Files: src/sys/kern: sys_process_lwpstatus.c Removed Files: src/sys/kern: sys_ptrace_lwpstatus.c Log Message: Rename

CVS commit: src/sys/kern

2020-01-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Jan 3 00:37:30 UTC 2020 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Correct the rule to iterate over LWPs with PT_LWPNEXT and PT_LWPINFO Correctly exclude dead/dying/zombie and system threads. Fixes

CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Jan 2 05:18:07 UTC 2020 Modified Files: src/sys/sys: exec_elf.h Log Message: Sync the e_ident[EI_OSABI] magic values with the ELF specification source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html To generate

CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Jan 2 04:58:07 UTC 2020 Modified Files: src/sys/sys: exec_elf.h Log Message: Update e_machine magic values with the ELF specification source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html To generate a diff of

CVS commit: src/sys/sys

2020-01-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Jan 2 04:28:51 UTC 2020 Modified Files: src/sys/sys: exec_elf.h Log Message: Fix the EM_TILEGX number in the ELF header source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html 191 is confirmed in LLVM, GNU

CVS commit: src/doc

2019-12-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Dec 28 04:23:26 UTC 2019 Modified Files: src/doc: TODO.sanitizers Log Message: Sync TODO.sanitizers with reality Done: - compiler-rt sanitizers integration with base - merge TSan, MSan and libFuzzer ATF tests - LSan -

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

2019-12-26 Thread Kamil Rytarowski
52b5fe5f45b1908e140e05a4eceaaac7002be768 Author: Kamil Rytarowski Date: Wed Dec 25 04:05:10 2019 +0100 [compiler-rt] [netbsd] Define _RTLD_SOURCE to fix build The TLS base (LWP private pointer) functions are namespaced and hidden i.e. inside the _RTLD_SOURCE namespace. To generate

CVS commit: src/sys/arch

2019-12-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 27 00:32:17 UTC 2019 Modified Files: src/sys/arch/alpha/include: mcontext.h src/sys/arch/amd64/include: mcontext.h src/sys/arch/hppa/include: mcontext.h src/sys/arch/i386/include: mcontext.h

CVS commit: src/sys

2019-12-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 26 08:52:39 UTC 2019 Modified Files: src/sys/kern: files.kern sys_ptrace_common.c src/sys/sys: ptrace.h Added Files: src/sys/kern: sys_ptrace_lwpstatus.c Log Message: Put ptrace_read_lwpstatus() and

CVS commit: src/sys/kern

2019-12-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Dec 25 15:54:02 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Cast PTRACE_LWP_GETPRIVATE to (void *) through (intptr_t) Fixes sparc build. To generate a diff of this commit: cvs rdiff -u -r1.74

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

2019-12-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Dec 25 02:23:38 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Read TLS base pointer with _lwp_getprivate() This avoid usage of fast versions that are mostly internal to RTLD. To generate a

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

2019-12-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 24 21:09:38 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Define _RTLD_SOURCE in t_ptrace_wait.c The __lwp_gettcb_fast() and __lwp_getprivate_fast() functions are namespaced on a selection

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

2019-12-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 24 19:51:00 UTC 2019 Modified Files: src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common: sanitizer_platform_limits_netbsd.cc sanitizer_platform_limits_netbsd.h sanitizer_syscalls_netbsd.inc

CVS commit: src/sys/sys

2019-12-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 24 15:20:34 UTC 2019 Modified Files: src/sys/sys: param.h Log Message: Welcome to NetBSD 9.99.30! Addition of PT_LWPSTATUS, PT_LWPNEXT with compat32 and core(5) support. To generate a diff of this commit: cvs rdiff -u

CVS commit: src

2019-12-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 24 14:51:00 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: nbsd-nat.c src/sys/arch/alpha/include: ptrace.h src/sys/arch/hppa/include: ptrace.h src/sys/arch/powerpc/include: ptrace.h

CVS commit: src/lib/libc/sys

2019-12-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Dec 23 01:46:09 UTC 2019 Modified Files: src/lib/libc/sys: kqueue.2 Log Message: Explain in kevent(2) the semantics of EINTR All changes contained in the changelist are applied before returning this error. To generate a

CVS commit: src/lib/libc/sys

2019-12-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Dec 22 17:01:15 UTC 2019 Modified Files: src/lib/libc/sys: kqueue.2 Log Message: Document udata type switch in struct kevent in the kqueue(2) To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49

CVS commit: src/sys/dev/sdmmc

2019-12-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 19 17:24:45 UTC 2019 Modified Files: src/sys/dev/sdmmc: sdmmc_ioreg.h Log Message: Avoid changing signedness bit with << in sdmmc_ioreg.h Reported by To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/net80211

2019-12-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 19 16:29:51 UTC 2019 Modified Files: src/sys/net80211: ieee80211_crypto_tkip.c Log Message: Avoid changing signedness bit with << 24 in ieee80211_crypto_tkip.c Reported by To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev/ic

2019-12-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Dec 19 16:25:13 UTC 2019 Modified Files: src/sys/dev/ic: rtsx.c Log Message: Avoid changing signedness bit with << in rtsx_read_cfg() Reported by To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

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

2019-12-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Dec 18 14:51:24 UTC 2019 Modified Files: src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common: sanitizer_interceptors_ioctl_netbsd.inc sanitizer_platform_limits_netbsd.cc

CVS commit: src/etc/mtree

2019-12-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Dec 18 14:44:16 UTC 2019 Modified Files: src/etc/mtree: NetBSD.dist.base Log Message: Remove obsolete mtree entry of usr/share/examples/supfiles To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207

CVS commit: src/sys/kern

2019-12-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Dec 7 19:50:34 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Revert the in_interrupt() change to use again the x86 specific code This is prerequisite for kMSan and upcoming kernel changes. Discussed with

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

2019-12-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Dec 7 19:38:29 UTC 2019 Modified Files: src/external/bsd/libproc/dist: proc_util.c Log Message: Switch proc_getlwpstatus from PT_LWPINFO to PT_GET_SIGINFO for NetBSD PT_LWPINFO from FreeBSD is almost never intended to be

CVS commit: src/sys/arch/aarch64

2019-12-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 6 18:16:23 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: sys_machdep.c src/sys/arch/aarch64/include: types.h Log Message: Remove __HAVE_CPU_LWP_SETPRIVATE from aarch64 aarch64 specific

CVS commit: src/share/man/man5

2019-12-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 6 18:03:49 UTC 2019 Modified Files: src/share/man/man5: core.5 Log Message: Remove misleading comments from core(5) netbsd_elfcore_procinfo is still in version 1. cpi_siglwp is stored in the same netbsd_elfcore_procinfo

CVS commit: src/sys/kern

2019-12-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 6 17:41:43 UTC 2019 Modified Files: src/sys/kern: kern_proc.c Log Message: Correct signals in siglist+sigmask passed in kinfo_lwp Make the union of LWP and PROC pending signals correctly. To generate a diff of this

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

2019-12-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 6 01:09:51 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Log PID.LWP in t_ptrace_wait* tests for enabled debug This is useful for multithreaded test scenarios. To generate a diff of this

CVS commit: src/sys/sys

2019-12-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Dec 4 13:52:27 UTC 2019 Modified Files: src/sys/sys: ptrace.h Log Message: Register "PT_STOP" in ptrace PT_STRINGS To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/sys/ptrace.h Please note that diffs

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

2019-12-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Dec 2 19:17:27 UTC 2019 Modified Files: src/sys/arch/amd64/include: ptrace.h Log Message: Define PT_GETXMMREGS and PT_SETXMMREGS in PT_MACHDEP_STRINGS/amd64 To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/kern

2019-12-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Dec 1 17:41:11 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Switch in_interrupt() in KCOV to cpu_intr_p() This makes KCOV more MI friendly and removes x86-specific in_interrupt() implementation. To

CVS commit: src/share/mk

2019-12-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Dec 1 17:25:47 UTC 2019 Modified Files: src/share/mk: bsd.sys.mk Log Message: Disable KCOV instrumentation in x86_machdep.c This allows to use cpu_intr_p() directly inside KCOV. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/kern

2019-05-09 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 9 20:50:14 UTC 2019 Modified Files: src/sys/kern: kern_exec.c Log Message: Report TRAP_EXEC (for exec()) to a debugger in the PT_SYSCALL mode Orignally exec() reporting was disabled in the NetBSD version as there was no

CVS commit: src/sys/arch

2019-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 7 03:49:28 UTC 2019 Modified Files: src/sys/arch/alpha/include: ansi.h src/sys/arch/amd64/include: ansi.h src/sys/arch/amiga/include: ansi.h src/sys/arch/arm/include: ansi.h

CVS commit: src/usr.bin/ktruss

2019-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 6 11:58:37 UTC 2019 Modified Files: src/usr.bin/ktruss: makeerrnos.sh Log Message: Add support for SIGRTMIN+1..SIGRTMAX-1 signals in ktruss(1) Generate misc.c and misc.h with entries for signals between SIGRTMIN+1 and

CVS commit: src/doc

2019-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 6 08:32:40 UTC 2019 Modified Files: src/doc: CHANGES Log Message: siginfo(2): Ship with MI syscall information of a debugged process for SIGTRAP and si_code TRAP_SCE/TRAP_SCX. To generate a diff of this commit: cvs

CVS commit: src/sys/sys

2019-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 6 08:07:41 UTC 2019 Modified Files: src/sys/sys: param.h Log Message: Welcome to NetBSD 8.99.38! Signal code struct and API changes. To generate a diff of this commit: cvs rdiff -u -r1.585 -r1.586 src/sys/sys/param.h

CVS commit: src/sys

2019-05-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 6 08:05:03 UTC 2019 Modified Files: src/sys/kern: kern_sig.c kern_syscall.c src/sys/sys: ptrace.h siginfo.h Log Message: Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers Expand siginfo_t

CVS commit: src/sys

2019-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 3 22:34:21 UTC 2019 Modified Files: src/sys/kern: kern_exec.c kern_fork.c kern_lwp.c kern_sig.c sys_lwp.c src/sys/sys: signalvar.h Log Message: Register KTR events for debugger related signals Register signals

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

2019-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 3 19:06:50 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: nbsd-nat.c Log Message: Improve comment in the GDB NetBSD code To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9

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

2019-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 3 19:03:57 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: infrun.c nbsd-nat.c Log Message: Overwrite waiton_ptid in nbsd-nat, rather than generic core This avoids compatibility issues with remote access to

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

2019-05-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri May 3 07:05:28 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: infrun.c nbsd-nat.c Log Message: Quick clean up the NetBSD support in GDB Changes: - always perform polling on inferior_ptid, never -1 -1 can cause

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

2019-05-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 2 22:52:21 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Adapt t_ptrace_wait* tests for recent kernel changes Adapt AUXV reading loop to handle io.piod_len == 0 as EOF. Temporarily

CVS commit: src/sys/kern

2019-05-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 2 22:23:49 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c kern_sig.c sys_lwp.c Log Message: Introduce fixes for ptrace(2) Stop disabling LWP create and exit events for PT_SYSCALL tracing. PT_SYSCALL disabled EXEC

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

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 2 00:34:06 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Rename and partially enable trace_thread ATF ptrace(2) tests Rename trace_thrad[1234] to more meaningful names: -

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu May 2 00:23:01 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Allow cancelled byte transfer in ptrace(2) again Current GDB depends on it on NetBSD (which is probably a GDB support bug). In future

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

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 23:44:16 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF ptrace(2) tests suspend1 and resume1 now pass Verified on bare metal and in qemu. PR kern/51995 To generate a diff of this

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 22:55:55 UTC 2019 Modified Files: src/sys/kern: sys_lwp.c Log Message: Call MD code in mi_startlwp() before MI check for debugger This allows to get initialized mcontext. To generate a diff of this commit: cvs rdiff

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

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 21:59:32 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF ptrace(2) tests signal9 and signal10 now pass PR kern/51918 To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 21:57:35 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c sys_lwp.c Log Message: Correct passing debugger related events for LWP create and exit Add MI toplevel startlwp function. Switch all userland LWPs to go

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 21:52:35 UTC 2019 Modified Files: src/sys/kern: kern_sig.c Log Message: Assert that debugger event is triggered only for userland LWP All passing ATF ptrace(2) tests still pass. To generate a diff of this commit: cvs

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

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 18:20:23 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new fork/vfork ATF trests in t_ptrace_wait* Add new tests: - fork_detach_forker - vfork_detach_vforker -

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 18:01:54 UTC 2019 Modified Files: src/sys/kern: kern_fork.c kern_sig.c Log Message: Correct handling of corner cases in fork1(9) code under a debugger Correct detaching and SIGKILLing forker and vforker in the middle

CVS commit: src/sys

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 17:21:55 UTC 2019 Modified Files: src/sys/kern: kern_exec.c kern_fork.c kern_sig.c src/sys/sys: signalvar.h Log Message: Add eventswitch() in signal code Route all crash and debugger related signal through

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 17:02:40 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Disallow resuming program with PC=0x0 in ptrace(2) If the address parameter is 0, report error. It's a popular mistake to set Program

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

2019-04-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 30 22:39:31 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF ptrace(2) tests: bytes_transfer_eof Assert that error is returned after attempt to read or write post EOF. To

CVS commit: src/sys/kern

2019-04-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 30 22:32:01 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Reject ptrace(2) PIOD_READ/WRITE operations with length 0 Return EINVAL for such invalid requests. To generate a diff of this commit:

CVS commit: src/sys/kern

2019-04-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 30 20:50:30 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Return EIO for empty memory transfer from ptrace(2) Certain operations of PT_READ/PT_WRITE and PIOD_READ/PIOD_WRITE can result in 0 byte

CVS commit: src/lib/libpthread

2019-04-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 29 20:11:44 UTC 2019 Modified Files: src/lib/libpthread: thrd.c Log Message: Avoid incompatible function pointer casts in thrd_create(3) Use an intermediate function trampoline to workaround different function pointer

CVS commit: src

2019-04-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 27 23:04:32 UTC 2019 Modified Files: src/distrib/sets/lists/comp: mi src/lib/libm: Makefile src/lib/libm/man: nextafter.3 src/lib/libm/src: s_nextafterl.c src/usr.sbin/makemandb: nostem.txt

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

2019-04-26 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 27 00:23:18 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Backport improvements into GCC's sanitizer_linux.cc from more recent LLVM Backport

CVS commit: src/tests/lib

2019-04-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 25 20:48:54 UTC 2019 Modified Files: src/tests/lib/libc/gen: t_fpsetmask.c t_siginfo.c src/tests/lib/libm: t_fenv.c Log Message: Fix typo in 'exceptions' To generate a diff of this commit: cvs rdiff -u -r1.19

CVS commit: src/tests/kernel

2019-04-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 25 19:37:10 UTC 2019 Modified Files: src/tests/kernel: h_segv.c Log Message: Fix typo To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/tests/kernel/h_segv.c Please note that diffs are not public domain;

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

2019-04-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 25 19:15:23 UTC 2019 Modified Files: src/tests/lib/libc/sys: Makefile t_ptrace_wait.c t_ptrace_wait.h Log Message: Introduce check for the support of FPU exceptions If FPU exceptions are unsupported, skip the SIGFPE crash

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

2019-04-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 25 11:47:59 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Do not allow 0 as ILL si_code as it's reserved for SI_USER To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113

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

2019-04-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 25 11:45:12 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: In ATF t_ptrace_wait* SIGILL tests allow any si_code These codes are not portable between CPUs and kernels. Change the checks to

CVS commit: src/lib/libpthread

2019-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 24 21:41:15 UTC 2019 Modified Files: src/lib/libpthread: call_once.c Log Message: Drop error path from C11 call_once The original implementation of C11 threads(3) contained check for error paths, but it was stripped in

CVS commit: src/lib/libpthread

2019-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 24 18:47:54 UTC 2019 Modified Files: src/lib/libpthread: thrd.3 thrd.c threads.h Log Message: Introduce minor changes to the C11 threading library Switch tss_t type from int to pthread_key_t (no functional change as

CVS commit: src/doc

2019-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 24 15:04:51 UTC 2019 Modified Files: src/doc: CHANGES Log Message: libpthread(3): Import C11 thread support library To generate a diff of this commit: cvs rdiff -u -r1.2528 -r1.2529 src/doc/CHANGES Please note that

CVS commit: src

2019-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 24 13:01:52 UTC 2019 Modified Files: src/distrib/sets/lists/base: shl.mi src/distrib/sets/lists/debug: shl.mi src/lib/libpthread: shlib_version Log Message: Bump the libpthread(3) minor number to 4 Added

CVS commit: src

2019-04-24 Thread Kamil Rytarowski
ot; +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Kamil Rytarowski. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met:

CVS commit: src/share/mk

2019-04-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 19 22:06:03 UTC 2019 Modified Files: src/share/mk: bsd.README Log Message: Fix typo cost -> host To generate a diff of this commit: cvs rdiff -u -r1.390 -r1.391 src/share/mk/bsd.README Please note that diffs are not

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

2019-04-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 19 21:54:33 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Fix typo in TEST_VFORK_ENABLED This allows building and running vfork(2) test scenarios correctly. To generate a diff of this

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

2019-04-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 17 15:54:55 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Fix Clang/LLVM build in t_ptrace_wait.c Do not compile functions that might be unused. To generate a diff of this commit: cvs

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

2019-04-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 16 01:44:07 UTC 2019 Modified Files: src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Sync gcc.old GetPcSpBp() with GCC9 (and recent LLVM) Unify all NetBSD ports in

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

2019-04-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 16 01:40:16 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Sync GetPcSpBp() with GCC9 (and recent LLVM) Unify all NetBSD ports in a single

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

2019-04-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 15 16:47:47 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Temporarily ifdef out PTRACE_VFORK and PTRACE_VFORKDONE tests It's not reliable on all ports. sparc and evbarm are known to hang.

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

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 23:23:53 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new tests in ATF t_prace_wait* New tests: - traceme_vfork_fork - traceme_vfork_vfork New tests assert that fork/vfork in

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

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 23:00:01 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new tests traceme_vfork_clone* in ATF t_ptrace_wait* Added tests: - traceme_vfork_clone - traceme_vfork_clone_vm -

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

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 20:20:54 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Add clone_func() in t_ptrace_wait.h To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

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

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 19:25:31 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Validate that clone(2) is handled properly with more ptrace(2) ATF tests New tests: - clone[1-8] - clone_vm[1-8] -

CVS commit: src/share/man/man4

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 17:46:32 UTC 2019 Modified Files: src/share/man/man4: acpifan.4 Log Message: Fix CVS Id To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/acpifan.4 Please note that diffs are not public

CVS commit: src/sys/arch/evbppc/mpc85xx

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 14:47:06 UTC 2019 Modified Files: src/sys/arch/evbppc/mpc85xx: machdep.c Log Message: Fix incorrect CVS Id To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/arch/evbppc/mpc85xx/machdep.c Please

CVS commit: src/sys

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 14:38:06 UTC 2019 Modified Files: src/sys/arch/arm/at91: at91pmc.c src/sys/arch/arm/mpcore: mpcore_a2x_space.c src/sys/arch/evbppc/virtex/dev: cdmacreg.h temacvar.h src/sys/arch/ia64/include:

CVS commit: src/sys

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 11:40:58 UTC 2019 Modified Files: src/sys/arch/mips/cavium/dev: octeon_pow.c octeon_uartreg.h src/sys/dev/iscsi: iscsi_main.c src/sys/net80211: ieee80211_ioctl.c Log Message: Fix CVS Id NFCI To

CVS commit: src/sys/arch/hpcsh/dev/hd64461

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 11:26:13 UTC 2019 Modified Files: src/sys/arch/hpcsh/dev/hd64461: hd64461videoreg.h Log Message: Fix a typo in a comment NFCI To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/sys/dev/ic

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 11:25:33 UTC 2019 Modified Files: src/sys/dev/ic: mc6854reg.h Log Message: Fix a typo in a comment To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ic/mc6854reg.h Please note that diffs are not

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

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 11:23:52 UTC 2019 Modified Files: src/sys/arch/riscv/include: locore.h Log Message: Fix a typo in a comment To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/include/locore.h Please note

CVS commit: src/sys/sys

2019-04-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Apr 11 11:20:46 UTC 2019 Modified Files: src/sys/sys: kcov.h Log Message: Rely on volatile operations in KCOV data types Extra atomicity isn't needed and makes maintenance burden between CPUs. Fixes build issue on

CVS commit: src/sys/kern

2019-04-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 7 21:01:43 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Switch kcov module class to MODULE_CLASS_MISC MODULE_CLASS_ANY is not intended to be used by modules. Noted by To generate a diff of this

CVS commit: src/sys/kern

2019-04-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 7 14:50:41 UTC 2019 Modified Files: src/sys/kern: kern_fork.c Log Message: Add a paranoid racy lock check in child_return() In theory a child could be detached for some reason or another during the time window between

CVS commit: src/regress/libexec/ld.elf_so

2019-04-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 6 16:25:52 UTC 2019 Modified Files: src/regress/libexec/ld.elf_so: Makefile Removed Files: src/regress/libexec/ld.elf_so/expand: Makefile Log Message: Eliminate regress/libexec/ld.elf_so/expand This test does not

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

2019-04-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 6 15:41:54 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_fork.c Log Message: Add new tests in ATF t_fork/t_vfork Verify whether nested fork(2)/vfork(2)/clone(2) calls are supported in a fork(2)ed/vforked(2) child.

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

2019-04-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 6 15:35:09 UTC 2019 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Simplify FORK_TEST in ATF t_ptrace_wait* Reduce the scope of combinations that were planned to be tested from the same function

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

2019-04-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 6 12:34:30 UTC 2019 Modified Files: src/distrib/sets/lists/debug: module.mi Log Message: Register t_ufetchstore.debug in distrib files To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

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