From: Marco Cavenati Date: Wed, 21 Jan 2026 15:55:41 +0000 (+0100) Subject: man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info X-Git-Tag: man-pages-6.17~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66ffdf72cca8530443183497850b0af0a567a66d;p=thirdparty%2Fman-pages.git man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info Add documentation for the new ptrace request PTRACE_SET_SYSCALL_INFO, introduced in Linux 6.16. Add 'reserved' and 'flags' fields of struct ptrace_syscall_info. This description is based on kernel commit 26bb32768fe6552de044f782a58b3272073fbfc0 ("ptrace: introduce PTRACE_SET_SYSCALL_INFO request") by Dmitry V. Levin. Signed-off-by: Marco Cavenati Message-ID: <20260121155550.281916-1-Marco.Cavenati@eurecom.fr> Reviewed-by: "Dmitry V. Levin" Message-ID: <20260210205347.GA31604@strace.io> Signed-off-by: Alejandro Colomar --- diff --git a/AUTHORS b/AUTHORS index 675fc8ea5..74e685dbb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -508,6 +508,7 @@ Marc-André Lureau Marcela Maslanova Marcin Ślusarz Marco Bonelli +Marco Cavenati Marcus Folkesson Marcus Gelderie Marcus Huewe diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2 index dc2f83bee..a15bad7d3 100644 --- a/man/man2/ptrace.2 +++ b/man/man2/ptrace.2 @@ -1045,6 +1045,8 @@ structure contains the following fields: .EX struct ptrace_syscall_info { __u8 op; /* Type of system call stop */ + __u8 reserved; /* Reserved for future use, must be zero */ + __u16 flags; /* Reserved for future use, must be zero */ __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */ __u64 instruction_pointer; /* CPU instruction pointer */ __u64 stack_pointer; /* CPU stack pointer */ @@ -1124,6 +1126,25 @@ is limited to type unless .B PTRACE_O_TRACESYSGOOD option is set before the corresponding system call stop has occurred. +.TP +.BR PTRACE_SET_SYSCALL_INFO " (since Linux 6.16)" +.\" commit 26bb32768fe6552de044f782a58b3272073fbfc0 +Modify information about the system call that caused the stop. +The +.I data +argument is a pointer to +.I struct ptrace_syscall_info +that specifies the system call information to be set. +The +.I addr +argument should be set to +.IR "sizeof(struct ptrace_syscall_info)" . +Only the +.IR nr , +.IR args , +and +.I rval +fields can be modified. .\" .SS Death under ptrace When a (possibly multithreaded) process receives a killing signal