Skip to content

Fixes and cleanups in PTRACE_SETOPTIONS

Denys Vlasenko lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ptrace: don't modify flags on PTRACE_SETOPTIONS failurekernel/ptrace.c+4 -14 replies
2/2ptrace: simplify PTRACE_foo constants and PTRACE_SETOPTIONS codeinclude/linux/ptrace.h kernel/ptrace.c+23 -411 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTejun Heo
1/2A-b
2/2A-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/2] Fixes and cleanups in PTRACE_SETOPTIONS

This patchset has two changes.

First patch makes ptrace(PTRACE_SETOPTIONS, pid, 0, <bogus value>) to error out *without* changing any task->ptrace bits.

Second patch is a cleanup: PTRACE_SETOPTIONS code clears all option bits in task->ptrace, then sets bits one-by-one. This is butt-ugly.

Signature · 1 line
vda