Hay
Date
May 30, 2025, 4:14 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64
x15

[   26.863447] ==================================================================
[   26.872561] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x3bc/0x438
[   26.879327] Read of size 16 at addr ffff00080444cbe0 by task kunit_try_catch/212
[   26.886705] 
[   26.888191] CPU: 4 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   26.888245] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.888261] Hardware name: WinLink E850-96 board (DT)
[   26.888281] Call trace:
[   26.888293]  show_stack+0x20/0x38 (C)
[   26.888328]  dump_stack_lvl+0x8c/0xd0
[   26.888363]  print_report+0x118/0x608
[   26.888400]  kasan_report+0xdc/0x128
[   26.888429]  __asan_report_load16_noabort+0x20/0x30
[   26.888460]  kmalloc_uaf_16+0x3bc/0x438
[   26.888486]  kunit_try_run_case+0x170/0x3f0
[   26.888520]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.888561]  kthread+0x328/0x630
[   26.888589]  ret_from_fork+0x10/0x20
[   26.888624] 
[   26.951634] Allocated by task 212:
[   26.955024]  kasan_save_stack+0x3c/0x68
[   26.958839]  kasan_save_track+0x20/0x40
[   26.962659]  kasan_save_alloc_info+0x40/0x58
[   26.966912]  __kasan_kmalloc+0xd4/0xd8
[   26.970645]  __kmalloc_cache_noprof+0x15c/0x3c0
[   26.975159]  kmalloc_uaf_16+0x140/0x438
[   26.978978]  kunit_try_run_case+0x170/0x3f0
[   26.983145]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.988613]  kthread+0x328/0x630
[   26.991825]  ret_from_fork+0x10/0x20
[   26.995384] 
[   26.996859] Freed by task 212:
[   26.999899]  kasan_save_stack+0x3c/0x68
[   27.003717]  kasan_save_track+0x20/0x40
[   27.007537]  kasan_save_free_info+0x4c/0x78
[   27.011704]  __kasan_slab_free+0x6c/0x98
[   27.015609]  kfree+0x214/0x3c8
[   27.018648]  kmalloc_uaf_16+0x190/0x438
[   27.022467]  kunit_try_run_case+0x170/0x3f0
[   27.026633]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.032102]  kthread+0x328/0x630
[   27.035314]  ret_from_fork+0x10/0x20
[   27.038873] 
[   27.040352] The buggy address belongs to the object at ffff00080444cbe0
[   27.040352]  which belongs to the cache kmalloc-16 of size 16
[   27.052677] The buggy address is located 0 bytes inside of
[   27.052677]  freed 16-byte region [ffff00080444cbe0, ffff00080444cbf0)
[   27.064653] 
[   27.066132] The buggy address belongs to the physical page:
[   27.071690] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88444c
[   27.079674] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   27.086181] page_type: f5(slab)
[   27.089319] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   27.097038] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   27.104758] page dumped because: kasan: bad access detected
[   27.110314] 
[   27.111788] Memory state around the buggy address:
[   27.116571]  ffff00080444ca80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   27.123771]  ffff00080444cb00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   27.130976] >ffff00080444cb80: fa fb fc fc 00 04 fc fc 00 00 fc fc fa fb fc fc
[   27.138177]                                                        ^
[   27.144519]  ffff00080444cc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.151722]  ffff00080444cc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.158925] ==================================================================

