Hay
Date
July 4, 2025, 3:11 p.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   38.424342] ==================================================================
[   38.431420] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00
[   38.438098] Read of size 1 at addr ffff000800cab9d0 by task kunit_try_catch/308
[   38.445388] 
[   38.446874] CPU: 6 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   38.446928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.446945] Hardware name: WinLink E850-96 board (DT)
[   38.446963] Call trace:
[   38.446978]  show_stack+0x20/0x38 (C)
[   38.447010]  dump_stack_lvl+0x8c/0xd0
[   38.447049]  print_report+0x118/0x608
[   38.447078]  kasan_report+0xdc/0x128
[   38.447106]  __asan_report_load1_noabort+0x20/0x30
[   38.447141]  kasan_strings+0x95c/0xb00
[   38.447174]  kunit_try_run_case+0x170/0x3f0
[   38.447211]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.447249]  kthread+0x328/0x630
[   38.447284]  ret_from_fork+0x10/0x20
[   38.447318] 
[   38.509275] Allocated by task 308:
[   38.512660]  kasan_save_stack+0x3c/0x68
[   38.516480]  kasan_save_track+0x20/0x40
[   38.520300]  kasan_save_alloc_info+0x40/0x58
[   38.524554]  __kasan_kmalloc+0xd4/0xd8
[   38.528286]  __kmalloc_cache_noprof+0x16c/0x3c0
[   38.532800]  kasan_strings+0xc8/0xb00
[   38.536446]  kunit_try_run_case+0x170/0x3f0
[   38.540612]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.546082]  kthread+0x328/0x630
[   38.549293]  ret_from_fork+0x10/0x20
[   38.552852] 
[   38.554327] Freed by task 308:
[   38.557366]  kasan_save_stack+0x3c/0x68
[   38.561185]  kasan_save_track+0x20/0x40
[   38.565004]  kasan_save_free_info+0x4c/0x78
[   38.569171]  __kasan_slab_free+0x6c/0x98
[   38.573077]  kfree+0x214/0x3c8
[   38.576115]  kasan_strings+0x24c/0xb00
[   38.579848]  kunit_try_run_case+0x170/0x3f0
[   38.584014]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.589483]  kthread+0x328/0x630
[   38.592695]  ret_from_fork+0x10/0x20
[   38.596254] 
[   38.597730] The buggy address belongs to the object at ffff000800cab9c0
[   38.597730]  which belongs to the cache kmalloc-32 of size 32
[   38.610056] The buggy address is located 16 bytes inside of
[   38.610056]  freed 32-byte region [ffff000800cab9c0, ffff000800cab9e0)
[   38.622121] 
[   38.623599] The buggy address belongs to the physical page:
[   38.629156] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880cab
[   38.637141] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   38.643650] page_type: f5(slab)
[   38.646785] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   38.654506] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   38.662225] page dumped because: kasan: bad access detected
[   38.667780] 
[   38.669256] Memory state around the buggy address:
[   38.674036]  ffff000800cab880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.681239]  ffff000800cab900: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   38.688445] >ffff000800cab980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.695645]                                                  ^
[   38.701464]  ffff000800caba00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.708668]  ffff000800caba80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   38.715870] ==================================================================

[   17.852839] ==================================================================
[   17.852912] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00
[   17.853016] Read of size 1 at addr fff00000c7949310 by task kunit_try_catch/264
[   17.853117] 
[   17.853151] CPU: 1 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   17.853351] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.853390] Hardware name: linux,dummy-virt (DT)
[   17.853423] Call trace:
[   17.853446]  show_stack+0x20/0x38 (C)
[   17.853497]  dump_stack_lvl+0x8c/0xd0
[   17.853609]  print_report+0x118/0x608
[   17.853705]  kasan_report+0xdc/0x128
[   17.853899]  __asan_report_load1_noabort+0x20/0x30
[   17.853953]  kasan_strings+0x95c/0xb00
[   17.854025]  kunit_try_run_case+0x170/0x3f0
[   17.854258]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.854328]  kthread+0x328/0x630
[   17.854454]  ret_from_fork+0x10/0x20
[   17.854548] 
[   17.854616] Allocated by task 264:
[   17.854685]  kasan_save_stack+0x3c/0x68
[   17.854728]  kasan_save_track+0x20/0x40
[   17.854796]  kasan_save_alloc_info+0x40/0x58
[   17.854837]  __kasan_kmalloc+0xd4/0xd8
[   17.854874]  __kmalloc_cache_noprof+0x16c/0x3c0
[   17.855126]  kasan_strings+0xc8/0xb00
[   17.855249]  kunit_try_run_case+0x170/0x3f0
[   17.855298]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.855530]  kthread+0x328/0x630
[   17.855585]  ret_from_fork+0x10/0x20
[   17.855690] 
[   17.855750] Freed by task 264:
[   17.855817]  kasan_save_stack+0x3c/0x68
[   17.856057]  kasan_save_track+0x20/0x40
[   17.856203]  kasan_save_free_info+0x4c/0x78
[   17.856411]  __kasan_slab_free+0x6c/0x98
[   17.856512]  kfree+0x214/0x3c8
[   17.856553]  kasan_strings+0x24c/0xb00
[   17.856812]  kunit_try_run_case+0x170/0x3f0
[   17.856936]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.857078]  kthread+0x328/0x630
[   17.857196]  ret_from_fork+0x10/0x20
[   17.857252] 
[   17.857274] The buggy address belongs to the object at fff00000c7949300
[   17.857274]  which belongs to the cache kmalloc-32 of size 32
[   17.857621] The buggy address is located 16 bytes inside of
[   17.857621]  freed 32-byte region [fff00000c7949300, fff00000c7949320)
[   17.857726] 
[   17.857757] The buggy address belongs to the physical page:
[   17.857799] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107949
[   17.857852] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.857924] page_type: f5(slab)
[   17.857990] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   17.858052] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   17.858094] page dumped because: kasan: bad access detected
[   17.858127] 
[   17.858147] Memory state around the buggy address:
[   17.858180]  fff00000c7949200: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   17.858226]  fff00000c7949280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   17.858269] >fff00000c7949300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   17.858323]                          ^
[   17.858355]  fff00000c7949380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   17.858400]  fff00000c7949400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   17.858441] ==================================================================

