Skip to content

arm64: Fix handling of tracer updates to x0 on syscall entry

Will Deacon linux-arm-kernel lkml 2 versions – Applied

Status from this message: Applied to arm64 (for-next/ptrace), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyApplied
  2. v31 patch 1 replySuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: ptrace: Keep 'orig_x0' in-sync with x0 on syscall entryarch/arm64/kernel/ptrace.c+50 -00 replies
2/2arm64: syscall: Pass 'orig_x0' as first argument to native system callarch/arm64/include/asm/syscall_wrapper.h+9 -40 replies

Reviews trailers per patch

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

PatchJinjie Ruan
1/2T-b
2/2

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

Read the v4 thread

Cover letter [PATCH v4 0/2] arm64: Fix handling of tracer updates to x0 on syscall entry

Hi all,

This is version 4 of the patch previously posted here:

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

Changes since v3 include:

- Add an additional patch to pass orig_x0 as the first syscall argument for native tasks (Jinjie)
- Move WARN_ON_ONCE() after checking regs->syscallno (Sashiko)
- Add Tested-by from Jinjie.

Cheers,

Will

Cc Kees Cook <[email protected]>
Cc Jinjie Ruan <[email protected]>
Cc Mark Rutland <[email protected]>

--->8

Will Deacon (2):
arm64: ptrace: Keep 'orig_x0' in-sync with x0 on syscall entry
arm64: syscall: Pass 'orig_x0' as first argument to native system call

 arch/arm64/include/asm/syscall_wrapper.h | 13 ++++--
 arch/arm64/kernel/ptrace.c               | 50 ++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 4 deletions(-)
Signature · 1 line
2.55.0.508.g3f0d502094-goog