diff options
| author | Christophe Leroy <[email protected]> | 2021-12-20 16:38:09 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-02-07 21:03:10 +1100 |
| commit | 0c850965d6909d39fd69d6a3602bb62b48cad417 (patch) | |
| tree | ae8d5dad0bc24beac98210cd8ce1e99846c49e3c /tools/perf/scripts/python/bin | |
| parent | 2f293651eca3eacaeb56747dede31edace7329d2 (diff) | |
powerpc/module_32: Fix livepatching for RO modules
Livepatching a loaded module involves applying relocations through
apply_relocate_add(), which attempts to write to read-only memory when
CONFIG_STRICT_MODULE_RWX=y.
R_PPC_ADDR16_LO, R_PPC_ADDR16_HI, R_PPC_ADDR16_HA and R_PPC_REL24 are
the types generated by the kpatch-build userspace tool or klp-convert
kernel tree observed applying a relocation to a post-init module.
Use patch_instruction() to patch those relocations.
Commit 8734b41b3efe ("powerpc/module_64: Fix livepatching for
RO modules") did similar change in module_64.
Signed-off-by: Christophe Leroy <[email protected]>
Acked-by: Joe Lawrence <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/d5697157cb7dba3927e19aa17c915a83bc550bb2.1640017960.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions