Hay
Date
July 15, 2025, 11:35 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   57.535778] ==================================================================
[   57.542794] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00
[   57.549475] Read of size 1 at addr ffff0008085305d0 by task kunit_try_catch/340
[   57.556765] 
[   57.558250] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   57.558305] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.558322] Hardware name: WinLink E850-96 board (DT)
[   57.558344] Call trace:
[   57.558358]  show_stack+0x20/0x38 (C)
[   57.558392]  dump_stack_lvl+0x8c/0xd0
[   57.558425]  print_report+0x118/0x5d0
[   57.558454]  kasan_report+0xdc/0x128
[   57.558482]  __asan_report_load1_noabort+0x20/0x30
[   57.558516]  kasan_strings+0x95c/0xb00
[   57.558547]  kunit_try_run_case+0x170/0x3f0
[   57.558577]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.558610]  kthread+0x328/0x630
[   57.558639]  ret_from_fork+0x10/0x20
[   57.558674] 
[   57.621869] Allocated by task 340:
[   57.625255]  kasan_save_stack+0x3c/0x68
[   57.629072]  kasan_save_track+0x20/0x40
[   57.632892]  kasan_save_alloc_info+0x40/0x58
[   57.637145]  __kasan_kmalloc+0xd4/0xd8
[   57.640878]  __kmalloc_cache_noprof+0x16c/0x3c0
[   57.645392]  kasan_strings+0xc8/0xb00
[   57.649037]  kunit_try_run_case+0x170/0x3f0
[   57.653204]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.658673]  kthread+0x328/0x630
[   57.661885]  ret_from_fork+0x10/0x20
[   57.665444] 
[   57.666919] Freed by task 340:
[   57.669959]  kasan_save_stack+0x3c/0x68
[   57.673777]  kasan_save_track+0x20/0x40
[   57.677596]  kasan_save_free_info+0x4c/0x78
[   57.681763]  __kasan_slab_free+0x6c/0x98
[   57.685669]  kfree+0x214/0x3c8
[   57.688707]  kasan_strings+0x24c/0xb00
[   57.692440]  kunit_try_run_case+0x170/0x3f0
[   57.696606]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.702076]  kthread+0x328/0x630
[   57.705287]  ret_from_fork+0x10/0x20
[   57.708846] 
[   57.710321] The buggy address belongs to the object at ffff0008085305c0
[   57.710321]  which belongs to the cache kmalloc-32 of size 32
[   57.722648] The buggy address is located 16 bytes inside of
[   57.722648]  freed 32-byte region [ffff0008085305c0, ffff0008085305e0)
[   57.734713] 
[   57.736193] The buggy address belongs to the physical page:
[   57.741748] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x888530
[   57.749732] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   57.756241] page_type: f5(slab)
[   57.759376] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   57.767098] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   57.774817] page dumped because: kasan: bad access detected
[   57.780372] 
[   57.781848] Memory state around the buggy address:
[   57.786629]  ffff000808530480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.793831]  ffff000808530500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.801036] >ffff000808530580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.808236]                                                  ^
[   57.814056]  ffff000808530600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.821261]  ffff000808530680: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   57.828462] ==================================================================

[   32.948616] ==================================================================
[   32.948670] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00
[   32.948723] Read of size 1 at addr fff00000c64fae50 by task kunit_try_catch/291
[   32.948774] 
[   32.948805] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   32.948892] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.948920] Hardware name: linux,dummy-virt (DT)
[   32.949169] Call trace:
[   32.949207]  show_stack+0x20/0x38 (C)
[   32.949271]  dump_stack_lvl+0x8c/0xd0
[   32.949322]  print_report+0x118/0x5d0
[   32.949375]  kasan_report+0xdc/0x128
[   32.949423]  __asan_report_load1_noabort+0x20/0x30
[   32.950761]  kasan_strings+0x95c/0xb00
[   32.950867]  kunit_try_run_case+0x170/0x3f0
[   32.951074]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.951303]  kthread+0x328/0x630
[   32.951445]  ret_from_fork+0x10/0x20
[   32.951618] 
[   32.951671] Allocated by task 291:
[   32.951703]  kasan_save_stack+0x3c/0x68
[   32.951956]  kasan_save_track+0x20/0x40
[   32.952276]  kasan_save_alloc_info+0x40/0x58
[   32.952540]  __kasan_kmalloc+0xd4/0xd8
[   32.953141]  __kmalloc_cache_noprof+0x16c/0x3c0
[   32.953234]  kasan_strings+0xc8/0xb00
[   32.953296]  kunit_try_run_case+0x170/0x3f0
[   32.953417]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.953574]  kthread+0x328/0x630
[   32.953660]  ret_from_fork+0x10/0x20
[   32.953843] 
[   32.953944] Freed by task 291:
[   32.953978]  kasan_save_stack+0x3c/0x68
[   32.954030]  kasan_save_track+0x20/0x40
[   32.954072]  kasan_save_free_info+0x4c/0x78
[   32.954478]  __kasan_slab_free+0x6c/0x98
[   32.954630]  kfree+0x214/0x3c8
[   32.954727]  kasan_strings+0x24c/0xb00
[   32.954812]  kunit_try_run_case+0x170/0x3f0
[   32.954931]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.955048]  kthread+0x328/0x630
[   32.955253]  ret_from_fork+0x10/0x20
[   32.955337] 
[   32.955664] The buggy address belongs to the object at fff00000c64fae40
[   32.955664]  which belongs to the cache kmalloc-32 of size 32
[   32.955888] The buggy address is located 16 bytes inside of
[   32.955888]  freed 32-byte region [fff00000c64fae40, fff00000c64fae60)
[   32.956013] 
[   32.956280] The buggy address belongs to the physical page:
[   32.956492] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064fa
[   32.956594] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.956784] page_type: f5(slab)
[   32.957031] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   32.957278] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000
[   32.957515] page dumped because: kasan: bad access detected
[   32.957688] 
[   32.957945] Memory state around the buggy address:
[   32.958024]  fff00000c64fad00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   32.958093]  fff00000c64fad80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   32.958420] >fff00000c64fae00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   32.958554]                                                  ^
[   32.958690]  fff00000c64fae80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   32.958737]  fff00000c64faf00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   32.958917] ==================================================================

