diff options
| author | Maninder Singh <maninder1.s@samsung.com> | 2026-04-29 11:37:55 +0530 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-09-24 16:29:18 +0200 |
| commit | 5b5df6678080e4852f9e56e13fe0988c82ac8a1b (patch) | |
| tree | 26697a072d642c0f2c666b0de9064dae5d811d69 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 0dc2521b233d7d2fdf61b4536fd3fbb3584e4548 (diff) | |
um: take reference of stack before using it in get_wchan
Stack of task can be freed earlier than task in case of
THREAD_INFO_IN_TASK. So separate reference of stack should be there.
Help of THREAD_INFO_IN_TASK config also suggests to take this
reference before calling get_wchan.
KASAN also reports it in case of manual race reproduction:
[ 18.400000] BUG: KASAN: vmalloc-out-of-bounds in __get_wchan+0x91/0xd9
[ 18.400000] Read of size 8 at addr 00000000648bfad0 by task cat/25
..
Adding try_get_task_stack() to make sure stack's sanity.
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Link: https://patch.msgid.link/20260429060755.1541742-1-maninder1.s@samsung.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
