Hay
Date
June 2, 2025, 2:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.850468] ==================================================================
[   20.850794] BUG: KASAN: slab-use-after-free in kasan_strings+0x838/0x8d8
[   20.851033] Read of size 1 at addr fff00000c3f46150 by task kunit_try_catch/249
[   20.851478] 
[   20.851678] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   20.851773] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.851806] Hardware name: linux,dummy-virt (DT)
[   20.851844] Call trace:
[   20.851872]  show_stack+0x20/0x38 (C)
[   20.851928]  dump_stack_lvl+0x8c/0xd0
[   20.851981]  print_report+0x118/0x608
[   20.852033]  kasan_report+0xdc/0x128
[   20.852086]  __asan_report_load1_noabort+0x20/0x30
[   20.852141]  kasan_strings+0x838/0x8d8
[   20.852802]  kunit_try_run_case+0x170/0x3f0
[   20.852863]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.852924]  kthread+0x318/0x620
[   20.852975]  ret_from_fork+0x10/0x20
[   20.853033] 
[   20.855758] Allocated by task 249:
[   20.855956]  kasan_save_stack+0x3c/0x68
[   20.856933]  kasan_save_track+0x20/0x40
[   20.857338]  kasan_save_alloc_info+0x40/0x58
[   20.857623]  __kasan_kmalloc+0xd4/0xd8
[   20.857819]  __kmalloc_cache_noprof+0x16c/0x3c0
[   20.858199]  kasan_strings+0xb0/0x8d8
[   20.858705]  kunit_try_run_case+0x170/0x3f0
[   20.859183]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.859452]  kthread+0x318/0x620
[   20.859652]  ret_from_fork+0x10/0x20
[   20.859867] 
[   20.860006] Freed by task 249:
[   20.860191]  kasan_save_stack+0x3c/0x68
[   20.860400]  kasan_save_track+0x20/0x40
[   20.860613]  kasan_save_free_info+0x4c/0x78
[   20.860833]  __kasan_slab_free+0x6c/0x98
[   20.861042]  kfree+0x214/0x3c8
[   20.861798]  kasan_strings+0x124/0x8d8
[   20.862025]  kunit_try_run_case+0x170/0x3f0
[   20.862641]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.862912]  kthread+0x318/0x620
[   20.863233]  ret_from_fork+0x10/0x20
[   20.863450] 
[   20.863631] The buggy address belongs to the object at fff00000c3f46140
[   20.863631]  which belongs to the cache kmalloc-32 of size 32
[   20.864141] The buggy address is located 16 bytes inside of
[   20.864141]  freed 32-byte region [fff00000c3f46140, fff00000c3f46160)
[   20.864590] 
[   20.864787] The buggy address belongs to the physical page:
[   20.865178] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f46
[   20.865656] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.865895] page_type: f5(slab)
[   20.866059] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   20.866905] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   20.867273] page dumped because: kasan: bad access detected
[   20.867544] 
[   20.867678] Memory state around the buggy address:
[   20.867909]  fff00000c3f46000: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc
[   20.869180]  fff00000c3f46080: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   20.869603] >fff00000c3f46100: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   20.869982]                                                  ^
[   20.871404]  fff00000c3f46180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   20.871831]  fff00000c3f46200: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   20.872170] ==================================================================