[   26.032345] ==================================================================
[   26.032710] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80
[   26.033084] Read of size 1 at addr ffff88810591fe50 by task kunit_try_catch/307
[   26.033387] 
[   26.033492] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   26.033565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.033582] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.033605] Call Trace:
[   26.033668]  <TASK>
[   26.033684]  dump_stack_lvl+0x73/0xb0
[   26.033716]  print_report+0xd1/0x610
[   26.033754]  ? __virt_addr_valid+0x1db/0x2d0
[   26.033783]  ? kasan_strings+0xcbc/0xe80
[   26.033819]  ? kasan_complete_mode_report_info+0x64/0x200
[   26.033852]  ? kasan_strings+0xcbc/0xe80
[   26.033879]  kasan_report+0x141/0x180
[   26.033916]  ? kasan_strings+0xcbc/0xe80
[   26.033948]  __asan_report_load1_noabort+0x18/0x20
[   26.033988]  kasan_strings+0xcbc/0xe80
[   26.034012]  ? trace_hardirqs_on+0x37/0xe0
[   26.034040]  ? __pfx_kasan_strings+0x10/0x10
[   26.034074]  ? finish_task_switch.isra.0+0x153/0x700
[   26.034100]  ? __switch_to+0x47/0xf80
[   26.034141]  ? __schedule+0x10cc/0x2b60
[   26.034169]  ? __pfx_read_tsc+0x10/0x10
[   26.034194]  ? ktime_get_ts64+0x86/0x230
[   26.034225]  kunit_try_run_case+0x1a5/0x480
[   26.034254]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.034280]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.034306]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.034333]  ? __kthread_parkme+0x82/0x180
[   26.034357]  ? preempt_count_sub+0x50/0x80
[   26.034387]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.034415]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.034446]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.034490]  kthread+0x337/0x6f0
[   26.034514]  ? trace_preempt_on+0x20/0xc0
[   26.034556]  ? __pfx_kthread+0x10/0x10
[   26.034627]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.034658]  ? calculate_sigpending+0x7b/0xa0
[   26.034686]  ? __pfx_kthread+0x10/0x10
[   26.034713]  ret_from_fork+0x116/0x1d0
[   26.034737]  ? __pfx_kthread+0x10/0x10
[   26.034765]  ret_from_fork_asm+0x1a/0x30
[   26.034803]  </TASK>
[   26.034816] 
[   26.042512] Allocated by task 307:
[   26.042754]  kasan_save_stack+0x45/0x70
[   26.042943]  kasan_save_track+0x18/0x40
[   26.043080]  kasan_save_alloc_info+0x3b/0x50
[   26.043296]  __kasan_kmalloc+0xb7/0xc0
[   26.043508]  __kmalloc_cache_noprof+0x189/0x420
[   26.043797]  kasan_strings+0xc0/0xe80
[   26.043938]  kunit_try_run_case+0x1a5/0x480
[   26.044176]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.044449]  kthread+0x337/0x6f0
[   26.044777]  ret_from_fork+0x116/0x1d0
[   26.044935]  ret_from_fork_asm+0x1a/0x30
[   26.045126] 
[   26.045236] Freed by task 307:
[   26.045396]  kasan_save_stack+0x45/0x70
[   26.045597]  kasan_save_track+0x18/0x40
[   26.045853]  kasan_save_free_info+0x3f/0x60
[   26.046067]  __kasan_slab_free+0x56/0x70
[   26.046258]  kfree+0x222/0x3f0
[   26.046422]  kasan_strings+0x2aa/0xe80
[   26.046681]  kunit_try_run_case+0x1a5/0x480
[   26.046876]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.047114]  kthread+0x337/0x6f0
[   26.047237]  ret_from_fork+0x116/0x1d0
[   26.047371]  ret_from_fork_asm+0x1a/0x30
[   26.047512] 
[   26.047589] The buggy address belongs to the object at ffff88810591fe40
[   26.047589]  which belongs to the cache kmalloc-32 of size 32
[   26.048044] The buggy address is located 16 bytes inside of
[   26.048044]  freed 32-byte region [ffff88810591fe40, ffff88810591fe60)
[   26.048847] 
[   26.048924] The buggy address belongs to the physical page:
[   26.049095] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10591f
[   26.049332] flags: 0x200000000000000(node=0|zone=2)
[   26.049489] page_type: f5(slab)
[   26.049757] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   26.050140] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000
[   26.050510] page dumped because: kasan: bad access detected
[   26.051053] 
[   26.051146] Memory state around the buggy address:
[   26.051564]  ffff88810591fd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   26.051950]  ffff88810591fd80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   26.052295] >ffff88810591fe00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   26.052633]                                                  ^
[   26.052919]  ffff88810591fe80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   26.053237]  ffff88810591ff00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   26.053459] ==================================================================