Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 14.265597] ================================================================== [ 14.265968] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.266264] Read of size 1 at addr ffff8881026c3d90 by task kunit_try_catch/276 [ 14.266568] [ 14.266728] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.266771] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.266782] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.266804] Call Trace: [ 14.266821] <TASK> [ 14.266839] dump_stack_lvl+0x73/0xb0 [ 14.266867] print_report+0xd1/0x610 [ 14.266888] ? __virt_addr_valid+0x1db/0x2d0 [ 14.266910] ? kasan_strings+0xcbc/0xe80 [ 14.266931] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.266953] ? kasan_strings+0xcbc/0xe80 [ 14.267189] kasan_report+0x141/0x180 [ 14.267213] ? kasan_strings+0xcbc/0xe80 [ 14.267239] __asan_report_load1_noabort+0x18/0x20 [ 14.267264] kasan_strings+0xcbc/0xe80 [ 14.267283] ? trace_hardirqs_on+0x37/0xe0 [ 14.267307] ? __pfx_kasan_strings+0x10/0x10 [ 14.267326] ? finish_task_switch.isra.0+0x153/0x700 [ 14.267349] ? __switch_to+0x47/0xf50 [ 14.267375] ? __schedule+0x10cc/0x2b60 [ 14.267397] ? __pfx_read_tsc+0x10/0x10 [ 14.267417] ? ktime_get_ts64+0x86/0x230 [ 14.267441] kunit_try_run_case+0x1a5/0x480 [ 14.267465] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.267487] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.267510] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.267534] ? __kthread_parkme+0x82/0x180 [ 14.267553] ? preempt_count_sub+0x50/0x80 [ 14.267576] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.267599] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.267622] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.267646] kthread+0x337/0x6f0 [ 14.267665] ? trace_preempt_on+0x20/0xc0 [ 14.267685] ? __pfx_kthread+0x10/0x10 [ 14.267705] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.267727] ? calculate_sigpending+0x7b/0xa0 [ 14.267751] ? __pfx_kthread+0x10/0x10 [ 14.267772] ret_from_fork+0x116/0x1d0 [ 14.267789] ? __pfx_kthread+0x10/0x10 [ 14.267950] ret_from_fork_asm+0x1a/0x30 [ 14.267987] </TASK> [ 14.267997] [ 14.275340] Allocated by task 276: [ 14.275524] kasan_save_stack+0x45/0x70 [ 14.275957] kasan_save_track+0x18/0x40 [ 14.276128] kasan_save_alloc_info+0x3b/0x50 [ 14.276325] __kasan_kmalloc+0xb7/0xc0 [ 14.276518] __kmalloc_cache_noprof+0x189/0x420 [ 14.276737] kasan_strings+0xc0/0xe80 [ 14.276869] kunit_try_run_case+0x1a5/0x480 [ 14.277016] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.277201] kthread+0x337/0x6f0 [ 14.277435] ret_from_fork+0x116/0x1d0 [ 14.277625] ret_from_fork_asm+0x1a/0x30 [ 14.277862] [ 14.277962] Freed by task 276: [ 14.278136] kasan_save_stack+0x45/0x70 [ 14.278338] kasan_save_track+0x18/0x40 [ 14.278529] kasan_save_free_info+0x3f/0x60 [ 14.278725] __kasan_slab_free+0x56/0x70 [ 14.278906] kfree+0x222/0x3f0 [ 14.279062] kasan_strings+0x2aa/0xe80 [ 14.279229] kunit_try_run_case+0x1a5/0x480 [ 14.279376] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.279553] kthread+0x337/0x6f0 [ 14.279802] ret_from_fork+0x116/0x1d0 [ 14.279985] ret_from_fork_asm+0x1a/0x30 [ 14.280453] [ 14.280558] The buggy address belongs to the object at ffff8881026c3d80 [ 14.280558] which belongs to the cache kmalloc-32 of size 32 [ 14.281210] The buggy address is located 16 bytes inside of [ 14.281210] freed 32-byte region [ffff8881026c3d80, ffff8881026c3da0) [ 14.281712] [ 14.281788] The buggy address belongs to the physical page: [ 14.282101] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026c3 [ 14.282419] flags: 0x200000000000000(node=0|zone=2) [ 14.282680] page_type: f5(slab) [ 14.282863] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.283142] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.283378] page dumped because: kasan: bad access detected [ 14.283557] [ 14.283701] Memory state around the buggy address: [ 14.283923] ffff8881026c3c80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.284425] ffff8881026c3d00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.284984] >ffff8881026c3d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.285258] ^ [ 14.285443] ffff8881026c3e00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.285743] ffff8881026c3e80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.286175] ==================================================================