Skip to content

arm64: Fix single-step handling and syscall tracing

Will Deacon linux-arm-kernel stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 8 repliesIn review
  2. v24 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7arm64: ptrace: Consistently use pseudo-singlestep exceptionsarch/arm64/include/asm/thread_info.h arch/arm64/kernel/ptrace.c arch/arm64/kernel/signal.c +1 more+23 -161 reply
2/7arm64: ptrace: Override SPSR.SS when single-stepping is enabledarch/arm64/include/asm/debug-monitors.h arch/arm64/kernel/debug-monitors.c arch/arm64/kernel/ptrace.c+20 -61 reply
3/7arm64: compat: Ensure upper 32 bits of x0 are zero on syscall returnarch/arm64/include/asm/syscall.h arch/arm64/kernel/syscall.c+14 -11 reply
4/7arm64: ptrace: Add a comment describing our syscall entry/exit trap ABIarch/arm64/kernel/ptrace.c+14 -20 replies
5/7arm64: syscall: Expand the comment about ptrace and syscall(-1)arch/arm64/kernel/syscall.c+15 -10 replies
6/7arm64: ptrace: Use NO_SYSCALL instead of -1 in syscall_trace_enter()arch/arm64/kernel/ptrace.c+2 -23 replies
7/7arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEParch/arm64/kernel/debug-monitors.c+2 -20 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchLuis Machado
1/7
2/7T-b
3/7
4/7
5/7
6/7
7/7

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

Read the v3 thread

Cover letter [PATCH v3 0/7] arm64: Fix single-step handling and syscall tracing

Hi folks,

This is version three of the patches I previous posted here:

v1: https://lore.kernel.org/r/[email protected]
v2: https://lore.kernel.org/r/[email protected]

This version includes some changes I've been hacking on in relation to syscall entry/exit, as it seemed worth lumping all this together. I've also reordered the series to put the fixes at the start.

Luis -- did you manage to test v2? I'd quite like to queue some of this soon. If you don't have time, how can I run the GDB testsuite myself? I tried doing it a _long_ time ago but I remember there being a lot of failures and flakey tests, so it wasn't very helpful. I have arm64 hardware running Debian so it's just a question of which buttons to press :)

Cheers,

Will

Cc Mark Rutland <[email protected]>
Cc Luis Machado <[email protected]>
Cc Keno Fischer <[email protected]>
Cc Kees Cook <[email protected]>

--->8

Will Deacon (7):
arm64: ptrace: Consistently use pseudo-singlestep exceptions
arm64: ptrace: Override SPSR.SS when single-stepping is enabled
arm64: compat: Ensure upper 32 bits of x0 are zero on syscall return
arm64: ptrace: Add a comment describing our syscall entry/exit trap
ABI
arm64: syscall: Expand the comment about ptrace and syscall(-1)
arm64: ptrace: Use NO_SYSCALL instead of -1 in syscall_trace_enter()
arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP

 arch/arm64/include/asm/debug-monitors.h |  2 +
 arch/arm64/include/asm/syscall.h        | 12 +++++-
 arch/arm64/include/asm/thread_info.h    |  1 +
 arch/arm64/kernel/debug-monitors.c      | 24 +++++++++---
 arch/arm64/kernel/ptrace.c              | 49 +++++++++++++++++++------
 arch/arm64/kernel/signal.c              | 11 +-----
 arch/arm64/kernel/syscall.c             | 21 ++++++++++-
 7 files changed, 90 insertions(+), 30 deletions(-)
Signature · 7 lines
2.27.0.383.g050319c2ae-goog


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel