From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>,
Konstantin Khorenko <khorenko@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 0/6] objtool/klp: more upstream klp-build fixes for the 8.2 kernel
Date: Fri, 27 Nov 2026 15:42:49 +0100 [thread overview]
Message-ID: <179579056971.945721.11329061289617348868.b4-ty@b4> (raw)
In-Reply-To: <20261126-khorenko-vstor-157128-more-klp-build-fixes-v1-0-69a0363954e4@virtuozzo.com>
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
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
prev parent reply other threads:[~2026-11-27 14:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 21:51 Konstantin Khorenko
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 1/6] ms/objtool/klp: Fix bug table handling for __WARN_printf() Konstantin Khorenko
2026-12-01 0:41 ` no-reply
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 2/6] ms/objtool/klp: Fix extraction of text annotations for alternatives Konstantin Khorenko
2026-12-01 0:41 ` no-reply
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 3/6] ms/objtool/klp: Fix false module dependencies caused by dead relocs Konstantin Khorenko
2026-12-01 0:43 ` no-reply
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 4/6] ms/objtool/klp: Explicitly disallow patching or referencing init code/data Konstantin Khorenko
2026-12-01 0:43 ` no-reply
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 5/6] ms/klp-build: Fix wrong index in funcs cleanup error path Konstantin Khorenko
2026-12-01 0:44 ` no-reply
2026-11-26 21:51 ` [Devel] [PATCH hci-8.2 6/6] ms/objtool/klp: Fix checksums for constant pool references Konstantin Khorenko
2026-12-01 0:45 ` no-reply
2026-11-27 14:42 ` Konstantin Khorenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179579056971.945721.11329061289617348868.b4-ty@b4 \
--to=khorenko@virtuozzo.com \
--cc=devel@openvz.org \
--cc=eva.kurchatova@virtuozzo.com \
--cc=vasileios.almpanis@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox