Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   94.810506] ==================================================================
[   94.812116] BUG: KASAN: slab-use-after-free in kasan_strings+0x150/0x478
[   94.812977] Read of size 1 at addr ffff0000c60910d0 by task kunit_try_catch/205
[   94.813888] 
[   94.814313] CPU: 0 PID: 205 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   94.815769] Hardware name: linux,dummy-virt (DT)
[   94.816610] Call trace:
[   94.817209]  dump_backtrace+0x9c/0x128
[   94.818054]  show_stack+0x20/0x38
[   94.819302]  dump_stack_lvl+0x60/0xb0
[   94.820602]  print_report+0xf8/0x5e8
[   94.821583]  kasan_report+0xdc/0x128
[   94.822552]  __asan_load1+0x60/0x70
[   94.823583]  kasan_strings+0x150/0x478
[   94.824706]  kunit_try_run_case+0x114/0x298
[   94.825654]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   94.826693]  kthread+0x18c/0x1a8
[   94.827448]  ret_from_fork+0x10/0x20
[   94.828271] 
[   94.828724] Allocated by task 205:
[   94.829317]  kasan_save_stack+0x3c/0x68
[   94.830316]  kasan_set_track+0x2c/0x40
[   94.831460]  kasan_save_alloc_info+0x24/0x38
[   94.832221]  __kasan_kmalloc+0xd4/0xd8
[   94.833342]  kmalloc_trace+0x68/0x130
[   94.834205]  kasan_strings+0xa0/0x478
[   94.835058]  kunit_try_run_case+0x114/0x298
[   94.836124]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   94.837265]  kthread+0x18c/0x1a8
[   94.837998]  ret_from_fork+0x10/0x20
[   94.838818] 
[   94.839150] Freed by task 205:
[   94.839661]  kasan_save_stack+0x3c/0x68
[   94.840395]  kasan_set_track+0x2c/0x40
[   94.841756]  kasan_save_free_info+0x38/0x60
[   94.842585]  __kasan_slab_free+0x100/0x170
[   94.843853]  __kmem_cache_free+0x178/0x2c8
[   94.844892]  kfree+0x74/0x138
[   94.845683]  kasan_strings+0xbc/0x478
[   94.846497]  kunit_try_run_case+0x114/0x298
[   94.847785]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   94.849000]  kthread+0x18c/0x1a8
[   94.849805]  ret_from_fork+0x10/0x20
[   94.850623] 
[   94.851064] The buggy address belongs to the object at ffff0000c60910c0
[   94.851064]  which belongs to the cache kmalloc-32 of size 32
[   94.853025] The buggy address is located 16 bytes inside of
[   94.853025]  freed 32-byte region [ffff0000c60910c0, ffff0000c60910e0)
[   94.854562] 
[   94.855062] The buggy address belongs to the physical page:
[   94.855770] page:0000000008bc5175 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106091
[   94.857376] flags: 0xbfffc0000000800(slab|node=0|zone=2|lastcpupid=0xffff)
[   94.858578] page_type: 0xffffffff()
[   94.859443] raw: 0bfffc0000000800 ffff0000c0001500 dead000000000122 0000000000000000
[   94.860872] raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000
[   94.861940] page dumped because: kasan: bad access detected
[   94.862809] 
[   94.863171] Memory state around the buggy address:
[   94.863824]  ffff0000c6090f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   94.865080]  ffff0000c6091000: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   94.866429] >ffff0000c6091080: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   94.867910]                                                  ^
[   94.868992]  ffff0000c6091100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   94.870230]  ffff0000c6091180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   94.871189] ==================================================================


[   35.618392] ==================================================================
[   35.619155] BUG: KASAN: slab-use-after-free in kasan_strings+0x19b/0x510
[   35.619695] Read of size 1 at addr ffff888102869450 by task kunit_try_catch/220
[   35.620258] 
[   35.620837] CPU: 0 PID: 220 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   35.621333] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.621932] Call Trace:
[   35.622238]  <TASK>
[   35.622547]  dump_stack_lvl+0x4e/0x90
[   35.622980]  print_report+0xd2/0x650
[   35.623388]  ? __virt_addr_valid+0x156/0x1e0
[   35.623761]  ? kasan_strings+0x19b/0x510
[   35.624057]  ? kasan_complete_mode_report_info+0x64/0x200
[   35.624427]  ? kasan_strings+0x19b/0x510
[   35.625060]  kasan_report+0x147/0x180
[   35.625337]  ? kasan_strings+0x19b/0x510
[   35.625733]  __asan_load1+0x66/0x70
[   35.626139]  kasan_strings+0x19b/0x510
[   35.626671]  ? __pfx_kasan_strings+0x10/0x10
[   35.627114]  ? __schedule+0x715/0x11a0
[   35.627533]  ? ktime_get_ts64+0x118/0x140
[   35.627967]  kunit_try_run_case+0x120/0x290
[   35.628563]  ? __pfx_kunit_try_run_case+0x10/0x10
[   35.628948]  ? __kasan_check_write+0x18/0x20
[   35.629183]  ? trace_preempt_on+0x20/0xa0
[   35.629752]  ? __kthread_parkme+0x4f/0xd0
[   35.630055]  ? preempt_count_sub+0x50/0x80
[   35.630503]  ? __pfx_kunit_try_run_case+0x10/0x10
[   35.631037]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   35.631422]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   35.631937]  kthread+0x19e/0x1e0
[   35.632319]  ? __pfx_kthread+0x10/0x10
[   35.632713]  ret_from_fork+0x41/0x70
[   35.633127]  ? __pfx_kthread+0x10/0x10
[   35.633581]  ret_from_fork_asm+0x1b/0x30
[   35.634039]  </TASK>
[   35.634326] 
[   35.634478] Allocated by task 220:
[   35.634692]  kasan_save_stack+0x44/0x70
[   35.635459]  kasan_set_track+0x29/0x40
[   35.635783]  kasan_save_alloc_info+0x22/0x30
[   35.636194]  __kasan_kmalloc+0xb7/0xc0
[   35.636597]  kmalloc_trace+0x4c/0xb0
[   35.637017]  kasan_strings+0x9f/0x510
[   35.637504]  kunit_try_run_case+0x120/0x290
[   35.637962]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   35.638442]  kthread+0x19e/0x1e0
[   35.638850]  ret_from_fork+0x41/0x70
[   35.639137]  ret_from_fork_asm+0x1b/0x30
[   35.639526] 
[   35.640022] Freed by task 220:
[   35.640237]  kasan_save_stack+0x44/0x70
[   35.640777]  kasan_set_track+0x29/0x40
[   35.641050]  kasan_save_free_info+0x2f/0x50
[   35.641434]  ____kasan_slab_free+0x172/0x1d0
[   35.641841]  __kasan_slab_free+0x16/0x20
[   35.642105]  __kmem_cache_free+0x190/0x310
[   35.642346]  kfree+0x7c/0x120
[   35.642837]  kasan_strings+0xc3/0x510
[   35.643227]  kunit_try_run_case+0x120/0x290
[   35.643675]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   35.643962]  kthread+0x19e/0x1e0
[   35.644155]  ret_from_fork+0x41/0x70
[   35.644515]  ret_from_fork_asm+0x1b/0x30
[   35.645104] 
[   35.645399] The buggy address belongs to the object at ffff888102869440
[   35.645399]  which belongs to the cache kmalloc-32 of size 32
[   35.646170] The buggy address is located 16 bytes inside of
[   35.646170]  freed 32-byte region [ffff888102869440, ffff888102869460)
[   35.647244] 
[   35.647426] The buggy address belongs to the physical page:
[   35.647851] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102869
[   35.648607] flags: 0x200000000000800(slab|node=0|zone=2)
[   35.649033] page_type: 0xffffffff()
[   35.649260] raw: 0200000000000800 ffff888100041500 dead000000000122 0000000000000000
[   35.649908] raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000
[   35.650580] page dumped because: kasan: bad access detected
[   35.651093] 
[   35.651336] Memory state around the buggy address:
[   35.651769]  ffff888102869300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   35.652326]  ffff888102869380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   35.652925] >ffff888102869400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   35.653462]                                                  ^
[   35.653731]  ffff888102869480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   35.654214]  ffff888102869500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   35.655066] ==================================================================