Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 28.792131] ================================================================== [ 28.792250] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 28.795872] Read of size 1 at addr fff00000c770c050 by task kunit_try_catch/259 [ 28.796032] [ 28.796107] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 28.796354] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.796436] Hardware name: linux,dummy-virt (DT) [ 28.796515] Call trace: [ 28.796569] show_stack+0x20/0x38 (C) [ 28.796699] dump_stack_lvl+0x8c/0xd0 [ 28.796813] print_report+0x118/0x608 [ 28.796924] kasan_report+0xdc/0x128 [ 28.797038] __asan_report_load1_noabort+0x20/0x30 [ 28.797156] kasan_strings+0x95c/0xb00 [ 28.797271] kunit_try_run_case+0x170/0x3f0 [ 28.799885] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.800047] kthread+0x328/0x630 [ 28.800164] ret_from_fork+0x10/0x20 [ 28.801189] [ 28.801288] Allocated by task 259: [ 28.801388] kasan_save_stack+0x3c/0x68 [ 28.801501] kasan_save_track+0x20/0x40 [ 28.802772] kasan_save_alloc_info+0x40/0x58 [ 28.803193] __kasan_kmalloc+0xd4/0xd8 [ 28.803446] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.803999] kasan_strings+0xc8/0xb00 [ 28.804545] kunit_try_run_case+0x170/0x3f0 [ 28.804955] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.805423] kthread+0x328/0x630 [ 28.805529] ret_from_fork+0x10/0x20 [ 28.805633] [ 28.806304] Freed by task 259: [ 28.806435] kasan_save_stack+0x3c/0x68 [ 28.806781] kasan_save_track+0x20/0x40 [ 28.807314] kasan_save_free_info+0x4c/0x78 [ 28.807575] __kasan_slab_free+0x6c/0x98 [ 28.807681] kfree+0x214/0x3c8 [ 28.807769] kasan_strings+0x24c/0xb00 [ 28.807874] kunit_try_run_case+0x170/0x3f0 [ 28.808490] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.809593] kthread+0x328/0x630 [ 28.809703] ret_from_fork+0x10/0x20 [ 28.810569] [ 28.811635] The buggy address belongs to the object at fff00000c770c040 [ 28.811635] which belongs to the cache kmalloc-32 of size 32 [ 28.811816] The buggy address is located 16 bytes inside of [ 28.811816] freed 32-byte region [fff00000c770c040, fff00000c770c060) [ 28.812576] [ 28.812725] The buggy address belongs to the physical page: [ 28.812807] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10770c [ 28.812936] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.813981] page_type: f5(slab) [ 28.814340] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 28.814666] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 28.814779] page dumped because: kasan: bad access detected [ 28.816053] [ 28.816128] Memory state around the buggy address: [ 28.816238] fff00000c770bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.816437] fff00000c770bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.816602] >fff00000c770c000: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 28.816815] ^ [ 28.816915] fff00000c770c080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 28.817087] fff00000c770c100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 28.817219] ==================================================================
[ 13.341720] ================================================================== [ 13.342144] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.342453] Read of size 1 at addr ffff88810278df50 by task kunit_try_catch/276 [ 13.342748] [ 13.342831] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 13.342872] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.342883] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.342914] Call Trace: [ 13.342927] <TASK> [ 13.342939] dump_stack_lvl+0x73/0xb0 [ 13.342961] print_report+0xd1/0x650 [ 13.342985] ? __virt_addr_valid+0x1db/0x2d0 [ 13.343008] ? kasan_strings+0xcbc/0xe80 [ 13.343027] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.343050] ? kasan_strings+0xcbc/0xe80 [ 13.343071] kasan_report+0x141/0x180 [ 13.343093] ? kasan_strings+0xcbc/0xe80 [ 13.343118] __asan_report_load1_noabort+0x18/0x20 [ 13.343143] kasan_strings+0xcbc/0xe80 [ 13.343162] ? trace_hardirqs_on+0x37/0xe0 [ 13.343184] ? __pfx_kasan_strings+0x10/0x10 [ 13.343206] ? finish_task_switch.isra.0+0x153/0x700 [ 13.343227] ? __switch_to+0x47/0xf50 [ 13.343252] ? __schedule+0x10cc/0x2b60 [ 13.343275] ? __pfx_read_tsc+0x10/0x10 [ 13.343295] ? ktime_get_ts64+0x86/0x230 [ 13.343317] kunit_try_run_case+0x1a5/0x480 [ 13.343338] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.343358] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.343382] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.343406] ? __kthread_parkme+0x82/0x180 [ 13.343426] ? preempt_count_sub+0x50/0x80 [ 13.343449] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.343470] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.343494] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.343518] kthread+0x337/0x6f0 [ 13.343537] ? trace_preempt_on+0x20/0xc0 [ 13.343559] ? __pfx_kthread+0x10/0x10 [ 13.343578] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.343600] ? calculate_sigpending+0x7b/0xa0 [ 13.343624] ? __pfx_kthread+0x10/0x10 [ 13.343799] ret_from_fork+0x116/0x1d0 [ 13.343821] ? __pfx_kthread+0x10/0x10 [ 13.343841] ret_from_fork_asm+0x1a/0x30 [ 13.343872] </TASK> [ 13.343910] [ 13.353036] Allocated by task 276: [ 13.353238] kasan_save_stack+0x45/0x70 [ 13.353431] kasan_save_track+0x18/0x40 [ 13.353600] kasan_save_alloc_info+0x3b/0x50 [ 13.354602] __kasan_kmalloc+0xb7/0xc0 [ 13.354759] __kmalloc_cache_noprof+0x189/0x420 [ 13.354928] kasan_strings+0xc0/0xe80 [ 13.355652] kunit_try_run_case+0x1a5/0x480 [ 13.355948] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.356216] kthread+0x337/0x6f0 [ 13.356378] ret_from_fork+0x116/0x1d0 [ 13.356548] ret_from_fork_asm+0x1a/0x30 [ 13.357251] [ 13.357431] Freed by task 276: [ 13.357744] kasan_save_stack+0x45/0x70 [ 13.358150] kasan_save_track+0x18/0x40 [ 13.358338] kasan_save_free_info+0x3f/0x60 [ 13.358534] __kasan_slab_free+0x56/0x70 [ 13.359288] kfree+0x222/0x3f0 [ 13.359488] kasan_strings+0x2aa/0xe80 [ 13.359984] kunit_try_run_case+0x1a5/0x480 [ 13.360364] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.360760] kthread+0x337/0x6f0 [ 13.360938] ret_from_fork+0x116/0x1d0 [ 13.361363] ret_from_fork_asm+0x1a/0x30 [ 13.361561] [ 13.361834] The buggy address belongs to the object at ffff88810278df40 [ 13.361834] which belongs to the cache kmalloc-32 of size 32 [ 13.362829] The buggy address is located 16 bytes inside of [ 13.362829] freed 32-byte region [ffff88810278df40, ffff88810278df60) [ 13.364080] [ 13.364199] The buggy address belongs to the physical page: [ 13.364430] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10278d [ 13.365255] flags: 0x200000000000000(node=0|zone=2) [ 13.365569] page_type: f5(slab) [ 13.365843] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.366234] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 13.366543] page dumped because: kasan: bad access detected [ 13.367401] [ 13.367530] Memory state around the buggy address: [ 13.368049] ffff88810278de00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.368558] ffff88810278de80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.369150] >ffff88810278df00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.369451] ^ [ 13.369960] ffff88810278df80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.370667] ffff88810278e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.371331] ==================================================================