[Devel] [PATCH hci-8.1 13/14] ms/objtool/klp: Fix detection of corrupt static branch/call entries

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:43:08 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.
> 
> [ ... ]
> (cherry picked from commit f9fb44b0ecefc1f218db56661ed66d4e8d67317d)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-157133
> Feature: klp-build support
> Signed-off-by: Konstantin Khorenko <khorenko 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/20261126-khorenko-vstor-157133-klp-and-kvm-fixes-v1-0-0ec8eaadf1bc@virtuozzo.com?part=13




More information about the Devel mailing list