[Devel] [PATCH hci-8.2 01/17] ms/objtool/klp: Fix detection of corrupt static branch/call entries
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 24 08:11:33 MSK 2026
> From: Josh Poimboeuf <jpoimboe at kernel.org>
>
> Patching a function which references a static key living in a kernel
> module is unsupported due to ordering issues inherent to late module
> patching:
>
> 1) Load a livepatch module which has a __jump_table entry which needs
> a klp reloc to reference static key K which lives in module M.
>
> 2) The __jump_table klp reloc does *not* get resolved because module M
> is not yet loaded.
>
> 3) jump_label_add_module() corrupts memory (or causes a panic) when
> dereferencing the uninitialized pointer to key K.
>
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-128510
> Feature: klp-build support
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261124050655.1853940-1-eva.kurchatova@virtuozzo.com?part=1
More information about the Devel
mailing list