[   24.720416] ==================================================================
[   24.720539] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x3bc/0x438
[   24.720711] Read of size 16 at addr fff00000c5ed4d00 by task kunit_try_catch/169
[   24.720868] 
[   24.720977] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   24.721326] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.721433] Hardware name: linux,dummy-virt (DT)
[   24.721509] Call trace:
[   24.721565]  show_stack+0x20/0x38 (C)
[   24.721708]  dump_stack_lvl+0x8c/0xd0
[   24.721845]  print_report+0x118/0x608
[   24.722184]  kasan_report+0xdc/0x128
[   24.722304]  __asan_report_load16_noabort+0x20/0x30
[   24.722423]  kmalloc_uaf_16+0x3bc/0x438
[   24.722539]  kunit_try_run_case+0x170/0x3f0
[   24.722747]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.722988]  kthread+0x328/0x630
[   24.723206]  ret_from_fork+0x10/0x20
[   24.723342] 
[   24.723414] Allocated by task 169:
[   24.723488]  kasan_save_stack+0x3c/0x68
[   24.723595]  kasan_save_track+0x20/0x40
[   24.723822]  kasan_save_alloc_info+0x40/0x58
[   24.723922]  __kasan_kmalloc+0xd4/0xd8
[   24.724055]  __kmalloc_cache_noprof+0x15c/0x3c0
[   24.724270]  kmalloc_uaf_16+0x140/0x438
[   24.724420]  kunit_try_run_case+0x170/0x3f0
[   24.724527]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.724805]  kthread+0x328/0x630
[   24.724958]  ret_from_fork+0x10/0x20
[   24.725058] 
[   24.725192] Freed by task 169:
[   24.725385]  kasan_save_stack+0x3c/0x68
[   24.725631]  kasan_save_track+0x20/0x40
[   24.725751]  kasan_save_free_info+0x4c/0x78
[   24.725857]  __kasan_slab_free+0x6c/0x98
[   24.725966]  kfree+0x214/0x3c8
[   24.726066]  kmalloc_uaf_16+0x190/0x438
[   24.726276]  kunit_try_run_case+0x170/0x3f0
[   24.726389]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.726511]  kthread+0x328/0x630
[   24.726730]  ret_from_fork+0x10/0x20
[   24.726848] 
[   24.727235] The buggy address belongs to the object at fff00000c5ed4d00
[   24.727235]  which belongs to the cache kmalloc-16 of size 16
[   24.727373] The buggy address is located 0 bytes inside of
[   24.727373]  freed 16-byte region [fff00000c5ed4d00, fff00000c5ed4d10)
[   24.727760] 
[   24.727976] The buggy address belongs to the physical page:
[   24.728142] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ed4
[   24.728294] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.728415] page_type: f5(slab)
[   24.728507] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   24.728622] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.728735] page dumped because: kasan: bad access detected
[   24.730463] 
[   24.730621] Memory state around the buggy address:
[   24.730766]  fff00000c5ed4c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   24.731021]  fff00000c5ed4c80: fa fb fc fc fa fb fc fc fa fb fc fc 00 00 fc fc
[   24.733212] >fff00000c5ed4d00: fa fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.733329]                    ^
[   24.733403]  fff00000c5ed4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.733507]  fff00000c5ed4e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.733593] ==================================================================

[   18.086082] ==================================================================
[   18.087513] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x47b/0x4c0
[   18.088883] Read of size 16 at addr ffff888102b0a0a0 by task kunit_try_catch/185
[   18.089395] 
[   18.089516] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT(voluntary) 
[   18.089583] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.089599] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.089629] Call Trace:
[   18.089647]  <TASK>
[   18.089672]  dump_stack_lvl+0x73/0xb0
[   18.089711]  print_report+0xd1/0x650
[   18.089744]  ? __virt_addr_valid+0x1db/0x2d0
[   18.089809]  ? kmalloc_uaf_16+0x47b/0x4c0
[   18.089841]  ? kasan_complete_mode_report_info+0x64/0x200
[   18.089872]  ? kmalloc_uaf_16+0x47b/0x4c0
[   18.089902]  kasan_report+0x141/0x180
[   18.089935]  ? kmalloc_uaf_16+0x47b/0x4c0
[   18.089970]  __asan_report_load16_noabort+0x18/0x20
[   18.089999]  kmalloc_uaf_16+0x47b/0x4c0
[   18.090056]  ? __pfx_kmalloc_uaf_16+0x10/0x10
[   18.090133]  ? __schedule+0x10cc/0x2b60
[   18.090216]  ? __pfx_read_tsc+0x10/0x10
[   18.090298]  ? ktime_get_ts64+0x86/0x230
[   18.090386]  kunit_try_run_case+0x1a5/0x480
[   18.090469]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.090542]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.090583]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.090618]  ? __kthread_parkme+0x82/0x180
[   18.090647]  ? preempt_count_sub+0x50/0x80
[   18.090679]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.090708]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.090746]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.090808]  kthread+0x337/0x6f0
[   18.090837]  ? trace_preempt_on+0x20/0xc0
[   18.090871]  ? __pfx_kthread+0x10/0x10
[   18.090899]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.090931]  ? calculate_sigpending+0x7b/0xa0
[   18.090965]  ? __pfx_kthread+0x10/0x10
[   18.090994]  ret_from_fork+0x116/0x1d0
[   18.091018]  ? __pfx_kthread+0x10/0x10
[   18.091121]  ret_from_fork_asm+0x1a/0x30
[   18.091218]  </TASK>
[   18.091294] 
[   18.110796] Allocated by task 185:
[   18.111477]  kasan_save_stack+0x45/0x70
[   18.111899]  kasan_save_track+0x18/0x40
[   18.112856]  kasan_save_alloc_info+0x3b/0x50
[   18.115336]  __kasan_kmalloc+0xb7/0xc0
[   18.115775]  __kmalloc_cache_noprof+0x189/0x420
[   18.116389]  kmalloc_uaf_16+0x15b/0x4c0
[   18.116847]  kunit_try_run_case+0x1a5/0x480
[   18.118884]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.119877]  kthread+0x337/0x6f0
[   18.120511]  ret_from_fork+0x116/0x1d0
[   18.121076]  ret_from_fork_asm+0x1a/0x30
[   18.121733] 
[   18.122584] Freed by task 185:
[   18.122929]  kasan_save_stack+0x45/0x70
[   18.123542]  kasan_save_track+0x18/0x40
[   18.123834]  kasan_save_free_info+0x3f/0x60
[   18.124316]  __kasan_slab_free+0x56/0x70
[   18.124820]  kfree+0x222/0x3f0
[   18.125288]  kmalloc_uaf_16+0x1d6/0x4c0
[   18.125686]  kunit_try_run_case+0x1a5/0x480
[   18.126296]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.126733]  kthread+0x337/0x6f0
[   18.127699]  ret_from_fork+0x116/0x1d0
[   18.128013]  ret_from_fork_asm+0x1a/0x30
[   18.128591] 
[   18.129297] The buggy address belongs to the object at ffff888102b0a0a0
[   18.129297]  which belongs to the cache kmalloc-16 of size 16
[   18.130537] The buggy address is located 0 bytes inside of
[   18.130537]  freed 16-byte region [ffff888102b0a0a0, ffff888102b0a0b0)
[   18.132321] 
[   18.133017] The buggy address belongs to the physical page:
[   18.133895] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b0a
[   18.134485] flags: 0x200000000000000(node=0|zone=2)
[   18.134944] page_type: f5(slab)
[   18.135238] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   18.135788] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   18.137392] page dumped because: kasan: bad access detected
[   18.137887] 
[   18.138299] Memory state around the buggy address:
[   18.138693]  ffff888102b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.139598]  ffff888102b0a000: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc
[   18.140340] >ffff888102b0a080: 00 00 fc fc fa fb fc fc fc fc fc fc fc fc fc fc
[   18.141257]                                ^
[   18.141663]  ffff888102b0a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.142530]  ffff888102b0a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.143376] ==================================================================

