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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   57.216899] ==================================================================
[   57.240543] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8
[   57.246440] Read of size 1 at addr ffff0008085305d0 by task kunit_try_catch/340
[   57.253731] 
[   57.255218] CPU: 0 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   57.255274] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.255293] Hardware name: WinLink E850-96 board (DT)
[   57.255316] Call trace:
[   57.255332]  show_stack+0x20/0x38 (C)
[   57.255369]  dump_stack_lvl+0x8c/0xd0
[   57.255406]  print_report+0x118/0x5d0
[   57.255437]  kasan_report+0xdc/0x128
[   57.255465]  __asan_report_load1_noabort+0x20/0x30
[   57.255501]  strcmp+0xc0/0xc8
[   57.255526]  kasan_strings+0x340/0xb00
[   57.255559]  kunit_try_run_case+0x170/0x3f0
[   57.255591]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.255628]  kthread+0x328/0x630
[   57.255654]  ret_from_fork+0x10/0x20
[   57.255690] 
[   57.321788] Allocated by task 340:
[   57.325175]  kasan_save_stack+0x3c/0x68
[   57.328990]  kasan_save_track+0x20/0x40
[   57.332811]  kasan_save_alloc_info+0x40/0x58
[   57.337063]  __kasan_kmalloc+0xd4/0xd8
[   57.340796]  __kmalloc_cache_noprof+0x16c/0x3c0
[   57.345309]  kasan_strings+0xc8/0xb00
[   57.348955]  kunit_try_run_case+0x170/0x3f0
[   57.353122]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.358591]  kthread+0x328/0x630
[   57.361802]  ret_from_fork+0x10/0x20
[   57.365361] 
[   57.366838] Freed by task 340:
[   57.369876]  kasan_save_stack+0x3c/0x68
[   57.373694]  kasan_save_track+0x20/0x40
[   57.377514]  kasan_save_free_info+0x4c/0x78
[   57.381680]  __kasan_slab_free+0x6c/0x98
[   57.385587]  kfree+0x214/0x3c8
[   57.388625]  kasan_strings+0x24c/0xb00
[   57.392357]  kunit_try_run_case+0x170/0x3f0
[   57.396524]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.401994]  kthread+0x328/0x630
[   57.405204]  ret_from_fork+0x10/0x20
[   57.408763] 
[   57.410240] The buggy address belongs to the object at ffff0008085305c0
[   57.410240]  which belongs to the cache kmalloc-32 of size 32
[   57.422567] The buggy address is located 16 bytes inside of
[   57.422567]  freed 32-byte region [ffff0008085305c0, ffff0008085305e0)
[   57.434631] 
[   57.436110] The buggy address belongs to the physical page:
[   57.441666] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x888530
[   57.449651] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   57.456160] page_type: f5(slab)
[   57.459294] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   57.467016] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   57.474737] page dumped because: kasan: bad access detected
[   57.480290] 
[   57.481765] Memory state around the buggy address:
[   57.486545]  ffff000808530480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.493748]  ffff000808530500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.500953] >ffff000808530580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.508154]                                                  ^
[   57.513974]  ffff000808530600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   57.521178]  ffff000808530680: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   57.528379] ==================================================================

[   32.937572] ==================================================================
[   32.938213] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8
[   32.938560] Read of size 1 at addr fff00000c64fae50 by task kunit_try_catch/291
[   32.938723] 
[   32.938857] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   32.938968] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.939022] Hardware name: linux,dummy-virt (DT)
[   32.939148] Call trace:
[   32.939195]  show_stack+0x20/0x38 (C)
[   32.939408]  dump_stack_lvl+0x8c/0xd0
[   32.939651]  print_report+0x118/0x5d0
[   32.939731]  kasan_report+0xdc/0x128
[   32.939913]  __asan_report_load1_noabort+0x20/0x30
[   32.940101]  strcmp+0xc0/0xc8
[   32.940334]  kasan_strings+0x340/0xb00
[   32.940553]  kunit_try_run_case+0x170/0x3f0
[   32.940710]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.940816]  kthread+0x328/0x630
[   32.940893]  ret_from_fork+0x10/0x20
[   32.941058] 
[   32.941128] Allocated by task 291:
[   32.941232]  kasan_save_stack+0x3c/0x68
[   32.941331]  kasan_save_track+0x20/0x40
[   32.941549]  kasan_save_alloc_info+0x40/0x58
[   32.941633]  __kasan_kmalloc+0xd4/0xd8
[   32.941802]  __kmalloc_cache_noprof+0x16c/0x3c0
[   32.941940]  kasan_strings+0xc8/0xb00
[   32.942046]  kunit_try_run_case+0x170/0x3f0
[   32.942226]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.942275]  kthread+0x328/0x630
[   32.942311]  ret_from_fork+0x10/0x20
[   32.942355] 
[   32.942537] Freed by task 291:
[   32.942737]  kasan_save_stack+0x3c/0x68
[   32.942829]  kasan_save_track+0x20/0x40
[   32.942980]  kasan_save_free_info+0x4c/0x78
[   32.943142]  __kasan_slab_free+0x6c/0x98
[   32.943240]  kfree+0x214/0x3c8
[   32.943335]  kasan_strings+0x24c/0xb00
[   32.943517]  kunit_try_run_case+0x170/0x3f0
[   32.943702]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.943922]  kthread+0x328/0x630
[   32.944051]  ret_from_fork+0x10/0x20
[   32.944329] 
[   32.944384] The buggy address belongs to the object at fff00000c64fae40
[   32.944384]  which belongs to the cache kmalloc-32 of size 32
[   32.944732] The buggy address is located 16 bytes inside of
[   32.944732]  freed 32-byte region [fff00000c64fae40, fff00000c64fae60)
[   32.944979] 
[   32.945014] The buggy address belongs to the physical page:
[   32.945344] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064fa
[   32.945633] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.945866] page_type: f5(slab)
[   32.945954] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   32.946006] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000
[   32.946049] page dumped because: kasan: bad access detected
[   32.946084] 
[   32.946291] Memory state around the buggy address:
[   32.946659]  fff00000c64fad00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   32.946828]  fff00000c64fad80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   32.946903] >fff00000c64fae00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   32.947129]                                                  ^
[   32.947315]  fff00000c64fae80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   32.947490]  fff00000c64faf00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   32.947585] ==================================================================

