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

Environment
e850-96
qemu-x86_64

[   38.369280] ==================================================================
[   38.376376] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00
[   38.383059] Read of size 1 at addr ffff00080394fc10 by task kunit_try_catch/306
[   38.390349] 
[   38.391834] CPU: 7 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   38.391886] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.391903] Hardware name: WinLink E850-96 board (DT)
[   38.391924] Call trace:
[   38.391936]  show_stack+0x20/0x38 (C)
[   38.391969]  dump_stack_lvl+0x8c/0xd0
[   38.392006]  print_report+0x118/0x608
[   38.392039]  kasan_report+0xdc/0x128
[   38.392067]  __asan_report_load1_noabort+0x20/0x30
[   38.392101]  kasan_strings+0x95c/0xb00
[   38.392136]  kunit_try_run_case+0x170/0x3f0
[   38.392171]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.392210]  kthread+0x328/0x630
[   38.392243]  ret_from_fork+0x10/0x20
[   38.392277] 
[   38.454237] Allocated by task 306:
[   38.457623]  kasan_save_stack+0x3c/0x68
[   38.461442]  kasan_save_track+0x20/0x40
[   38.465262]  kasan_save_alloc_info+0x40/0x58
[   38.469515]  __kasan_kmalloc+0xd4/0xd8
[   38.473249]  __kmalloc_cache_noprof+0x16c/0x3c0
[   38.477763]  kasan_strings+0xc8/0xb00
[   38.481407]  kunit_try_run_case+0x170/0x3f0
[   38.485574]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.491042]  kthread+0x328/0x630
[   38.494254]  ret_from_fork+0x10/0x20
[   38.497813] 
[   38.499289] Freed by task 306:
[   38.502328]  kasan_save_stack+0x3c/0x68
[   38.506146]  kasan_save_track+0x20/0x40
[   38.509966]  kasan_save_free_info+0x4c/0x78
[   38.514132]  __kasan_slab_free+0x6c/0x98
[   38.518038]  kfree+0x214/0x3c8
[   38.521077]  kasan_strings+0x24c/0xb00
[   38.524809]  kunit_try_run_case+0x170/0x3f0
[   38.528976]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.534444]  kthread+0x328/0x630
[   38.537656]  ret_from_fork+0x10/0x20
[   38.541215] 
[   38.542690] The buggy address belongs to the object at ffff00080394fc00
[   38.542690]  which belongs to the cache kmalloc-32 of size 32
[   38.555018] The buggy address is located 16 bytes inside of
[   38.555018]  freed 32-byte region [ffff00080394fc00, ffff00080394fc20)
[   38.567083] 
[   38.568562] The buggy address belongs to the physical page:
[   38.574116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88394f
[   38.582102] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   38.588612] page_type: f5(slab)
[   38.591745] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   38.599467] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   38.607186] page dumped because: kasan: bad access detected
[   38.612742] 
[   38.614217] Memory state around the buggy address:
[   38.618998]  ffff00080394fb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.626200]  ffff00080394fb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.633405] >ffff00080394fc00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.640606]                          ^
[   38.644342]  ffff00080394fc80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   38.651547]  ffff00080394fd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   38.658748] ==================================================================

