Skip to content

Use per-CPU temporary mappings for patching on Radix MMU

Jordan Niethe linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest5 patches 2 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5powerpc: Allow clearing and restoring registers independent of saved breakpoint statearch/powerpc/include/asm/debug.h arch/powerpc/kernel/process.c+35 -30 replies
2/5powerpc/64s: Introduce temporary mm for Radix MMUarch/powerpc/lib/code-patching.c+29 -00 replies
3/5powerpc: Rework and improve STRICT_KERNEL_RWX patchingarch/powerpc/lib/code-patching.c+10 -102 replies
4/5powerpc: Use WARN_ON and fix check in poking_initarch/powerpc/lib/code-patching.c+2 -70 replies
5/5powerpc/64s: Initialize and use a temporary mm for patching on Radixarch/powerpc/lib/code-patching.c+101 -50 replies

Reviews trailers per patch

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

Read the v7 thread

Cover letter [PATCH v7 0/5] Use per-CPU temporary mappings for patching on Radix MMU

This is a revision of Chris' series to introduces a per cpu temporary mm to be used for patching with strict rwx on radix mmus.

The previous version of the series is here:
https://lore.kernel.org/linuxppc-dev/[email protected]/

v7: - introduce helper functions for clearing and restoring breakpoint
registers when using the temporary mm
- use a new patch_instruction_mm() function instead of needing repeated conditionals and a struct to save state to work within do_patch_instruction()
- include a ptesync after setting the pte

Christopher M. Riedl (4):
powerpc/64s: Introduce temporary mm for Radix MMU
powerpc: Rework and improve STRICT_KERNEL_RWX patching
powerpc: Use WARN_ON and fix check in poking_init powerpc/64s: Initialize and use a temporary mm for patching on Radix

Jordan Niethe (1):
powerpc: Allow clearing and restoring registers independent of saved
breakpoint state

 arch/powerpc/include/asm/debug.h |   2 +
 arch/powerpc/kernel/process.c    |  36 ++++++-
 arch/powerpc/lib/code-patching.c | 162 +++++++++++++++++++++++++++----
 3 files changed, 176 insertions(+), 24 deletions(-)
Signature · 1 line
2.25.1