opnsense-src/tests/sys/kern
Andrew Turner 658631a37d Add PT_GETREGSET
This adds the PT_GETREGSET and PT_SETREGSET ptrace types. These can be
used to access all the registers from a specified core dump note type.
The NT_PRSTATUS and NT_FPREGSET notes are initially supported. Other
machine-dependant types are expected to be added in the future.

The ptrace addr points to a struct iovec pointing at memory to hold the
registers along with its length. On success the length in the iovec is
updated to tell userspace the actual length the kernel wrote or, if the
base address is NULL, the length the kernel would have written.

Because the data field is an int the arguments are backwards when
compared to the Linux PTRACE_GETREGSET call.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19831

(cherry picked from commit 548a2ec49b)
2022-05-12 15:12:59 -07:00
..
acct DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
execve tests: add a basic test for argc == 0 2022-02-10 14:21:59 -06:00
pipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
basic_signal.c Stop single stepping in signal handers on arm64 2022-02-22 16:23:07 +00:00
coredump_phnum_helper.c Have the coredump_phnum test ask for the page size 2022-05-03 15:04:04 +01:00
coredump_phnum_test.sh coredump_phnum_test: handle full file system gracefully 2019-10-11 21:23:46 +00:00
fdgrowtable_test.c fdgrowtable_test.c: appease gcc 2020-12-11 22:52:16 +00:00
kcov.c Allow the kcov buffer to be mmaped multiple times. 2019-02-21 10:11:15 +00:00
kern_copyin.c riscv: fix VM_MAXUSER_ADDRESS checks in asm routines 2021-10-15 12:22:13 -03:00
kern_descrip_test.c Fix problems in the kern_maxfiles__increase test 2019-10-08 13:43:05 +00:00
kill_zombie.c Add a test for kill() on a zombie 2019-08-06 21:17:22 +00:00
ktls_test.c ktls: Support for TLS 1.3 receive offload. 2022-04-29 14:07:27 -07:00
libkern_crc32.c tests/sys/kern/crc32: Check for SSE4.2 before using it 2021-04-22 10:41:09 +01:00
Makefile Add simple kyua tests for the mod* system calls. 2022-05-11 10:29:45 -07:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile.inc Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
module_test.c module_test: Fix some assignments to errno intended to be tests. 2022-05-11 10:30:09 -07:00
pdeathsig.c sys.kern.pdeathsig.signal_delivered_ptrace: fix startup. 2019-08-19 09:33:09 +00:00
pdeathsig_helper.c Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GET 2018-04-20 15:19:27 +00:00
ptrace_test.c Add PT_GETREGSET 2022-05-12 15:12:59 -07:00
reaper.c Reparent a child of pdfork(2) to its reaper when the procdesc is closed. 2018-10-16 20:06:56 +00:00
sendfile_helper.c add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sendfile_test.sh add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sigaltstack.c Maybe make gcc happy 2018-11-30 23:47:57 +00:00
sonewconn_overflow.py Clear the dmesg buffer to prevent rotating causes issues 2020-10-06 04:18:42 +00:00
sonewconn_overflow.sh Add a regression test for the changes in r359922 and r359923. 2020-04-16 20:07:34 +00:00
subr_physmem_test.c Handle non-page aligned/sized memory in physmem 2022-05-03 15:04:04 +01:00
sys_getrandom.c Appease GCC 4.2 2018-03-21 04:44:19 +00:00
sysctl_kern_proc.c tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2022-01-16 10:40:39 -05:00
unix_passfd_test.c Unbreak MSG_CMSG_CLOEXEC 2021-04-10 13:52:15 +01:00
unix_seqpacket_test.c Send all of data, not just a portion of it 2017-05-28 09:21:28 +00:00
unix_socketpair_test.c Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
waitpid_nohang.c wait: Do not copyout uninitialized status/rusage/wrusage. 2016-09-09 21:58:48 +00:00