[   53.475921] ==================================================================
[   53.486785] BUG: KASAN: slab-use-after-free in kmalloc_uaf_16+0x484/0x518
[   53.493621] Read of size 16 at addr cc796900 by task kunit_try_catch/220
[   53.500366] 
[   53.501892] CPU: 0 UID: 0 PID: 220 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-next-20250530 #1 NONE 
[   53.501922] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   53.501922] Hardware name: Generic DRA74X (Flattened Device Tree)
[   53.501922] Call trace: 
[   53.501922]  unwind_backtrace from show_stack+0x18/0x1c
[   53.501953]  show_stack from dump_stack_lvl+0x70/0x90
[   53.501983]  dump_stack_lvl from print_report+0x158/0x528
[   53.502014]  print_report from kasan_report+0xdc/0x118
[   53.502044]  kasan_report from kmalloc_uaf_16+0x484/0x518
[   53.502044]  kmalloc_uaf_16 from kunit_try_run_case+0x22c/0x5a8
[   53.502075]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   53.502105]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   53.502136]  kthread from ret_from_fork+0x14/0x20
[   53.502136] Exception stack(0xf2263fb0 to 0xf2263ff8)
[   53.502166] 3fa0:                                     00000000 00000000 00000000 00000000
[   53.502166] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   53.502197] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   53.502197] 
[   53.607421] Allocated by task 220:
[   53.610839]  kasan_save_track+0x30/0x5c
[   53.614715]  __kasan_kmalloc+0x8c/0x94
[   53.618499]  kmalloc_uaf_16+0x1b0/0x518
[   53.622344]  kunit_try_run_case+0x22c/0x5a8
[   53.626586]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   53.632110]  kthread+0x464/0x810
[   53.635345]  ret_from_fork+0x14/0x20
[   53.638977] 
[   53.640472] Freed by task 220:
[   53.643524]  kasan_save_track+0x30/0x5c
[   53.647399]  kasan_save_free_info+0x3c/0x48
[   53.651611]  __kasan_slab_free+0x40/0x50
[   53.655578]  kfree+0xe8/0x384
[   53.658569]  kmalloc_uaf_16+0x234/0x518
[   53.662445]  kunit_try_run_case+0x22c/0x5a8
[   53.666656]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   53.672180]  kthread+0x464/0x810
[   53.675445]  ret_from_fork+0x14/0x20
[   53.679046] 
[   53.680541] The buggy address belongs to the object at cc796900
[   53.680541]  which belongs to the cache kmalloc-64 of size 64
[   53.692260] The buggy address is located 0 bytes inside of
[   53.692260]  freed 64-byte region [cc796900, cc796940)
[   53.702941] 
[   53.704437] The buggy address belongs to the physical page:
[   53.710052] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c796
[   53.717315] flags: 0x0(zone=0)
[   53.720397] page_type: f5(slab)
[   53.723571] raw: 00000000 c7001300 00000122 00000000 00000000 80200020 f5000000 00000000
[   53.731689] raw: 00000000
[   53.734344] page dumped because: kasan: bad access detected
[   53.739959] 
[   53.741455] Memory state around the buggy address:
[   53.746276]  cc796800: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.752838]  cc796880: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.759429] >cc796900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   53.765991]            ^
[   53.768524]  cc796980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.775115]  cc796a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   53.781677] ==================================================================