Thread (12 messages) 12 messages, 3 authors, 2026-07-10

Re: [PATCH v2 1/2] module/kallsyms: fix nextval for data symbol lookup

From: Petr Pavlu <petr.pavlu@suse.com>
Date: 2026-07-10 12:36:45
Also in: linux-modules, live-patching, lkml

On 3/27/26 12:00 PM, Stanislaw Gruszka wrote:
The symbol lookup code assumes the queried address resides in either
MOD_TEXT or MOD_INIT_TEXT. This breaks for addresses in other module
memory regions (e.g. rodata or data), resulting in incorrect upper
bounds and wrong symbol size.

Select the module memory region the address belongs to instead of
hardcoding text sections. Also initialize the lower bound to the start
of that region, as searching from address 0 is unnecessary.

Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
I've queued this first patch on modules-fixes.

-- 
Thanks,
Petr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help