[   16.759001] ==================================================================
[   16.760280] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80
[   16.760872] Read of size 1 at addr ffff8881029f4750 by task kunit_try_catch/280
[   16.761418] 
[   16.761672] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT(voluntary) 
[   16.761804] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.761835] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.761886] Call Trace:
[   16.761937]  <TASK>
[   16.761984]  dump_stack_lvl+0x73/0xb0
[   16.762054]  print_report+0xd1/0x650
[   16.762114]  ? __virt_addr_valid+0x1db/0x2d0
[   16.762165]  ? kasan_strings+0xcbc/0xe80
[   16.762210]  ? kasan_complete_mode_report_info+0x64/0x200
[   16.762254]  ? kasan_strings+0xcbc/0xe80
[   16.762312]  kasan_report+0x141/0x180
[   16.762384]  ? kasan_strings+0xcbc/0xe80
[   16.762441]  __asan_report_load1_noabort+0x18/0x20
[   16.762486]  kasan_strings+0xcbc/0xe80
[   16.762541]  ? __pfx_kasan_strings+0x10/0x10
[   16.762601]  ? __schedule+0x207f/0x2b60
[   16.762650]  ? schedule+0x7c/0x2e0
[   16.762695]  ? trace_hardirqs_on+0x37/0xe0
[   16.762741]  ? __schedule+0x207f/0x2b60
[   16.762790]  ? __pfx_read_tsc+0x10/0x10
[   16.762834]  ? ktime_get_ts64+0x86/0x230
[   16.762884]  kunit_try_run_case+0x1a5/0x480
[   16.762936]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.762978]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.763036]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.763110]  ? __kthread_parkme+0x82/0x180
[   16.763157]  ? preempt_count_sub+0x50/0x80
[   16.763216]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.763257]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.763288]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.763313]  kthread+0x337/0x6f0
[   16.763349]  ? trace_preempt_on+0x20/0xc0
[   16.763381]  ? __pfx_kthread+0x10/0x10
[   16.763402]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.763426]  ? calculate_sigpending+0x7b/0xa0
[   16.763450]  ? __pfx_kthread+0x10/0x10
[   16.763472]  ret_from_fork+0x41/0x80
[   16.763494]  ? __pfx_kthread+0x10/0x10
[   16.763516]  ret_from_fork_asm+0x1a/0x30
[   16.763550]  </TASK>
[   16.763564] 
[   16.776497] Allocated by task 280:
[   16.776943]  kasan_save_stack+0x45/0x70
[   16.777293]  kasan_save_track+0x18/0x40
[   16.777644]  kasan_save_alloc_info+0x3b/0x50
[   16.777907]  __kasan_kmalloc+0xb7/0xc0
[   16.778271]  __kmalloc_cache_noprof+0x189/0x420
[   16.778576]  kasan_strings+0xc0/0xe80
[   16.779031]  kunit_try_run_case+0x1a5/0x480
[   16.779721]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.779975]  kthread+0x337/0x6f0
[   16.780296]  ret_from_fork+0x41/0x80
[   16.780663]  ret_from_fork_asm+0x1a/0x30
[   16.780901] 
[   16.781024] Freed by task 280:
[   16.781679]  kasan_save_stack+0x45/0x70
[   16.781912]  kasan_save_track+0x18/0x40
[   16.782509]  kasan_save_free_info+0x3f/0x60
[   16.782796]  __kasan_slab_free+0x56/0x70
[   16.783025]  kfree+0x222/0x3f0
[   16.783649]  kasan_strings+0x2aa/0xe80
[   16.783884]  kunit_try_run_case+0x1a5/0x480
[   16.784236]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.784607]  kthread+0x337/0x6f0
[   16.784921]  ret_from_fork+0x41/0x80
[   16.785291]  ret_from_fork_asm+0x1a/0x30
[   16.785525] 
[   16.785717] The buggy address belongs to the object at ffff8881029f4740
[   16.785717]  which belongs to the cache kmalloc-32 of size 32
[   16.786284] The buggy address is located 16 bytes inside of
[   16.786284]  freed 32-byte region [ffff8881029f4740, ffff8881029f4760)
[   16.787226] 
[   16.787368] The buggy address belongs to the physical page:
[   16.787824] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f4
[   16.788715] flags: 0x200000000000000(node=0|zone=2)
[   16.788889] page_type: f5(slab)
[   16.788995] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   16.789267] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   16.789869] page dumped because: kasan: bad access detected
[   16.790092] 
[   16.790322] Memory state around the buggy address:
[   16.790848]  ffff8881029f4600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   16.791529]  ffff8881029f4680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   16.792142] >ffff8881029f4700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   16.792630]                                                  ^
[   16.793117]  ffff8881029f4780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   16.793788]  ffff8881029f4800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   16.794230] ==================================================================