Skip to content

arm: kprobes: Fix to prohibit probing on unsafe functions

Masami Hiramatsu linux-arm-kernel lkml stable 2 versions – In review

Get series with b4
b4 am 152540727123.29650.13679359124038587629.stgit@devbox

Versions newest first · linked by author and title

  1. v3 Latest4 patches 7 repliesIn review
  2. v11 patch 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm: kprobes: Fix to use get_kprobe_ctlblk after irq-disabedarch/arm/probes/kprobes/opt-arm.c+2 -10 replies
2/4arm: kprobes: Prohibit probing on optimized_callbackarch/arm/probes/kprobes/opt-arm.c+1 -00 replies
3/4arm: kprobes: Prohibit kprobes on do_undefinstrarch/arm/kernel/traps.c+4 -10 replies
4/4arm: kprobes: Prohibit kprobes on get_user functionsarch/arm/include/asm/assembler.h arch/arm/lib/getuser.S+20 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [BUGFIX PATCH v3 0/4] arm: kprobes: Fix to prohibit probing on unsafe functions

Hi,

This is the 3rd version of bugfix series for kprobes on arm. This series fixes 4 different issues which I found.

- Fix to use smp_processor_id() after disabling preemption.
- Prohibit probing on optimized_callback() for avoiding recursive probe.
- Prohibit kprobes on do_undefinstr() by same reason.
- Prohibit kprobes on get_user() by same reason.

Quoted 1 line

From v2, I included another 2 bugfixes (1/4 and 2/4)

which are not merged yet, and added "Cc: stable at vger.kernel.org", since there are obvious bugs.

Thanks,

---

Masami Hiramatsu (4):
arm: kprobes: Fix to use get_kprobe_ctlblk after irq-disabed
arm: kprobes: Prohibit probing on optimized_callback
arm: kprobes: Prohibit kprobes on do_undefinstr
arm: kprobes: Prohibit kprobes on get_user functions

 arch/arm/include/asm/assembler.h  |   10 ++++++++++
 arch/arm/kernel/traps.c           |    5 ++++-
 arch/arm/lib/getuser.S            |   10 ++++++++++
 arch/arm/probes/kprobes/opt-arm.c |    4 +++-
 4 files changed, 27 insertions(+), 2 deletions(-)

--
Masami Hiramatsu (Linaro) <[email protected]>