Skip to content

ptrace: syscall-exit && stepping fixes

Oleg Nesterov linux-arch lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ptrace: introduce user_single_step_siginfo() helperinclude/linux/ptrace.h+12 -00 replies
2/5ptrace: powerpc: implement user_single_step_siginfo()arch/powerpc/include/asm/ptrace.h arch/powerpc/kernel/traps.c+11 -00 replies
3/5ptrace: change tracehook_report_syscall_exit() to handle steppinginclude/linux/tracehook.h+7 -03 replies
4/5ptrace: x86: implement user_single_step_siginfo()arch/x86/include/asm/ptrace.h arch/x86/kernel/ptrace.c+23 -90 replies
5/5ptrace: x86: change syscall_trace_leave() to rely on tracehook when steppingarch/x86/kernel/ptrace.c+7 -140 replies

Reviews trailers per patch

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

PatchRoland McGrath
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] ptrace: syscall-exit && stepping fixes

Changes: added x86 maintainers + linux-arch, otherwise unchanged.

Currently PTRACE_SINGLESTEP after syscall_exit stop is not consistent across different machines, and we have different problems depending on arch/.

As Roland suggests, we should move the arch-dependent logic into the tracehook_report_syscall_exit() and unify/fix the behaviour.

Oleg.