Skip to content

powerpc: a few kprobe fixes and refactoring

Naveen N. Rao linuxppc-dev lkml 2 versions – Applied

Status from this message: Applied to powerpc next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 19 repliesApplied
  2. v25 patches 15 repliesSuperseded

Changes in v3 from the cover letter

- Patch 3/5 in the previous series ("powerpc: introduce a new helper to obtain function entry points") has been dropped from this series and will instead be posted as part of the KPROBES_ON_FTRACE patchset.
- Patch 5/5 in the previous series ("powerpc: kprobes: emulate instructions on kprobe handler re-entry") has been split into two patches as recommended by Masami. They represent patches 6/7 and 7/7 in this series.
- Patches 3/7 and 4/7 are new in this series to address review comments from David Laight.

- Naveen

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7kprobes: convert kprobe_lookup_name() to a functionarch/powerpc/include/asm/kprobes.h arch/powerpc/kernel/kprobes.c arch/powerpc/kernel/optprobes.c +2 more+69 -671 reply
2/7powerpc: kprobes: fix handling of function offsets on ABIv2arch/powerpc/kernel/kprobes.c arch/powerpc/kernel/optprobes.c include/linux/kprobes.h +1 more+9 -81 reply
3/7kprobes: validate the symbol name lengthinclude/linux/kprobes.h kernel/kprobes.c kernel/trace/trace_kprobe.c+29 -018 replies
4/7powerpc: kprobes: use safer string functions in kprobe_lookup_name()arch/powerpc/kernel/kprobes.c+5 -61 reply
5/7powerpc: kprobes: factor out code to emulate instruction into a helperarch/powerpc/kernel/kprobes.c+31 -212 replies
6/7powerpc: kprobes: emulate instructions on kprobe handler re-entryarch/powerpc/kernel/kprobes.c+8 -05 replies
7/7powerpc: kprobes: remove duplicate saving of msrarch/powerpc/kernel/kprobes.c+0 -12 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchAnanth N MavinakayanahalliMasami Hiramatsu
1/7A-b
2/7A-b
3/7
4/7
5/7A-b
6/7A-b R-b
7/7R-b

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] powerpc: a few kprobe fixes and refactoring

v2:
https://www.mail-archive.com/[email protected]/msg1375870.html

v3 changes:
- Patch 3/5 in the previous series ("powerpc: introduce a new helper to obtain function entry points") has been dropped from this series and will instead be posted as part of the KPROBES_ON_FTRACE patchset.
- Patch 5/5 in the previous series ("powerpc: kprobes: emulate instructions on kprobe handler re-entry") has been split into two patches as recommended by Masami. They represent patches 6/7 and 7/7 in this series.
- Patches 3/7 and 4/7 are new in this series to address review comments from David Laight.

- Naveen

Naveen N. Rao (7):
kprobes: convert kprobe_lookup_name() to a function
powerpc: kprobes: fix handling of function offsets on ABIv2
kprobes: validate the symbol name length
powerpc: kprobes: use safer string functions in kprobe_lookup_name()
powerpc: kprobes: factor out code to emulate instruction into a helper
powerpc: kprobes: emulate instructions on kprobe handler re-entry
powerpc: kprobes: remove duplicate saving of msr

 arch/powerpc/include/asm/kprobes.h |  53 -----------------
 arch/powerpc/kernel/kprobes.c      | 118 ++++++++++++++++++++++++++++++-------
 arch/powerpc/kernel/optprobes.c    |   4 +-
 include/linux/kprobes.h            |   2 +
 kernel/kprobes.c                   |  45 ++++++++++----
 kernel/trace/trace_kprobe.c        |   4 ++
 6 files changed, 137 insertions(+), 89 deletions(-)
Signature · 1 line
2.12.1