Thread (6 messages) flat view 6 messages, 4 authors, 2021-12-15

Re: [PATCH] powerpc/module_64: Fix livepatching for RO modules

From: Michael Ellerman <hidden>
Date: 2021-12-15 00:51:52

On Tue, 23 Nov 2021 18:15:20 +1000, Russell Currey wrote:
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.  Work around this by performing these
writes through the text poke area by using patch_instruction().

R_PPC_REL24 is the only relocation type generated by the kpatch-build
userspace tool or klp-convert kernel tree that I observed applying a
relocation to a post-init module.

[...]
Applied to powerpc/fixes.

[1/1] powerpc/module_64: Fix livepatching for RO modules
      https://git.kernel.org/powerpc/c/8734b41b3efe0fc6082c1937b0e88556c396dc96

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help