Thread (2 messages) flat view 2 messages, 2 authors, 7d ago

Re: [PATCH] powerpc: Fix exit_flags field placement in pt_regs for ptrace

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-07-30 05:42:17
Also in: lkml

On Fri, 24 Jul 2026 01:18:09 +0530, Mukesh Kumar Chaurasiya (IBM) wrote:
Commit d7a6797e0bc1 ("powerpc: add exit_flags field in pt_regs") added
the exit_flags field to struct pt_regs to pass internal exit control
flags (e.g. _TIF_RESTOREALL) from syscall_exit_prepare() to the
low-level assembly exit path.

However, the field was placed in a way that was visible to userspace
tools such as strace via PTRACE_GETREGS, or caused a struct layout or
size regression observable through ptrace. The field is purely
kernel-internal and must not be exposed beyond the user_pt_regs
boundary.

[...]
Applied to powerpc/fixes.

[1/1] powerpc: Fix exit_flags field placement in pt_regs for ptrace
      https://git.kernel.org/powerpc/c/263e5159e00aa46bf26f3496ff7aae1fc9a6c826

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help