* [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info
@ 2026-01-21 15:55 Marco Cavenati
2026-01-21 16:56 ` Dmitry V. Levin
2026-02-07 11:59 ` Marco Cavenati
0 siblings, 2 replies; 10+ messages in thread
From: Marco Cavenati @ 2026-01-21 15:55 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man, Dmitry V . Levin, Marco Cavenati
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 <Marco.Cavenati@eurecom.fr>
---
AUTHORS | 1 +
man/man2/ptrace.2 | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/AUTHORS b/AUTHORS
index 9035d405a..f332932e1 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -497,6 +497,7 @@ Marc-André Lureau <marcandre.lureau@redhat.com>
Marcela Maslanova <mmaslano@redhat.com>
Marcin Ślusarz <marcin.slusarz@gmail.com>
Marco Bonelli <marco@mebeim.net>
+Marco Cavenati <marco.cavenati@eurecom.fr>
Marcus Folkesson <marcus.folkesson@gmail.com>
Marcus Gelderie <redmnic@gmail.com>
Marcus Huewe <suse-tux@gmx.de>
diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2
index 2da43dcb9..45d4c4c84 100644
--- a/man/man2/ptrace.2
+++ b/man/man2/ptrace.2
@@ -1042,6 +1042,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 */
@@ -1121,6 +1123,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
--
2.51.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-01-21 15:55 [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info Marco Cavenati @ 2026-01-21 16:56 ` Dmitry V. Levin 2026-02-10 20:14 ` Alejandro Colomar 2026-02-07 11:59 ` Marco Cavenati 1 sibling, 1 reply; 10+ messages in thread From: Dmitry V. Levin @ 2026-01-21 16:56 UTC (permalink / raw) To: Marco Cavenati; +Cc: Alejandro Colomar, linux-man On Wed, Jan 21, 2026 at 04:55:41PM +0100, Marco Cavenati wrote: > 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 <Marco.Cavenati@eurecom.fr> > --- > AUTHORS | 1 + > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) > > diff --git a/AUTHORS b/AUTHORS > index 9035d405a..f332932e1 100644 > --- a/AUTHORS > +++ b/AUTHORS > @@ -497,6 +497,7 @@ Marc-André Lureau <marcandre.lureau@redhat.com> > Marcela Maslanova <mmaslano@redhat.com> > Marcin Ślusarz <marcin.slusarz@gmail.com> > Marco Bonelli <marco@mebeim.net> > +Marco Cavenati <marco.cavenati@eurecom.fr> > Marcus Folkesson <marcus.folkesson@gmail.com> > Marcus Gelderie <redmnic@gmail.com> > Marcus Huewe <suse-tux@gmx.de> > diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2 > index 2da43dcb9..45d4c4c84 100644 > --- a/man/man2/ptrace.2 > +++ b/man/man2/ptrace.2 > @@ -1042,6 +1042,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 */ > @@ -1121,6 +1123,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 Looks good, thanks! -- ldv ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-01-21 16:56 ` Dmitry V. Levin @ 2026-02-10 20:14 ` Alejandro Colomar 2026-02-10 20:53 ` Dmitry V. Levin 0 siblings, 1 reply; 10+ messages in thread From: Alejandro Colomar @ 2026-02-10 20:14 UTC (permalink / raw) To: Dmitry V. Levin; +Cc: Marco Cavenati, linux-man [-- Attachment #1: Type: text/plain, Size: 1019 bytes --] Hi Marco, Dmitry, I'm back. :-) On 2026-01-21T18:56:39+0200, Dmitry V. Levin wrote: > On Wed, Jan 21, 2026 at 04:55:41PM +0100, Marco Cavenati wrote: > > 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 <Marco.Cavenati@eurecom.fr> Thanks! I've applied the patch. > > --- > > AUTHORS | 1 + > > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > > 2 files changed, 22 insertions(+) > > > > diff --git a/AUTHORS b/AUTHORS > > index 9035d405a..f332932e1 100644 > > --- a/AUTHORS > > +++ b/AUTHORS [...] > Looks good, thanks! Should I take that as a Reviewed-by? Have a lovely night! Alex -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-10 20:14 ` Alejandro Colomar @ 2026-02-10 20:53 ` Dmitry V. Levin 2026-02-10 21:20 ` Alejandro Colomar 0 siblings, 1 reply; 10+ messages in thread From: Dmitry V. Levin @ 2026-02-10 20:53 UTC (permalink / raw) To: Alejandro Colomar; +Cc: Marco Cavenati, linux-man Hi, On Tue, Feb 10, 2026 at 09:14:29PM +0100, Alejandro Colomar wrote: > Hi Marco, Dmitry, > > I'm back. :-) > > On 2026-01-21T18:56:39+0200, Dmitry V. Levin wrote: > > On Wed, Jan 21, 2026 at 04:55:41PM +0100, Marco Cavenati wrote: > > > 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 <Marco.Cavenati@eurecom.fr> > > Thanks! I've applied the patch. > > > > --- > > > AUTHORS | 1 + > > > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > > > 2 files changed, 22 insertions(+) > > > > > > diff --git a/AUTHORS b/AUTHORS > > > index 9035d405a..f332932e1 100644 > > > --- a/AUTHORS > > > +++ b/AUTHORS > [...] > > > Looks good, thanks! > > Should I take that as a Reviewed-by? Feel free to add: Reviewed-by: Dmitry V. Levin <ldv@strace.io> -- ldv ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-10 20:53 ` Dmitry V. Levin @ 2026-02-10 21:20 ` Alejandro Colomar 2026-02-10 21:41 ` Dmitry V. Levin 0 siblings, 1 reply; 10+ messages in thread From: Alejandro Colomar @ 2026-02-10 21:20 UTC (permalink / raw) To: Dmitry V. Levin; +Cc: Marco Cavenati, linux-man [-- Attachment #1: Type: text/plain, Size: 515 bytes --] Hi Dmitry, On 2026-02-10T22:53:47+0200, Dmitry V. Levin wrote: > > > Looks good, thanks! > > > > Should I take that as a Reviewed-by? > > Feel free to add: > > Reviewed-by: Dmitry V. Levin <ldv@strace.io> Thanks! I'll quote it, if you don't mind, as name-addreess pairs can't contain an unquoted '.' --git(1) misbehaves on the '.', unless they fixed it recently--. Reviewed-by: "Dmitry V. Levin" <ldv@strace.io> Is that okay? Cheers, Alex -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-10 21:20 ` Alejandro Colomar @ 2026-02-10 21:41 ` Dmitry V. Levin 2026-02-10 21:52 ` Alejandro Colomar 0 siblings, 1 reply; 10+ messages in thread From: Dmitry V. Levin @ 2026-02-10 21:41 UTC (permalink / raw) To: Alejandro Colomar; +Cc: Marco Cavenati, linux-man On Tue, Feb 10, 2026 at 10:20:02PM +0100, Alejandro Colomar wrote: > Hi Dmitry, > > On 2026-02-10T22:53:47+0200, Dmitry V. Levin wrote: > > > > Looks good, thanks! > > > > > > Should I take that as a Reviewed-by? > > > > Feel free to add: > > > > Reviewed-by: Dmitry V. Levin <ldv@strace.io> > > Thanks! I'll quote it, if you don't mind, as name-addreess pairs can't > contain an unquoted '.' --git(1) misbehaves on the '.', unless they > fixed it recently--. > > Reviewed-by: "Dmitry V. Levin" <ldv@strace.io> > > Is that okay? I've been using the unquoted format for a while, but the quoted one is fine as well. Thanks, -- ldv ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-10 21:41 ` Dmitry V. Levin @ 2026-02-10 21:52 ` Alejandro Colomar 0 siblings, 0 replies; 10+ messages in thread From: Alejandro Colomar @ 2026-02-10 21:52 UTC (permalink / raw) To: Dmitry V. Levin; +Cc: Marco Cavenati, linux-man [-- Attachment #1: Type: text/plain, Size: 1484 bytes --] On 2026-02-10T23:41:45+0200, Dmitry V. Levin wrote: > On Tue, Feb 10, 2026 at 10:20:02PM +0100, Alejandro Colomar wrote: > > Hi Dmitry, > > > > On 2026-02-10T22:53:47+0200, Dmitry V. Levin wrote: > > > > > Looks good, thanks! > > > > > > > > Should I take that as a Reviewed-by? > > > > > > Feel free to add: > > > > > > Reviewed-by: Dmitry V. Levin <ldv@strace.io> > > > > Thanks! I'll quote it, if you don't mind, as name-addreess pairs can't > > contain an unquoted '.' --git(1) misbehaves on the '.', unless they > > fixed it recently--. > > > > Reviewed-by: "Dmitry V. Levin" <ldv@strace.io> > > > > Is that okay? > > I've been using the unquoted format for a while, but the quoted one > is fine as well. I've tried to reproduce it now, and they seem to have fixed it. When the patch is read by git-send-email(1) and it gets the addresses from the trailer of the patch, it previously would have transformed Dmitry V. Levin <ldv@strace.io> into Dmitry V. Levin <ldv@strace.io> Some depdenency (a library) of git(1) interpreted the '.' as ending a sentence. I've tried now, and it transforms Dmitry V. Levin <ldv@strace.io> into "Dmitry V. Levin" <ldv@strace.io> thus doing the right thing. However, I expect some software might still misbehave. I remember having reproduced the bug not so long ago (maybe one year?). Cheers, Alex > > Thanks, > > > -- > ldv > -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-01-21 15:55 [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info Marco Cavenati 2026-01-21 16:56 ` Dmitry V. Levin @ 2026-02-07 11:59 ` Marco Cavenati 2026-02-07 18:24 ` Alejandro Colomar 1 sibling, 1 reply; 10+ messages in thread From: Marco Cavenati @ 2026-02-07 11:59 UTC (permalink / raw) To: Alejandro Colomar; +Cc: linux-man, Dmitry V . Levin Hi Alex, Gentle ping, just checking whether this patch got lost. Happy to revise if needed. Thanks Marco On Wednesday, January 21, 2026 16:55 CET, Marco Cavenati <Marco.Cavenati@eurecom.fr> wrote: > 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 <Marco.Cavenati@eurecom.fr> > --- > AUTHORS | 1 + > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) > > diff --git a/AUTHORS b/AUTHORS > index 9035d405a..f332932e1 100644 > --- a/AUTHORS > +++ b/AUTHORS > @@ -497,6 +497,7 @@ Marc-André Lureau <marcandre.lureau@redhat.com> > Marcela Maslanova <mmaslano@redhat.com> > Marcin Ślusarz <marcin.slusarz@gmail.com> > Marco Bonelli <marco@mebeim.net> > +Marco Cavenati <marco.cavenati@eurecom.fr> > Marcus Folkesson <marcus.folkesson@gmail.com> > Marcus Gelderie <redmnic@gmail.com> > Marcus Huewe <suse-tux@gmx.de> > diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2 > index 2da43dcb9..45d4c4c84 100644 > --- a/man/man2/ptrace.2 > +++ b/man/man2/ptrace.2 > @@ -1042,6 +1042,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 */ > @@ -1121,6 +1123,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 > -- > 2.51.0 > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-07 11:59 ` Marco Cavenati @ 2026-02-07 18:24 ` Alejandro Colomar 2026-02-07 18:38 ` Marco Cavenati 0 siblings, 1 reply; 10+ messages in thread From: Alejandro Colomar @ 2026-02-07 18:24 UTC (permalink / raw) To: Marco Cavenati; +Cc: linux-man, Dmitry V . Levin [-- Attachment #1: Type: text/plain, Size: 3233 bytes --] Hi Marco, On 2026-02-07T12:59:39+0100, Marco Cavenati wrote: > Hi Alex, > > Gentle ping, just checking whether this patch got lost. > Happy to revise if needed. Thanks! No, it didn't. I was just too busy last week with a meeting of the C Committee, plus the preparation before it, and also preparing a release of the man-pages for this or next week. I need some sleep for a few days, and next week I'll be back at reviewing stuff. :-) Have a lovely night! Alex > > Thanks > Marco > > On Wednesday, January 21, 2026 16:55 CET, Marco Cavenati <Marco.Cavenati@eurecom.fr> wrote: > > > 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 <Marco.Cavenati@eurecom.fr> > > --- > > AUTHORS | 1 + > > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > > 2 files changed, 22 insertions(+) > > > > diff --git a/AUTHORS b/AUTHORS > > index 9035d405a..f332932e1 100644 > > --- a/AUTHORS > > +++ b/AUTHORS > > @@ -497,6 +497,7 @@ Marc-André Lureau <marcandre.lureau@redhat.com> > > Marcela Maslanova <mmaslano@redhat.com> > > Marcin Ślusarz <marcin.slusarz@gmail.com> > > Marco Bonelli <marco@mebeim.net> > > +Marco Cavenati <marco.cavenati@eurecom.fr> > > Marcus Folkesson <marcus.folkesson@gmail.com> > > Marcus Gelderie <redmnic@gmail.com> > > Marcus Huewe <suse-tux@gmx.de> > > diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2 > > index 2da43dcb9..45d4c4c84 100644 > > --- a/man/man2/ptrace.2 > > +++ b/man/man2/ptrace.2 > > @@ -1042,6 +1042,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 */ > > @@ -1121,6 +1123,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 > > -- > > 2.51.0 > > > -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info 2026-02-07 18:24 ` Alejandro Colomar @ 2026-02-07 18:38 ` Marco Cavenati 0 siblings, 0 replies; 10+ messages in thread From: Marco Cavenati @ 2026-02-07 18:38 UTC (permalink / raw) To: Alejandro Colomar; +Cc: linux-man Well in that case, I wish you a great and recharging rest! And sorry for the ping :) Marco On Saturday, February 07, 2026 19:24 CET, Alejandro Colomar <alx@kernel.org> wrote: > Hi Marco, > > On 2026-02-07T12:59:39+0100, Marco Cavenati wrote: > > Hi Alex, > > > > Gentle ping, just checking whether this patch got lost. > > Happy to revise if needed. > > Thanks! No, it didn't. I was just too busy last week with a meeting of > the C Committee, plus the preparation before it, and also preparing a > release of the man-pages for this or next week. I need some sleep for > a few days, and next week I'll be back at reviewing stuff. :-) > > > Have a lovely night! > Alex > > > > > Thanks > > Marco > > > > On Wednesday, January 21, 2026 16:55 CET, Marco Cavenati <Marco.Cavenati@eurecom.fr> wrote: > > > > > 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 <Marco.Cavenati@eurecom.fr> > > > --- > > > AUTHORS | 1 + > > > man/man2/ptrace.2 | 21 +++++++++++++++++++++ > > > 2 files changed, 22 insertions(+) > > > > > > diff --git a/AUTHORS b/AUTHORS > > > index 9035d405a..f332932e1 100644 > > > --- a/AUTHORS > > > +++ b/AUTHORS > > > @@ -497,6 +497,7 @@ Marc-André Lureau <marcandre.lureau@redhat.com> > > > Marcela Maslanova <mmaslano@redhat.com> > > > Marcin Ślusarz <marcin.slusarz@gmail.com> > > > Marco Bonelli <marco@mebeim.net> > > > +Marco Cavenati <marco.cavenati@eurecom.fr> > > > Marcus Folkesson <marcus.folkesson@gmail.com> > > > Marcus Gelderie <redmnic@gmail.com> > > > Marcus Huewe <suse-tux@gmx.de> > > > diff --git a/man/man2/ptrace.2 b/man/man2/ptrace.2 > > > index 2da43dcb9..45d4c4c84 100644 > > > --- a/man/man2/ptrace.2 > > > +++ b/man/man2/ptrace.2 > > > @@ -1042,6 +1042,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 */ > > > @@ -1121,6 +1123,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 > > > -- > > > 2.51.0 > > > > > > > -- > <https://www.alejandro-colomar.es> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-02-10 21:52 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-01-21 15:55 [PATCH] man/man2/ptrace.2: Add PTRACE_SET_SYSCALL_INFO, update struct ptrace_syscall_info Marco Cavenati 2026-01-21 16:56 ` Dmitry V. Levin 2026-02-10 20:14 ` Alejandro Colomar 2026-02-10 20:53 ` Dmitry V. Levin 2026-02-10 21:20 ` Alejandro Colomar 2026-02-10 21:41 ` Dmitry V. Levin 2026-02-10 21:52 ` Alejandro Colomar 2026-02-07 11:59 ` Marco Cavenati 2026-02-07 18:24 ` Alejandro Colomar 2026-02-07 18:38 ` Marco Cavenati
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox