summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStanislaw Gruszka <stf_xl@wp.pl>2026-03-27 12:00:04 +0100
committerPetr Pavlu <petr.pavlu@suse.com>2026-08-06 13:27:35 +0200
commit0e9f090a4e9bfae5a190ccf89eab3bf14f6b0f96 (patch)
tree665a0b64bb9b829557b11e7385a1938897a61416 /scripts
parent8cdeaa50eae8dad34885515f62559ee83e7e8dda (diff)
downloadlinux-0e9f090a4e9bfae5a190ccf89eab3bf14f6b0f96.tar.gz
linux-0e9f090a4e9bfae5a190ccf89eab3bf14f6b0f96.zip
module/kallsyms: fix nextval for data symbol lookup
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. Cc: stable@vger.kernel.org Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Reviewed-by: Petr Pavlu <petr.pavlu@suse.com> Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions