Hay
Date
July 13, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.685350] ==================================================================
[   15.685406] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350
[   15.685459] Read of size 1 at addr fff00000c7900000 by task kunit_try_catch/155
[   15.686374] 
[   15.686436] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.686521] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.686546] Hardware name: linux,dummy-virt (DT)
[   15.686576] Call trace:
[   15.686611]  show_stack+0x20/0x38 (C)
[   15.688010]  dump_stack_lvl+0x8c/0xd0
[   15.688173]  print_report+0x118/0x5d0
[   15.688274]  kasan_report+0xdc/0x128
[   15.688402]  __asan_report_load1_noabort+0x20/0x30
[   15.688474]  page_alloc_uaf+0x328/0x350
[   15.688525]  kunit_try_run_case+0x170/0x3f0
[   15.688574]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.688625]  kthread+0x328/0x630
[   15.688666]  ret_from_fork+0x10/0x20
[   15.688974] 
[   15.689096] The buggy address belongs to the physical page:
[   15.689135] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107900
[   15.689285] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.689375] page_type: f0(buddy)
[   15.689442] raw: 0bfffe0000000000 fff00000ff616240 fff00000ff616240 0000000000000000
[   15.689552] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000
[   15.689835] page dumped because: kasan: bad access detected
[   15.689902] 
[   15.689992] Memory state around the buggy address:
[   15.690039]  fff00000c78fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.690093]  fff00000c78fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.690164] >fff00000c7900000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.690218]                    ^
[   15.690245]  fff00000c7900080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.690636]  fff00000c7900100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.690737] ==================================================================

[   16.539254] ==================================================================
[   16.539339] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350
[   16.539436] Read of size 1 at addr fff00000c7860000 by task kunit_try_catch/155
[   16.539511] 
[   16.539592] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   16.539724] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.539767] Hardware name: linux,dummy-virt (DT)
[   16.539798] Call trace:
[   16.539841]  show_stack+0x20/0x38 (C)
[   16.539909]  dump_stack_lvl+0x8c/0xd0
[   16.539955]  print_report+0x118/0x5d0
[   16.540000]  kasan_report+0xdc/0x128
[   16.540044]  __asan_report_load1_noabort+0x20/0x30
[   16.540241]  page_alloc_uaf+0x328/0x350
[   16.540290]  kunit_try_run_case+0x170/0x3f0
[   16.540395]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.540489]  kthread+0x328/0x630
[   16.540675]  ret_from_fork+0x10/0x20
[   16.540831] 
[   16.540985] The buggy address belongs to the physical page:
[   16.541084] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107860
[   16.541283] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.541339] page_type: f0(buddy)
[   16.541424] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000
[   16.541474] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000
[   16.541513] page dumped because: kasan: bad access detected
[   16.541543] 
[   16.541559] Memory state around the buggy address:
[   16.541590]  fff00000c785ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.541767]  fff00000c785ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.541834] >fff00000c7860000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   16.541921]                    ^
[   16.541949]  fff00000c7860080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   16.542054]  fff00000c7860100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   16.542226] ==================================================================

