diff options
| author | Ye Bin <yebin10@huawei.com> | 2026-03-30 21:30:34 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-04-09 22:04:32 -0400 |
| commit | ca78c31af467ffe94b15f6a2e4e1cc1c164db19b (patch) | |
| tree | 67bc17791b08508b4314cd25ae7b8eff10047302 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 17f73c95d47325000ee68492be3ad76ae09f6f19 (diff) | |
| download | lwn-ca78c31af467ffe94b15f6a2e4e1cc1c164db19b.tar.gz lwn-ca78c31af467ffe94b15f6a2e4e1cc1c164db19b.zip | |
ext4: fix possible null-ptr-deref in extents_kunit_exit()
There's issue as follows:
KASAN: null-ptr-deref in range [0x00000000000002c0-0x00000000000002c7]
Tainted: [E]=UNSIGNED_MODULE, [N]=TEST
RIP: 0010:extents_kunit_exit+0x2e/0xc0 [ext4_test]
Call Trace:
<TASK>
kunit_try_run_case_cleanup+0xbc/0x100 [kunit]
kunit_generic_run_threadfn_adapter+0x89/0x100 [kunit]
kthread+0x408/0x540
ret_from_fork+0xa76/0xdf0
ret_from_fork_asm+0x1a/0x30
Above issue happens as extents_kunit_init() init testcase failed.
So test if testcase is inited success.
Fixes: cb1e0c1d1fad ("ext4: kunit tests for extent splitting and conversion")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://patch.msgid.link/20260330133035.287842-5-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
