[Devel] [PATCH hci-8.2 06/17] ms/objtool/klp: Fix create_fake_symbols() skipping entsize-based sections

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 24 08:11:50 MSK 2026


> From: Joe Lawrence <joe.lawrence at redhat.com>
> 
> create_fake_symbols() has two phases: creating symbols from
> ANNOTATE_DATA_SPECIAL entries, and a fallback that uses sh_entsize for
> special sections like .static_call_sites.
> 
> When .discard.annotate_data is absent, the function returns early,
> skipping the entsize fallback and silently allowing unsupported
> module-local static call keys through.
> 
> Fix it by jumping to the entsize phase instead of returning early.
> 
> Fixes: dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files")
> Assisted-by: Claude:claude-4-opus
> Signed-off-by: Joe Lawrence <joe.lawrence at redhat.com>
> Acked-by: Song Liu <song at kernel.org>
> Reviewed-by: Miroslav Benes <mbenes at suse.cz>
> Signed-off-by: Josh Poimboeuf <jpoimboe at kernel.org>
> (cherry picked from commit 3de711fba73ad93b8b3fbe09cf681cefed5d573d)
> 
> 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=6




More information about the Devel mailing list