Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 15.820728] ================================================================== [ 15.821705] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 15.822716] Read of size 1 at addr ffff8881038e5fd0 by task kunit_try_catch/277 [ 15.823300] [ 15.823416] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.823473] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.823489] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.823516] Call Trace: [ 15.823540] <TASK> [ 15.823565] dump_stack_lvl+0x73/0xb0 [ 15.823601] print_report+0xd1/0x650 [ 15.823628] ? __virt_addr_valid+0x1db/0x2d0 [ 15.823674] ? kasan_strings+0xcbc/0xe80 [ 15.823698] ? kasan_complete_mode_report_info+0x64/0x200 [ 15.823725] ? kasan_strings+0xcbc/0xe80 [ 15.823751] kasan_report+0x141/0x180 [ 15.823934] ? kasan_strings+0xcbc/0xe80 [ 15.823965] __asan_report_load1_noabort+0x18/0x20 [ 15.823995] kasan_strings+0xcbc/0xe80 [ 15.824018] ? trace_hardirqs_on+0x37/0xe0 [ 15.824077] ? __pfx_kasan_strings+0x10/0x10 [ 15.824102] ? finish_task_switch.isra.0+0x153/0x700 [ 15.824129] ? __switch_to+0x47/0xf50 [ 15.824160] ? __schedule+0x10cc/0x2b60 [ 15.824187] ? __pfx_read_tsc+0x10/0x10 [ 15.824213] ? ktime_get_ts64+0x86/0x230 [ 15.824242] kunit_try_run_case+0x1a5/0x480 [ 15.824271] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.824300] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.824329] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.824357] ? __kthread_parkme+0x82/0x180 [ 15.824382] ? preempt_count_sub+0x50/0x80 [ 15.824409] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.824437] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.824465] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.824493] kthread+0x337/0x6f0 [ 15.824515] ? trace_preempt_on+0x20/0xc0 [ 15.824541] ? __pfx_kthread+0x10/0x10 [ 15.824566] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.824591] ? calculate_sigpending+0x7b/0xa0 [ 15.824620] ? __pfx_kthread+0x10/0x10 [ 15.824660] ret_from_fork+0x116/0x1d0 [ 15.824682] ? __pfx_kthread+0x10/0x10 [ 15.824705] ret_from_fork_asm+0x1a/0x30 [ 15.824744] </TASK> [ 15.824780] [ 15.834671] Allocated by task 277: [ 15.834891] kasan_save_stack+0x45/0x70 [ 15.835079] kasan_save_track+0x18/0x40 [ 15.835243] kasan_save_alloc_info+0x3b/0x50 [ 15.835611] __kasan_kmalloc+0xb7/0xc0 [ 15.836001] __kmalloc_cache_noprof+0x189/0x420 [ 15.836281] kasan_strings+0xc0/0xe80 [ 15.836526] kunit_try_run_case+0x1a5/0x480 [ 15.836740] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.837149] kthread+0x337/0x6f0 [ 15.837334] ret_from_fork+0x116/0x1d0 [ 15.837508] ret_from_fork_asm+0x1a/0x30 [ 15.837690] [ 15.838015] Freed by task 277: [ 15.838220] kasan_save_stack+0x45/0x70 [ 15.838464] kasan_save_track+0x18/0x40 [ 15.838737] kasan_save_free_info+0x3f/0x60 [ 15.839085] __kasan_slab_free+0x56/0x70 [ 15.839336] kfree+0x222/0x3f0 [ 15.839494] kasan_strings+0x2aa/0xe80 [ 15.839671] kunit_try_run_case+0x1a5/0x480 [ 15.839918] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.840372] kthread+0x337/0x6f0 [ 15.840598] ret_from_fork+0x116/0x1d0 [ 15.840775] ret_from_fork_asm+0x1a/0x30 [ 15.840952] [ 15.841060] The buggy address belongs to the object at ffff8881038e5fc0 [ 15.841060] which belongs to the cache kmalloc-32 of size 32 [ 15.842073] The buggy address is located 16 bytes inside of [ 15.842073] freed 32-byte region [ffff8881038e5fc0, ffff8881038e5fe0) [ 15.842658] [ 15.842752] The buggy address belongs to the physical page: [ 15.843200] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e5 [ 15.843535] flags: 0x200000000000000(node=0|zone=2) [ 15.843979] page_type: f5(slab) [ 15.844191] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 15.844604] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 15.845135] page dumped because: kasan: bad access detected [ 15.845441] [ 15.845556] Memory state around the buggy address: [ 15.846055] ffff8881038e5e80: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 15.846427] ffff8881038e5f00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.846731] >ffff8881038e5f80: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 15.847233] ^ [ 15.847504] ffff8881038e6000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.848020] ffff8881038e6080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.848399] ==================================================================