Hay
Date
June 26, 2025, 11:12 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   21.857317] ==================================================================
[   21.871702] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350
[   21.878037] Read of size 1 at addr ffff000806430000 by task kunit_try_catch/203
[   21.885327] 
[   21.886815] CPU: 4 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   21.886869] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.886887] Hardware name: WinLink E850-96 board (DT)
[   21.886907] Call trace:
[   21.886920]  show_stack+0x20/0x38 (C)
[   21.886955]  dump_stack_lvl+0x8c/0xd0
[   21.886993]  print_report+0x118/0x608
[   21.887026]  kasan_report+0xdc/0x128
[   21.887059]  __asan_report_load1_noabort+0x20/0x30
[   21.887098]  page_alloc_uaf+0x328/0x350
[   21.887126]  kunit_try_run_case+0x170/0x3f0
[   21.887166]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.887204]  kthread+0x328/0x630
[   21.887240]  ret_from_fork+0x10/0x20
[   21.887277] 
[   21.949305] The buggy address belongs to the physical page:
[   21.954862] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x886430
[   21.962845] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.969355] page_type: f0(buddy)
[   21.972581] raw: 0bfffe0000000000 ffff00087f61bbe0 ffff00087f61bbe0 0000000000000000
[   21.980297] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000
[   21.988019] page dumped because: kasan: bad access detected
[   21.993571] 
[   21.995049] Memory state around the buggy address:
[   21.999830]  ffff00080642ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.007031]  ffff00080642ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.014236] >ffff000806430000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.021436]                    ^
[   22.024651]  ffff000806430080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.031856]  ffff000806430100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.039058] ==================================================================

[   17.742000] ==================================================================
[   17.742061] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350
[   17.742116] Read of size 1 at addr fff00000c79d0000 by task kunit_try_catch/156
[   17.742308] 
[   17.742351] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   17.742550] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.742618] Hardware name: linux,dummy-virt (DT)
[   17.742651] Call trace:
[   17.742673]  show_stack+0x20/0x38 (C)
[   17.742727]  dump_stack_lvl+0x8c/0xd0
[   17.742774]  print_report+0x118/0x608
[   17.742818]  kasan_report+0xdc/0x128
[   17.742876]  __asan_report_load1_noabort+0x20/0x30
[   17.742926]  page_alloc_uaf+0x328/0x350
[   17.742969]  kunit_try_run_case+0x170/0x3f0
[   17.743032]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.743086]  kthread+0x328/0x630
[   17.743137]  ret_from_fork+0x10/0x20
[   17.743189] 
[   17.743208] The buggy address belongs to the physical page:
[   17.743238] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079d0
[   17.743289] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.743337] page_type: f0(buddy)
[   17.743377] raw: 0bfffe0000000000 fff00000ff616020 fff00000ff616020 0000000000000000
[   17.743427] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000
[   17.743468] page dumped because: kasan: bad access detected
[   17.743499] 
[   17.743516] Memory state around the buggy address:
[   17.743547]  fff00000c79cff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.743591]  fff00000c79cff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.743642] >fff00000c79d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.743681]                    ^
[   17.743708]  fff00000c79d0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.743751]  fff00000c79d0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.743793] ==================================================================

[   10.463870] ==================================================================
[   10.464897] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0
[   10.465712] Read of size 1 at addr ffff888103990000 by task kunit_try_catch/173
[   10.466518] 
[   10.466634] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   10.466683] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.466732] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.466755] Call Trace:
[   10.466769]  <TASK>
[   10.466963]  dump_stack_lvl+0x73/0xb0
[   10.467003]  print_report+0xd1/0x650
[   10.467027]  ? __virt_addr_valid+0x1db/0x2d0
[   10.467049]  ? page_alloc_uaf+0x356/0x3d0
[   10.467067]  ? kasan_addr_to_slab+0x11/0xa0
[   10.467088]  ? page_alloc_uaf+0x356/0x3d0
[   10.467105]  kasan_report+0x141/0x180
[   10.467127]  ? page_alloc_uaf+0x356/0x3d0
[   10.467150]  __asan_report_load1_noabort+0x18/0x20
[   10.467169]  page_alloc_uaf+0x356/0x3d0
[   10.467187]  ? __pfx_page_alloc_uaf+0x10/0x10
[   10.467206]  ? __schedule+0x10cc/0x2b60
[   10.467228]  ? __pfx_read_tsc+0x10/0x10
[   10.467248]  ? ktime_get_ts64+0x86/0x230
[   10.467274]  kunit_try_run_case+0x1a5/0x480
[   10.467299]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.467321]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.467344]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.467366]  ? __kthread_parkme+0x82/0x180
[   10.467387]  ? preempt_count_sub+0x50/0x80
[   10.467412]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.467435]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.467457]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.467481]  kthread+0x337/0x6f0
[   10.467498]  ? trace_preempt_on+0x20/0xc0
[   10.467521]  ? __pfx_kthread+0x10/0x10
[   10.467539]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.467568]  ? calculate_sigpending+0x7b/0xa0
[   10.467589]  ? __pfx_kthread+0x10/0x10
[   10.467607]  ret_from_fork+0x41/0x80
[   10.467627]  ? __pfx_kthread+0x10/0x10
[   10.467644]  ret_from_fork_asm+0x1a/0x30
[   10.467674]  </TASK>
[   10.467685] 
[   10.482359] The buggy address belongs to the physical page:
[   10.482563] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103990
[   10.482814] flags: 0x200000000000000(node=0|zone=2)
[   10.483708] page_type: f0(buddy)
[   10.483881] raw: 0200000000000000 ffff88817fffb3e0 ffff88817fffb3e0 0000000000000000
[   10.484391] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000
[   10.484886] page dumped because: kasan: bad access detected
[   10.485226] 
[   10.485500] Memory state around the buggy address:
[   10.485779]  ffff88810398ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   10.486247]  ffff88810398ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   10.486690] >ffff888103990000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   10.487182]                    ^
[   10.487456]  ffff888103990080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   10.488046]  ffff888103990100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   10.488443] ==================================================================