Skip to content

arm64: probes: fixes and cleanup

Mark Rutland linux-arm-kernel stable 1 version Applied

Status from this message: Applied to arm64 (for-next/probes), thanks! The branch also contains the

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6arm64: probes: Remove broken LDR (literal) uprobe supportarch/arm64/kernel/probes/decode-insn.c+11 -50 replies
2/6arm64: probes: Fix simulate_ldr*_literal()arch/arm64/kernel/probes/simulate-insn.c+7 -110 replies
3/6arm64: probes: Fix uprobes for big-endian kernelsarch/arm64/include/asm/uprobes.h arch/arm64/kernel/probes/uprobes.c+5 -70 replies
4/6arm64: probes: Move kprobes-specific fieldsarch/arm64/include/asm/probes.h arch/arm64/kernel/probes/kprobes.c+18 -200 replies
5/6arm64: probes: Cleanup kprobes endianness conversionsarch/arm64/include/asm/probes.h arch/arm64/kernel/probes/decode-insn.c arch/arm64/kernel/probes/kprobes.c+8 -70 replies
6/6arm64: probes: Remove probe_opcode_tarch/arm64/include/asm/probes.h arch/arm64/kernel/probes/decode-insn.c arch/arm64/kernel/probes/decode-insn.h +1 more+5 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] arm64: probes: fixes and cleanup

These patches address some issues I spotted while looking at kprobes and uprobes.

Patch 1 is the most pressing, as a uprobes user can trigger a kernel BUG(). Patches 2 and 3 fix latent endianness bugs which only manifest on big-endian kernels, and patchs 4-6 clean things up so that it's harder to get this wrong again in future.

Mark.

Mark Rutland (6):
arm64: probes: Remove broken LDR (literal) uprobe support
arm64: probes: Fix simulate_ldr*_literal()
arm64: probes: Fix uprobes for big-endian kernels
arm64: probes: Move kprobes-specific fields
arm64: probes: Cleanup kprobes endianness conversions
arm64: probes: Remove probe_opcode_t

 arch/arm64/include/asm/probes.h          | 11 +++----
 arch/arm64/include/asm/uprobes.h         |  8 ++---
 arch/arm64/kernel/probes/decode-insn.c   | 22 ++++++++-----
 arch/arm64/kernel/probes/decode-insn.h   |  2 +-
 arch/arm64/kernel/probes/kprobes.c       | 39 ++++++++++++------------
 arch/arm64/kernel/probes/simulate-insn.c | 18 +++++------
 arch/arm64/kernel/probes/uprobes.c       |  8 ++---
 7 files changed, 53 insertions(+), 55 deletions(-)
Signature · 1 line
2.30.2