[PATCH v3] arm64: ptrace: don't warn on missing siginfo in a group-stop

Catalin Marinas catalin.marinas at arm.com
Fri Nov 13 09:38:16 PST 2026


On Thu, 05 Nov 2026 19:30:51 +0800, Zhao Gongyi wrote:
> PTRACE_ATTACH to a group-stopped child can enter do_jobctl_trap(),
> which calls ptrace_stop() without siginfo. If the tracer writes
> NT_ARM_SYSTEM_CALL, system_call_set() can change syscallno from
> NO_SYSCALL before update_syscall_orig_x0_after_ptrace() checks
> last_siginfo. WARN_ON_ONCE(!info) then fires for a valid ptrace stop.
> 
> Keep the early return when siginfo is absent, but remove the warning.
> This leaves orig_x0 untouched at a non-seized group-stop and preserves
> the existing syscall-exit-stop handling.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks! I modified the code comment
as per Will's suggestion.

[1/1] arm64: ptrace: don't warn on missing siginfo in a group-stop
      https://git.kernel.org/arm64/c/5306f124f317



More information about the linux-arm-kernel mailing list