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

Michael Ellerman patch-notifications at ellerman.id.au
Wed Dec 15 11:51:07 AEDT 2021


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


More information about the Linuxppc-dev mailing list