Skip to content

powerpc: build out kprobes blacklist -- series 3

Naveen N. Rao linuxppc-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 5 repliesIn review
  2. v47 patches 9 repliesSuperseded
  3. v36 patches 17 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches6 repliesSuperseded
v14 patches2 repliesSuperseded

Changes in v5 from the cover letter

- Patch 5 changed to move system_call_exit() symbol before the mtmsrd, along with an explanation for its placement.
- Patch 7 reverted to previous version moving the new symbol before the mtmsrd as well.
- All other patches remain unchanged from v4.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7powerpc64/elfv1: Only dereference function descriptor for non-text symbolsarch/powerpc/include/asm/code-patching.h+9 -11 reply
2/7powerpc/64s: Convert .L__replay_interrupt_return to a local labelarch/powerpc/kernel/exceptions-64s.S+2 -20 replies
3/7powerpc/64s: Blacklist system_call() and system_call_common() from kprobesarch/powerpc/kernel/entry_64.S+15 -143 replies
4/7powerpc/64s: Move system_call() symbol to just after setting MSR_EEarch/powerpc/kernel/entry_64.S+4 -30 replies
5/7powerpc/64s: Un-blacklist system_call() from kprobesarch/powerpc/kernel/entry_64.S+13 -10 replies
6/7powerpc/64s: Blacklist functions invoked on a traparch/powerpc/kernel/entry_64.S arch/powerpc/kernel/exceptions-64s.S arch/powerpc/kernel/traps.c+27 -130 replies
7/7powerpc/64s: Blacklist rtas entry/exit from kprobesarch/powerpc/kernel/entry_64.S+4 -00 replies

Reviews trailers per patch

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

PatchNicholas PigginMasami Hiramatsu
1/7R-b
2/7R-b
3/7R-b R-b
4/7R-b
5/7R-b
6/7R-b
7/7

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

Read the v5 thread

Cover letter [PATCH v5 0/7] powerpc: build out kprobes blacklist -- series 3

This is the third in the series of patches to build out an appropriate kprobes blacklist for powerpc. Since posting the second series (*), there have been related changes to the code and I have brought that series forward to account for those changes. As such, all patches from the second series are included in this patchset.

This patchset now ensures that the newly added multiple kprobes test in the ftrace testsuite passes on powerpc64. Tested on both Elfv1 and Elfv2.

Changes since v4:
- Patch 5 changed to move system_call_exit() symbol before the mtmsrd, along with an explanation for its placement.
- Patch 7 reverted to previous version moving the new symbol before the mtmsrd as well.
- All other patches remain unchanged from v4.

v4:
https://www.mail-archive.com/[email protected]/msg120106.html

(*) series 2:
https://www.mail-archive.com/[email protected]/msg117562.html

- Naveen

Naveen N. Rao (7):
powerpc64/elfv1: Only dereference function descriptor for non-text
symbols
powerpc/64s: Convert .L__replay_interrupt_return to a local label powerpc/64s: Blacklist system_call() and system_call_common() from
kprobes
powerpc/64s: Move system_call() symbol to just after setting MSR_EE powerpc/64s: Un-blacklist system_call() from kprobes powerpc/64s: Blacklist functions invoked on a trap powerpc/64s: Blacklist rtas entry/exit from kprobes

 arch/powerpc/include/asm/code-patching.h | 10 +++-
 arch/powerpc/kernel/entry_64.S           | 87 +++++++++++++++++++++-----------
 arch/powerpc/kernel/exceptions-64s.S     |  6 ++-
 arch/powerpc/kernel/traps.c              |  3 ++
 4 files changed, 73 insertions(+), 33 deletions(-)
Signature · 1 line
2.13.1