[   14.626188] ==================================================================
[   14.626425] BUG: KASAN: slab-use-after-free in kasan_strings+0xa0c/0xb60
[   14.626819] Read of size 1 at addr ffff888101bf5750 by task kunit_try_catch/267
[   14.627283] 
[   14.627367] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   14.627407] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.627418] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.627439] Call Trace:
[   14.627454]  <TASK>
[   14.627469]  dump_stack_lvl+0x73/0xb0
[   14.627493]  print_report+0xd1/0x650
[   14.627513]  ? __virt_addr_valid+0x1db/0x2d0
[   14.627535]  ? kasan_strings+0xa0c/0xb60
[   14.627553]  ? kasan_complete_mode_report_info+0x64/0x200
[   14.627578]  ? kasan_strings+0xa0c/0xb60
[   14.627597]  kasan_report+0x140/0x180
[   14.627619]  ? kasan_strings+0xa0c/0xb60
[   14.627642]  __asan_report_load1_noabort+0x18/0x20
[   14.627665]  kasan_strings+0xa0c/0xb60
[   14.627757]  ? __pfx_kasan_strings+0x10/0x10
[   14.627778]  ? __schedule+0xce8/0x2840
[   14.627801]  ? __pfx_read_tsc+0x10/0x10
[   14.627822]  ? ktime_get_ts64+0x86/0x230
[   14.627847]  kunit_try_run_case+0x1a6/0x480
[   14.627869]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.627889]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   14.627912]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.627935]  ? __kthread_parkme+0x82/0x160
[   14.627956]  ? preempt_count_sub+0x50/0x80
[   14.627980]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.628002]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.628039]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.628065]  kthread+0x324/0x6e0
[   14.628085]  ? trace_preempt_on+0x20/0xc0
[   14.628107]  ? __pfx_kthread+0x10/0x10
[   14.628152]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.628174]  ? calculate_sigpending+0x7b/0xa0
[   14.628196]  ? __pfx_kthread+0x10/0x10
[   14.628230]  ret_from_fork+0x41/0x80
[   14.628248]  ? __pfx_kthread+0x10/0x10
[   14.628270]  ret_from_fork_asm+0x1a/0x30
[   14.628303]  </TASK>
[   14.628313] 
[   14.641182] Allocated by task 267:
[   14.641515]  kasan_save_stack+0x45/0x70
[   14.641917]  kasan_save_track+0x18/0x40
[   14.642177]  kasan_save_alloc_info+0x3b/0x50
[   14.642599]  __kasan_kmalloc+0xb7/0xc0
[   14.642999]  __kmalloc_cache_noprof+0x18a/0x420
[   14.643203]  kasan_strings+0xb9/0xb60
[   14.643329]  kunit_try_run_case+0x1a6/0x480
[   14.643466]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.643760]  kthread+0x324/0x6e0
[   14.644089]  ret_from_fork+0x41/0x80
[   14.644418]  ret_from_fork_asm+0x1a/0x30
[   14.644850] 
[   14.645012] Freed by task 267:
[   14.645307]  kasan_save_stack+0x45/0x70
[   14.645653]  kasan_save_track+0x18/0x40
[   14.646230]  kasan_save_free_info+0x3f/0x60
[   14.646614]  __kasan_slab_free+0x56/0x70
[   14.646998]  kfree+0x224/0x3f0
[   14.647133]  kasan_strings+0x13c/0xb60
[   14.647266]  kunit_try_run_case+0x1a6/0x480
[   14.647409]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.647597]  kthread+0x324/0x6e0
[   14.647719]  ret_from_fork+0x41/0x80
[   14.647990]  ret_from_fork_asm+0x1a/0x30
[   14.648202] 
[   14.648289] The buggy address belongs to the object at ffff888101bf5740
[   14.648289]  which belongs to the cache kmalloc-32 of size 32
[   14.648916] The buggy address is located 16 bytes inside of
[   14.648916]  freed 32-byte region [ffff888101bf5740, ffff888101bf5760)
[   14.649394] 
[   14.649465] The buggy address belongs to the physical page:
[   14.649634] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bf5
[   14.649986] flags: 0x200000000000000(node=0|zone=2)
[   14.650347] page_type: f5(slab)
[   14.650528] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   14.650832] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   14.651189] page dumped because: kasan: bad access detected
[   14.651443] 
[   14.651518] Memory state around the buggy address:
[   14.651885]  ffff888101bf5600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   14.652154]  ffff888101bf5680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   14.652377] >ffff888101bf5700: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   14.652681]                                                  ^
[   14.652970]  ffff888101bf5780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   14.653255]  ffff888101bf5800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   14.653487] ==================================================================