Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 13.918047] ================================================================== [ 13.920456] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 13.920995] Read of size 1 at addr ffff888103994910 by task kunit_try_catch/276 [ 13.921478] [ 13.921587] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.921638] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.921651] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.921685] Call Trace: [ 13.921700] <TASK> [ 13.921720] dump_stack_lvl+0x73/0xb0 [ 13.921751] print_report+0xd1/0x650 [ 13.921775] ? __virt_addr_valid+0x1db/0x2d0 [ 13.921798] ? strcmp+0xb0/0xc0 [ 13.921818] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.921840] ? strcmp+0xb0/0xc0 [ 13.921860] kasan_report+0x141/0x180 [ 13.921882] ? strcmp+0xb0/0xc0 [ 13.921906] __asan_report_load1_noabort+0x18/0x20 [ 13.921930] strcmp+0xb0/0xc0 [ 13.921953] kasan_strings+0x431/0xe80 [ 13.921972] ? trace_hardirqs_on+0x37/0xe0 [ 13.921996] ? __pfx_kasan_strings+0x10/0x10 [ 13.922016] ? finish_task_switch.isra.0+0x153/0x700 [ 13.922038] ? __switch_to+0x47/0xf50 [ 13.922063] ? __schedule+0x10cc/0x2b60 [ 13.922085] ? __pfx_read_tsc+0x10/0x10 [ 13.922106] ? ktime_get_ts64+0x86/0x230 [ 13.922129] kunit_try_run_case+0x1a5/0x480 [ 13.922154] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.922177] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.922200] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.922235] ? __kthread_parkme+0x82/0x180 [ 13.922255] ? preempt_count_sub+0x50/0x80 [ 13.922291] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.922314] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.922336] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.922358] kthread+0x337/0x6f0 [ 13.922377] ? trace_preempt_on+0x20/0xc0 [ 13.922398] ? __pfx_kthread+0x10/0x10 [ 13.922418] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.922453] ? calculate_sigpending+0x7b/0xa0 [ 13.922476] ? __pfx_kthread+0x10/0x10 [ 13.922495] ret_from_fork+0x116/0x1d0 [ 13.922513] ? __pfx_kthread+0x10/0x10 [ 13.922533] ret_from_fork_asm+0x1a/0x30 [ 13.922562] </TASK> [ 13.922574] [ 13.935006] Allocated by task 276: [ 13.935172] kasan_save_stack+0x45/0x70 [ 13.935628] kasan_save_track+0x18/0x40 [ 13.936043] kasan_save_alloc_info+0x3b/0x50 [ 13.936544] __kasan_kmalloc+0xb7/0xc0 [ 13.936943] __kmalloc_cache_noprof+0x189/0x420 [ 13.937778] kasan_strings+0xc0/0xe80 [ 13.938136] kunit_try_run_case+0x1a5/0x480 [ 13.938619] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.938811] kthread+0x337/0x6f0 [ 13.938936] ret_from_fork+0x116/0x1d0 [ 13.939070] ret_from_fork_asm+0x1a/0x30 [ 13.939241] [ 13.939464] Freed by task 276: [ 13.939742] kasan_save_stack+0x45/0x70 [ 13.940083] kasan_save_track+0x18/0x40 [ 13.940500] kasan_save_free_info+0x3f/0x60 [ 13.940919] __kasan_slab_free+0x56/0x70 [ 13.941664] kfree+0x222/0x3f0 [ 13.941976] kasan_strings+0x2aa/0xe80 [ 13.942406] kunit_try_run_case+0x1a5/0x480 [ 13.942804] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.943053] kthread+0x337/0x6f0 [ 13.943178] ret_from_fork+0x116/0x1d0 [ 13.943731] ret_from_fork_asm+0x1a/0x30 [ 13.944106] [ 13.944281] The buggy address belongs to the object at ffff888103994900 [ 13.944281] which belongs to the cache kmalloc-32 of size 32 [ 13.945539] The buggy address is located 16 bytes inside of [ 13.945539] freed 32-byte region [ffff888103994900, ffff888103994920) [ 13.945923] [ 13.946001] The buggy address belongs to the physical page: [ 13.946177] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103994 [ 13.947033] flags: 0x200000000000000(node=0|zone=2) [ 13.947697] page_type: f5(slab) [ 13.948049] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.948943] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.949928] page dumped because: kasan: bad access detected [ 13.950646] [ 13.950725] Memory state around the buggy address: [ 13.950894] ffff888103994800: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.951111] ffff888103994880: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.951704] >ffff888103994900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.952382] ^ [ 13.952762] ffff888103994980: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.953745] ffff888103994a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.954457] ==================================================================