Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 |
[ 40.548846] ================================================================== [ 40.555938] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 40.562617] Read of size 1 at addr ffff0008065c9310 by task kunit_try_catch/304 [ 40.569909] [ 40.571393] CPU: 6 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 40.571449] Tainted: [B]=BAD_PAGE, [N]=TEST [ 40.571469] Hardware name: WinLink E850-96 board (DT) [ 40.571490] Call trace: [ 40.571504] show_stack+0x20/0x38 (C) [ 40.571542] dump_stack_lvl+0x8c/0xd0 [ 40.571573] print_report+0x118/0x608 [ 40.571605] kasan_report+0xdc/0x128 [ 40.571635] __asan_report_load1_noabort+0x20/0x30 [ 40.571672] kasan_strings+0x95c/0xb00 [ 40.571700] kunit_try_run_case+0x170/0x3f0 [ 40.571732] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.571768] kthread+0x328/0x630 [ 40.571803] ret_from_fork+0x10/0x20 [ 40.571838] [ 40.635011] Allocated by task 304: [ 40.638399] kasan_save_stack+0x3c/0x68 [ 40.642217] kasan_save_track+0x20/0x40 [ 40.646036] kasan_save_alloc_info+0x40/0x58 [ 40.650289] __kasan_kmalloc+0xd4/0xd8 [ 40.654022] __kmalloc_cache_noprof+0x15c/0x3c0 [ 40.658536] kasan_strings+0xc8/0xb00 [ 40.662181] kunit_try_run_case+0x170/0x3f0 [ 40.666348] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.671817] kthread+0x328/0x630 [ 40.675028] ret_from_fork+0x10/0x20 [ 40.678587] [ 40.680063] Freed by task 304: [ 40.683103] kasan_save_stack+0x3c/0x68 [ 40.686920] kasan_save_track+0x20/0x40 [ 40.690740] kasan_save_free_info+0x4c/0x78 [ 40.694907] __kasan_slab_free+0x6c/0x98 [ 40.698813] kfree+0x214/0x3c8 [ 40.701851] kasan_strings+0x24c/0xb00 [ 40.705583] kunit_try_run_case+0x170/0x3f0 [ 40.709750] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.715219] kthread+0x328/0x630 [ 40.718431] ret_from_fork+0x10/0x20 [ 40.721990] [ 40.723465] The buggy address belongs to the object at ffff0008065c9300 [ 40.723465] which belongs to the cache kmalloc-32 of size 32 [ 40.735793] The buggy address is located 16 bytes inside of [ 40.735793] freed 32-byte region [ffff0008065c9300, ffff0008065c9320) [ 40.747857] [ 40.749336] The buggy address belongs to the physical page: [ 40.754892] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8865c9 [ 40.762874] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 40.769385] page_type: f5(slab) [ 40.772521] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 40.780242] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 40.787962] page dumped because: kasan: bad access detected [ 40.793516] [ 40.794992] Memory state around the buggy address: [ 40.799772] ffff0008065c9200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.806975] ffff0008065c9280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 40.814181] >ffff0008065c9300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.821380] ^ [ 40.825117] ffff0008065c9380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 40.832321] ffff0008065c9400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 40.839525] ==================================================================