Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.474452] ================================================================== [ 16.474508] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 16.474564] Read of size 1 at addr fff00000c7750000 by task kunit_try_catch/154 [ 16.474613] [ 16.474650] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.474731] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.474756] Hardware name: linux,dummy-virt (DT) [ 16.474787] Call trace: [ 16.474809] show_stack+0x20/0x38 (C) [ 16.474858] dump_stack_lvl+0x8c/0xd0 [ 16.474907] print_report+0x118/0x608 [ 16.474987] kasan_report+0xdc/0x128 [ 16.475036] __asan_report_load1_noabort+0x20/0x30 [ 16.475086] page_alloc_uaf+0x328/0x350 [ 16.475621] kunit_try_run_case+0x170/0x3f0 [ 16.476467] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.477339] kthread+0x328/0x630 [ 16.477663] ret_from_fork+0x10/0x20 [ 16.478071] [ 16.478157] The buggy address belongs to the physical page: [ 16.478568] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107750 [ 16.478690] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.479077] page_type: f0(buddy) [ 16.479135] raw: 0bfffe0000000000 fff00000ff6160a0 fff00000ff6160a0 0000000000000000 [ 16.479612] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 16.479949] page dumped because: kasan: bad access detected [ 16.480082] [ 16.480201] Memory state around the buggy address: [ 16.480238] fff00000c774ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.480300] fff00000c774ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.480350] >fff00000c7750000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.480635] ^ [ 16.480740] fff00000c7750080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.480866] fff00000c7750100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.480906] ==================================================================
[ 12.151532] ================================================================== [ 12.152545] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.152869] Read of size 1 at addr ffff888103950000 by task kunit_try_catch/171 [ 12.153333] [ 12.153622] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.153689] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.153712] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.153732] Call Trace: [ 12.153743] <TASK> [ 12.153757] dump_stack_lvl+0x73/0xb0 [ 12.153786] print_report+0xd1/0x650 [ 12.153807] ? __virt_addr_valid+0x1db/0x2d0 [ 12.153829] ? page_alloc_uaf+0x356/0x3d0 [ 12.153871] ? kasan_addr_to_slab+0x11/0xa0 [ 12.153891] ? page_alloc_uaf+0x356/0x3d0 [ 12.153912] kasan_report+0x141/0x180 [ 12.153933] ? page_alloc_uaf+0x356/0x3d0 [ 12.153959] __asan_report_load1_noabort+0x18/0x20 [ 12.153983] page_alloc_uaf+0x356/0x3d0 [ 12.154004] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.154084] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.154113] ? trace_hardirqs_on+0x37/0xe0 [ 12.154136] ? __pfx_read_tsc+0x10/0x10 [ 12.154156] ? ktime_get_ts64+0x86/0x230 [ 12.154179] kunit_try_run_case+0x1a5/0x480 [ 12.154203] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.154227] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.154251] ? __kthread_parkme+0x82/0x180 [ 12.154271] ? preempt_count_sub+0x50/0x80 [ 12.154294] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.154318] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.154342] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.154366] kthread+0x337/0x6f0 [ 12.154385] ? trace_preempt_on+0x20/0xc0 [ 12.154406] ? __pfx_kthread+0x10/0x10 [ 12.154426] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.154447] ? calculate_sigpending+0x7b/0xa0 [ 12.154470] ? __pfx_kthread+0x10/0x10 [ 12.154490] ret_from_fork+0x116/0x1d0 [ 12.154508] ? __pfx_kthread+0x10/0x10 [ 12.154528] ret_from_fork_asm+0x1a/0x30 [ 12.154558] </TASK> [ 12.154567] [ 12.161890] The buggy address belongs to the physical page: [ 12.162173] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103950 [ 12.162697] flags: 0x200000000000000(node=0|zone=2) [ 12.162878] page_type: f0(buddy) [ 12.163311] raw: 0200000000000000 ffff88817fffb460 ffff88817fffb460 0000000000000000 [ 12.163590] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 12.163868] page dumped because: kasan: bad access detected [ 12.164144] [ 12.164239] Memory state around the buggy address: [ 12.164617] ffff88810394ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.165046] ffff88810394ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.165253] >ffff888103950000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.165755] ^ [ 12.165906] ffff888103950080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.166653] ffff888103950100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.167305] ==================================================================