Skip to content

ptrace: fix ptrace_signal() && STOP_DEQUEUED interaction

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1ptrace: fix ptrace_signal() && STOP_DEQUEUED interactionkernel/signal.c+7 -66 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchTejun Heo
1/1A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] ptrace: fix ptrace_signal() && STOP_DEQUEUED interaction

Another very annoying and ancient problem which needs the fix, and any fix obviously adds the subtle user-visible changes.

In short, in general it is simply impossible to know whether PTRACE_CONT(SIGSTOP) will stop the tracee or not.

ee77f075 "signal: Turn SIGNAL_STOP_DEQUEUED into GROUP_STOP_DEQUEUED" makes the things better, at least STOP_DEQUEUED can't be set/cleared by another thread, but still without this patch the behavior is not clearly defined.

Oleg.