[   19.017677] ==================================================================
[   19.018310] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80
[   19.019985] Read of size 1 at addr ffff888101e064d0 by task kunit_try_catch/280
[   19.021075] 
[   19.021433] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   19.021728] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.021775] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.021814] Call Trace:
[   19.021851]  <TASK>
[   19.021888]  dump_stack_lvl+0x73/0xb0
[   19.021959]  print_report+0xd1/0x650
[   19.022000]  ? __virt_addr_valid+0x1db/0x2d0
[   19.022041]  ? kasan_strings+0xcbc/0xe80
[   19.022075]  ? kasan_complete_mode_report_info+0x64/0x200
[   19.022111]  ? kasan_strings+0xcbc/0xe80
[   19.022210]  kasan_report+0x141/0x180
[   19.022272]  ? kasan_strings+0xcbc/0xe80
[   19.022331]  __asan_report_load1_noabort+0x18/0x20
[   19.022396]  kasan_strings+0xcbc/0xe80
[   19.022435]  ? trace_hardirqs_on+0x37/0xe0
[   19.022474]  ? __pfx_kasan_strings+0x10/0x10
[   19.022508]  ? finish_task_switch.isra.0+0x153/0x700
[   19.022545]  ? __switch_to+0x5d9/0xf60
[   19.022577]  ? dequeue_task_fair+0x166/0x4e0
[   19.022616]  ? __schedule+0x10cc/0x2b30
[   19.022652]  ? __pfx_read_tsc+0x10/0x10
[   19.022685]  ? ktime_get_ts64+0x86/0x230
[   19.022726]  kunit_try_run_case+0x1a5/0x480
[   19.022786]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.022822]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   19.022850]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   19.022874]  ? __kthread_parkme+0x82/0x180
[   19.022899]  ? preempt_count_sub+0x50/0x80
[   19.022924]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.022950]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.022975]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   19.023003]  kthread+0x337/0x6f0
[   19.023023]  ? trace_preempt_on+0x20/0xc0
[   19.023050]  ? __pfx_kthread+0x10/0x10
[   19.023070]  ? _raw_spin_unlock_irq+0x47/0x80
[   19.023094]  ? calculate_sigpending+0x7b/0xa0
[   19.023128]  ? __pfx_kthread+0x10/0x10
[   19.023175]  ret_from_fork+0x41/0x80
[   19.023201]  ? __pfx_kthread+0x10/0x10
[   19.023221]  ret_from_fork_asm+0x1a/0x30
[   19.023257]  </TASK>
[   19.023272] 
[   19.035920] Allocated by task 280:
[   19.036512]  kasan_save_stack+0x45/0x70
[   19.036967]  kasan_save_track+0x18/0x40
[   19.037413]  kasan_save_alloc_info+0x3b/0x50
[   19.037640]  __kasan_kmalloc+0xb7/0xc0
[   19.037854]  __kmalloc_cache_noprof+0x189/0x420
[   19.038318]  kasan_strings+0xc0/0xe80
[   19.038694]  kunit_try_run_case+0x1a5/0x480
[   19.039174]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.039605]  kthread+0x337/0x6f0
[   19.039939]  ret_from_fork+0x41/0x80
[   19.040310]  ret_from_fork_asm+0x1a/0x30
[   19.040534] 
[   19.040664] Freed by task 280:
[   19.040942]  kasan_save_stack+0x45/0x70
[   19.041391]  kasan_save_track+0x18/0x40
[   19.041861]  kasan_save_free_info+0x3f/0x60
[   19.042307]  __kasan_slab_free+0x56/0x70
[   19.042670]  kfree+0x222/0x3f0
[   19.042921]  kasan_strings+0x2aa/0xe80
[   19.043161]  kunit_try_run_case+0x1a5/0x480
[   19.043387]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.043902]  kthread+0x337/0x6f0
[   19.044350]  ret_from_fork+0x41/0x80
[   19.044788]  ret_from_fork_asm+0x1a/0x30
[   19.045183] 
[   19.045376] The buggy address belongs to the object at ffff888101e064c0
[   19.045376]  which belongs to the cache kmalloc-32 of size 32
[   19.046250] The buggy address is located 16 bytes inside of
[   19.046250]  freed 32-byte region [ffff888101e064c0, ffff888101e064e0)
[   19.046958] 
[   19.047132] The buggy address belongs to the physical page:
[   19.047516] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e06
[   19.048347] flags: 0x200000000000000(node=0|zone=2)
[   19.048807] page_type: f5(slab)
[   19.049146] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   19.049461] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   19.050099] page dumped because: kasan: bad access detected
[   19.050633] 
[   19.050855] Memory state around the buggy address:
[   19.051188]  ffff888101e06380: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc
[   19.051478]  ffff888101e06400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   19.052067] >ffff888101e06480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   19.052712]                                                  ^
[   19.053191]  ffff888101e06500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   19.053487]  ffff888101e06580: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   19.054078] ==================================================================