diff options
| author | Stanislaw Gruszka <stf_xl@wp.pl> | 2026-03-27 12:00:04 +0100 |
|---|---|---|
| committer | Petr Pavlu <petr.pavlu@suse.com> | 2026-08-06 13:27:35 +0200 |
| commit | 0e9f090a4e9bfae5a190ccf89eab3bf14f6b0f96 (patch) | |
| tree | 665a0b64bb9b829557b11e7385a1938897a61416 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 8cdeaa50eae8dad34885515f62559ee83e7e8dda (diff) | |
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 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
