opnsense-src/sys
Andrew Turner 548a2ec49b 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
2022-01-27 11:40:34 +00:00
..
amd64 Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
arm Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
arm64 Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam ses: minor cleanup 2022-01-19 12:08:03 -07:00
cddl Teach DTrace about BTI on arm64 2022-01-19 12:07:35 +00:00
compat Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
conf linuxkpi: Add i2c support 2022-01-25 16:15:39 +01:00
contrib zfs: Fix zvol_cdev_open locking 2022-01-26 18:37:52 +00:00
crypto crypto: Add an API supporting curve25519. 2022-01-24 15:27:39 -08:00
ddb ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
dev hwpmc(4): Fix a typo in a sysctl description 2022-01-26 20:18:57 +01:00
dts add overlay for enabling spi0 on allwinner h3 2022-01-26 11:42:20 +02:00
fs nullfs: ansify fs/nullfs/null_subr.c 2022-01-27 01:01:45 +01:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom g_mirror: don't fail reads while losing next-to-last disk 2022-01-27 13:22:52 +02:00
gnu
i386 Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
isa sys/isa: Use C99 fixed-width integer types. 2021-12-28 09:41:57 -08:00
kern Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
kgssapi
libkern sys/libkern: Use C99 fixed-width integer types. 2021-12-28 09:42:11 -08:00
modules add overlay for enabling spi0 on allwinner h3 2022-01-26 11:42:20 +02:00
net netisr: serialize/restore m_pkthdr.rcvif when queueing mbufs 2022-01-26 21:58:50 -08:00
net80211 net80211: ieee80211_dump_node() cosmetics 2022-01-17 00:01:46 +00:00
netgraph domains: make domain_init() initialize only global state 2022-01-03 10:15:22 -08:00
netinet extra_tcp_stacks: Fix two typos in source code comments 2022-01-26 18:02:55 +01:00
netinet6 nd6: use CARP link level address in SLLAO for NS sent out 2022-01-24 21:02:47 -08:00
netipsec IPsec: Use protocol-specific malloc types instead of M_XDATA. 2022-01-24 15:27:39 -08:00
netpfil dummynet: use m_rcvif_serialize/restore when queueing packets 2022-01-26 21:58:50 -08:00
netsmb
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed domains: init with standard SYSINIT(9) or VNET_SYSINIT() 2022-01-03 10:15:22 -08:00
opencrypto opencrypto/xform_*.h: Trim scope of included headers. 2022-01-25 15:21:22 -08:00
powerpc Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
riscv Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
rpc sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
teken
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs Avoid unnecessary setting of UFS flag requesting fsck(8) be run. 2022-01-09 16:18:28 -08:00
vm vm_pageout_scans: correct detection of active object 2022-01-22 19:34:32 +02:00
x86 atrtc: Install address space handler for \_SB and its descendant. 2022-01-21 15:32:30 +09:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00