[Devel] [PATCH hci-8.2 0/6] objtool/klp: more upstream klp-build fixes for the 8.2 kernel

Konstantin Khorenko khorenko at virtuozzo.com
Fri Nov 27 17:42:49 MSK 2026


On Thu, 26 Nov 2026 22:51:15 +0100, Konstantin Khorenko wrote:
> objtool/klp: more upstream klp-build fixes for the 8.2 kernel
> 
> Mainline klp-build fixes that the VSTOR-156924 series did not take.
> 
> - Patches 1-2: annotations inside alternative replacements (the
>   ANNOTATE_RETPOLINE_SAFE of CALL_NOSPEC) are lost in the cloned code,
>   and objtool then warns about the livepatch module. Patch 1 is
>   context for patch 2.
> - Patch 3 (VSTOR-157437): the placeholder relocations kept for klp
>   relocations name the exported symbol, so modpost makes the livepatch
>   depend on the exporting module (RK 10.14 for 20.14 has "depends:
>   dm-mod").
> - Patch 4 (VSTOR-157437): refuse a patch that changes or references
>   init code or data. As upstream, this also refuses a change to a
>   __ref function that uses init code or data only at boot.
> - Patch 5: wrong index in the error path of the livepatch module init.
> - Patch 6: a function checksum took the .LC<n> label of a constant
>   pool entry (.rodata.cst*), not its data. A change to the constant
>   alone was dropped by klp diff, and a renumbered label made unchanged
>   functions look changed. Ported to check.c, 26.x has no
>   klp-checksum.c.
> 
> [...]

Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.26.5.vz10, thanks!

[1/6] ms/objtool/klp: Fix bug table handling for __WARN_printf()
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/2ff3b5964ad9
[2/6] ms/objtool/klp: Fix extraction of text annotations for alternatives
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/4ec2c2d067d7
[3/6] ms/objtool/klp: Fix false module dependencies caused by dead relocs
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/840e21b01295
[4/6] ms/objtool/klp: Explicitly disallow patching or referencing init code/data
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/61cb02a8a3d3
[5/6] ms/klp-build: Fix wrong index in funcs cleanup error path
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/254821b595e8
[6/6] ms/objtool/klp: Fix checksums for constant pool references
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/f5bb1eedcab1

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list