[   26.007445] ==================================================================
[   26.008580] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0
[   26.009086] Read of size 1 at addr ffff88810591fe50 by task kunit_try_catch/307
[   26.009427] 
[   26.009564] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   26.009656] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.009672] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.009872] Call Trace:
[   26.009889]  <TASK>
[   26.009910]  dump_stack_lvl+0x73/0xb0
[   26.009958]  print_report+0xd1/0x610
[   26.009989]  ? __virt_addr_valid+0x1db/0x2d0
[   26.010020]  ? strcmp+0xb0/0xc0
[   26.010046]  ? kasan_complete_mode_report_info+0x64/0x200
[   26.010078]  ? strcmp+0xb0/0xc0
[   26.010103]  kasan_report+0x141/0x180
[   26.010131]  ? strcmp+0xb0/0xc0
[   26.010163]  __asan_report_load1_noabort+0x18/0x20
[   26.010355]  strcmp+0xb0/0xc0
[   26.010387]  kasan_strings+0x431/0xe80
[   26.010422]  ? trace_hardirqs_on+0x37/0xe0
[   26.010453]  ? __pfx_kasan_strings+0x10/0x10
[   26.010495]  ? finish_task_switch.isra.0+0x153/0x700
[   26.010522]  ? __switch_to+0x47/0xf80
[   26.010566]  ? __schedule+0x10cc/0x2b60
[   26.010661]  ? __pfx_read_tsc+0x10/0x10
[   26.010690]  ? ktime_get_ts64+0x86/0x230
[   26.010721]  kunit_try_run_case+0x1a5/0x480
[   26.010750]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.010776]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.010803]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.010830]  ? __kthread_parkme+0x82/0x180
[   26.010857]  ? preempt_count_sub+0x50/0x80
[   26.010886]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.010913]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.010944]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.010976]  kthread+0x337/0x6f0
[   26.011000]  ? trace_preempt_on+0x20/0xc0
[   26.011028]  ? __pfx_kthread+0x10/0x10
[   26.011053]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.011082]  ? calculate_sigpending+0x7b/0xa0
[   26.011112]  ? __pfx_kthread+0x10/0x10
[   26.011140]  ret_from_fork+0x116/0x1d0
[   26.011163]  ? __pfx_kthread+0x10/0x10
[   26.011189]  ret_from_fork_asm+0x1a/0x30
[   26.011230]  </TASK>
[   26.011243] 
[   26.020766] Allocated by task 307:
[   26.020937]  kasan_save_stack+0x45/0x70
[   26.021179]  kasan_save_track+0x18/0x40
[   26.021399]  kasan_save_alloc_info+0x3b/0x50
[   26.021602]  __kasan_kmalloc+0xb7/0xc0
[   26.021829]  __kmalloc_cache_noprof+0x189/0x420
[   26.022066]  kasan_strings+0xc0/0xe80
[   26.022255]  kunit_try_run_case+0x1a5/0x480
[   26.022458]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.022805]  kthread+0x337/0x6f0
[   26.022933]  ret_from_fork+0x116/0x1d0
[   26.023069]  ret_from_fork_asm+0x1a/0x30
[   26.023209] 
[   26.023296] Freed by task 307:
[   26.023449]  kasan_save_stack+0x45/0x70
[   26.023668]  kasan_save_track+0x18/0x40
[   26.023861]  kasan_save_free_info+0x3f/0x60
[   26.024067]  __kasan_slab_free+0x56/0x70
[   26.024437]  kfree+0x222/0x3f0
[   26.024693]  kasan_strings+0x2aa/0xe80
[   26.024854]  kunit_try_run_case+0x1a5/0x480
[   26.025100]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.025343]  kthread+0x337/0x6f0
[   26.025467]  ret_from_fork+0x116/0x1d0
[   26.025615]  ret_from_fork_asm+0x1a/0x30
[   26.025799] 
[   26.025906] The buggy address belongs to the object at ffff88810591fe40
[   26.025906]  which belongs to the cache kmalloc-32 of size 32
[   26.026537] The buggy address is located 16 bytes inside of
[   26.026537]  freed 32-byte region [ffff88810591fe40, ffff88810591fe60)
[   26.027104] 
[   26.027191] The buggy address belongs to the physical page:
[   26.027447] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10591f
[   26.027855] flags: 0x200000000000000(node=0|zone=2)
[   26.028088] page_type: f5(slab)
[   26.028238] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   26.028555] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000
[   26.029006] page dumped because: kasan: bad access detected
[   26.029189] 
[   26.029257] Memory state around the buggy address:
[   26.029411]  ffff88810591fd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   26.029768]  ffff88810591fd80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   26.030083] >ffff88810591fe00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   26.030590]                                                  ^
[   26.030999]  ffff88810591fe80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   26.031216]  ffff88810591ff00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   26.031429] ==================================================================