Re: [PATCH v3] arm64: ptrace: don't warn on missing siginfo in a group-stop
From: Catalin Marinas
Date: Fri Nov 13 2026 - 13:14:55 EST
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