[   12.104254] ==================================================================
[   12.105042] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0
[   12.105756] Read of size 1 at addr ffff888103ac0000 by task kunit_try_catch/171
[   12.106266] 
[   12.106367] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.106643] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.106658] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.106679] Call Trace:
[   12.106692]  <TASK>
[   12.106706]  dump_stack_lvl+0x73/0xb0
[   12.106738]  print_report+0xd1/0x610
[   12.106761]  ? __virt_addr_valid+0x1db/0x2d0
[   12.106785]  ? page_alloc_uaf+0x356/0x3d0
[   12.106807]  ? kasan_addr_to_slab+0x11/0xa0
[   12.106827]  ? page_alloc_uaf+0x356/0x3d0
[   12.106850]  kasan_report+0x141/0x180
[   12.106872]  ? page_alloc_uaf+0x356/0x3d0
[   12.106898]  __asan_report_load1_noabort+0x18/0x20
[   12.106923]  page_alloc_uaf+0x356/0x3d0
[   12.106945]  ? __pfx_page_alloc_uaf+0x10/0x10
[   12.106968]  ? __schedule+0x10cc/0x2b60
[   12.106990]  ? __pfx_read_tsc+0x10/0x10
[   12.107012]  ? ktime_get_ts64+0x86/0x230
[   12.107038]  kunit_try_run_case+0x1a5/0x480
[   12.107064]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.107087]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.107112]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.107135]  ? __kthread_parkme+0x82/0x180
[   12.107157]  ? preempt_count_sub+0x50/0x80
[   12.107182]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.107206]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.107231]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.107257]  kthread+0x337/0x6f0
[   12.107277]  ? trace_preempt_on+0x20/0xc0
[   12.107301]  ? __pfx_kthread+0x10/0x10
[   12.107322]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.107343]  ? calculate_sigpending+0x7b/0xa0
[   12.107368]  ? __pfx_kthread+0x10/0x10
[   12.107389]  ret_from_fork+0x116/0x1d0
[   12.107410]  ? __pfx_kthread+0x10/0x10
[   12.107430]  ret_from_fork_asm+0x1a/0x30
[   12.107475]  </TASK>
[   12.107485] 
[   12.117946] The buggy address belongs to the physical page:
[   12.118331] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ac0
[   12.118829] flags: 0x200000000000000(node=0|zone=2)
[   12.119148] page_type: f0(buddy)
[   12.119285] raw: 0200000000000000 ffff88817fffb4f0 ffff88817fffb4f0 0000000000000000
[   12.120024] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000
[   12.120366] page dumped because: kasan: bad access detected
[   12.120900] 
[   12.120997] Memory state around the buggy address:
[   12.121331]  ffff888103abff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.121741]  ffff888103abff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.122114] >ffff888103ac0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.122530]                    ^
[   12.122734]  ffff888103ac0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.123077]  ffff888103ac0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.123379] ==================================================================

[   12.362845] ==================================================================
[   12.363622] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0
[   12.364189] Read of size 1 at addr ffff888103b40000 by task kunit_try_catch/172
[   12.364435] 
[   12.364532] CPU: 0 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.364575] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.364587] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.364607] Call Trace:
[   12.364618]  <TASK>
[   12.364641]  dump_stack_lvl+0x73/0xb0
[   12.364670]  print_report+0xd1/0x610
[   12.364693]  ? __virt_addr_valid+0x1db/0x2d0
[   12.364717]  ? page_alloc_uaf+0x356/0x3d0
[   12.364738]  ? kasan_addr_to_slab+0x11/0xa0
[   12.364758]  ? page_alloc_uaf+0x356/0x3d0
[   12.364780]  kasan_report+0x141/0x180
[   12.364802]  ? page_alloc_uaf+0x356/0x3d0
[   12.364828]  __asan_report_load1_noabort+0x18/0x20
[   12.364853]  page_alloc_uaf+0x356/0x3d0
[   12.364875]  ? __pfx_page_alloc_uaf+0x10/0x10
[   12.364899]  ? __schedule+0x10cc/0x2b60
[   12.364921]  ? __pfx_read_tsc+0x10/0x10
[   12.364943]  ? ktime_get_ts64+0x86/0x230
[   12.364967]  kunit_try_run_case+0x1a5/0x480
[   12.364992]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.365015]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.365039]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.365073]  ? __kthread_parkme+0x82/0x180
[   12.365093]  ? preempt_count_sub+0x50/0x80
[   12.365117]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.365142]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.365166]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.365192]  kthread+0x337/0x6f0
[   12.365211]  ? trace_preempt_on+0x20/0xc0
[   12.365238]  ? __pfx_kthread+0x10/0x10
[   12.365259]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.365282]  ? calculate_sigpending+0x7b/0xa0
[   12.365306]  ? __pfx_kthread+0x10/0x10
[   12.365327]  ret_from_fork+0x116/0x1d0
[   12.365347]  ? __pfx_kthread+0x10/0x10
[   12.365367]  ret_from_fork_asm+0x1a/0x30
[   12.365398]  </TASK>
[   12.365408] 
[   12.375964] The buggy address belongs to the physical page:
[   12.376505] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b40
[   12.377000] flags: 0x200000000000000(node=0|zone=2)
[   12.377464] page_type: f0(buddy)
[   12.377652] raw: 0200000000000000 ffff88817fffd4f0 ffff88817fffd4f0 0000000000000000
[   12.378233] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000
[   12.378520] page dumped because: kasan: bad access detected
[   12.378775] 
[   12.378860] Memory state around the buggy address:
[   12.379086]  ffff888103b3ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.379395]  ffff888103b3ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.379698] >ffff888103b40000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.379992]                    ^
[   12.380651]  ffff888103b40080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.380991]  ffff888103b40100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.381570] ==================================================================