Hay
Date
June 23, 2025, 7:07 a.m.

Environment
qemu-x86_64

[   23.865713] ==================================================================
[   23.866471] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80
[   23.866770] Read of size 1 at addr ffff8881023cba90 by task kunit_try_catch/288
[   23.867025] 
[   23.867183] CPU: 0 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   23.867263] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.867286] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.867322] Call Trace:
[   23.867348]  <TASK>
[   23.867374]  dump_stack_lvl+0x73/0xb0
[   23.867443]  print_report+0xd1/0x650
[   23.867613]  ? __virt_addr_valid+0x1db/0x2d0
[   23.867660]  ? kasan_strings+0xcbc/0xe80
[   23.867700]  ? kasan_complete_mode_report_info+0x64/0x200
[   23.867746]  ? kasan_strings+0xcbc/0xe80
[   23.867785]  kasan_report+0x141/0x180
[   23.867826]  ? kasan_strings+0xcbc/0xe80
[   23.867877]  __asan_report_load1_noabort+0x18/0x20
[   23.867911]  kasan_strings+0xcbc/0xe80
[   23.867940]  ? trace_hardirqs_on+0x37/0xe0
[   23.867976]  ? __pfx_kasan_strings+0x10/0x10
[   23.868033]  ? finish_task_switch.isra.0+0x153/0x700
[   23.868070]  ? __switch_to+0x47/0xf50
[   23.868116]  ? __schedule+0x10cc/0x2b60
[   23.868156]  ? __pfx_read_tsc+0x10/0x10
[   23.868194]  ? ktime_get_ts64+0x86/0x230
[   23.868237]  kunit_try_run_case+0x1a5/0x480
[   23.868281]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.868321]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.868361]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.868419]  ? __kthread_parkme+0x82/0x180
[   23.868460]  ? preempt_count_sub+0x50/0x80
[   23.868503]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.868550]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.868593]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.868634]  kthread+0x337/0x6f0
[   23.868670]  ? trace_preempt_on+0x20/0xc0
[   23.868711]  ? __pfx_kthread+0x10/0x10
[   23.868749]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.868785]  ? calculate_sigpending+0x7b/0xa0
[   23.868824]  ? __pfx_kthread+0x10/0x10
[   23.868856]  ret_from_fork+0x116/0x1d0
[   23.868884]  ? __pfx_kthread+0x10/0x10
[   23.868940]  ret_from_fork_asm+0x1a/0x30
[   23.868995]  </TASK>
[   23.869015] 
[   23.879391] Allocated by task 288:
[   23.879659]  kasan_save_stack+0x45/0x70
[   23.880105]  kasan_save_track+0x18/0x40
[   23.880974]  kasan_save_alloc_info+0x3b/0x50
[   23.881149]  __kasan_kmalloc+0xb7/0xc0
[   23.881512]  __kmalloc_cache_noprof+0x189/0x420
[   23.881884]  kasan_strings+0xc0/0xe80
[   23.882229]  kunit_try_run_case+0x1a5/0x480
[   23.882647]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.882821]  kthread+0x337/0x6f0
[   23.883256]  ret_from_fork+0x116/0x1d0
[   23.883538]  ret_from_fork_asm+0x1a/0x30
[   23.883986] 
[   23.884079] Freed by task 288:
[   23.884184]  kasan_save_stack+0x45/0x70
[   23.884624]  kasan_save_track+0x18/0x40
[   23.885173]  kasan_save_free_info+0x3f/0x60
[   23.885410]  __kasan_slab_free+0x56/0x70
[   23.885548]  kfree+0x222/0x3f0
[   23.886102]  kasan_strings+0x2aa/0xe80
[   23.886395]  kunit_try_run_case+0x1a5/0x480
[   23.886608]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.887113]  kthread+0x337/0x6f0
[   23.887371]  ret_from_fork+0x116/0x1d0
[   23.887561]  ret_from_fork_asm+0x1a/0x30
[   23.887734] 
[   23.887819] The buggy address belongs to the object at ffff8881023cba80
[   23.887819]  which belongs to the cache kmalloc-32 of size 32
[   23.888265] The buggy address is located 16 bytes inside of
[   23.888265]  freed 32-byte region [ffff8881023cba80, ffff8881023cbaa0)
[   23.888746] 
[   23.889284] The buggy address belongs to the physical page:
[   23.889583] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1023cb
[   23.889834] flags: 0x200000000000000(node=0|zone=2)
[   23.890018] page_type: f5(slab)
[   23.890622] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   23.891282] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   23.891596] page dumped because: kasan: bad access detected
[   23.891821] 
[   23.892228] Memory state around the buggy address:
[   23.892727]  ffff8881023cb980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.893535]  ffff8881023cba00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.893833] >ffff8881023cba80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.894422]                          ^
[   23.894795]  ffff8881023cbb00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   23.895198]  ffff8881023cbb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.895407] ==================================================================