Re: [PATCH] kernel/livepatch/core: Fixed the issue of parsing failure caused by symbols carrying '-' generated by the kpatch software

From: Joe Lawrence
Date: Mon Jul 28 2025 - 18:16:28 EST


On 7/20/25 4:50 PM, Li kunyu wrote:
> A possible issue with the kpatch software was discovered during testing
> in the 6.6 and above kernel:
> livepatch: symbol .klp.sym.vmlinux-bringup_idt_table,5438511 has an
> incorrectly formatted name.
>

Hmm, how did the dash get in the symbol name? If I build a defconfig
x86_64 kernel from today, I see the "bringup_idt_table" symbol in
vmlinux, but as per Documentation/livepatch/module-elf-format.rst
shouldn't it be:

.klp.sym.vmlinux.bringup_idt_table,<sympos>

(which btw, sympos of 5438511 seems a little bit large?)

Can you reference which kpatch-build project you are using (there are
several forks floating around, plus downstream versions) and then how to
reproduce this.

Thanks!

--
Joe