[Devel] [PATCH hci-8.2 v2 00/18] ms/objtool: fix silently wrong livepatches by klp-build
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 25 13:35:23 MSK 2026
I won't apply this version, please send v3 with the changes below.
1. Patch 13: a reference to a size-less asm label in .rodata must keep
the section symbol (or fail klp diff); a vz fix after 13 or folded
into 14. Details in the reply to 13.
2. Patch 14: also check a pair whose patched side is in .rodata (an
object made const and changed in the same patch).
3. Patch 14: do not compare the addend of a target that no symbol
contains; it gives false "changed data" errors. Details in the reply
to 14.
4. Patch 14: lowercase subject, "objtool/klp: reject changed .rodata
objects".
5. Cover letter: renumber after the new patch 14.
Patch 14 does what the v1 review asked: a changed correlated const
object now fails klp diff. Patches 1-13 and 15-18 match mainline.
On Wed, 25 Nov 2026 08:03:42 +0200, Eva Kurchatova wrote:
> - klp relocations to exports of another module put in a section the
> livepatch loader never applies, e.g. jump into garbage (14-16)
> - static symbols bound to an export of the same name (17)
Item 5: these are 15-17 and 18 now.
Separate patches, not needed for this series. I created a task for
it:
1. Mainline has the same bug as item 1 since its "objtool/klp: Fix
pointer comparisons for rodata objects"; the fix should go there
too.
https://virtuozzo.atlassian.net/browse/VSTOR-157091
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list