Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.850281] ================================================================== [ 17.850339] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 17.850394] Read of size 1 at addr fff00000c7770000 by task kunit_try_catch/154 [ 17.850442] [ 17.850473] CPU: 0 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.850573] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.850609] Hardware name: linux,dummy-virt (DT) [ 17.850641] Call trace: [ 17.850671] show_stack+0x20/0x38 (C) [ 17.850720] dump_stack_lvl+0x8c/0xd0 [ 17.850769] print_report+0x118/0x608 [ 17.850864] kasan_report+0xdc/0x128 [ 17.851049] __asan_report_load1_noabort+0x20/0x30 [ 17.851566] page_alloc_uaf+0x328/0x350 [ 17.851924] kunit_try_run_case+0x170/0x3f0 [ 17.851977] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.852246] kthread+0x328/0x630 [ 17.852488] ret_from_fork+0x10/0x20 [ 17.852698] [ 17.852777] The buggy address belongs to the physical page: [ 17.852874] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107770 [ 17.852927] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.853581] page_type: f0(buddy) [ 17.853638] raw: 0bfffe0000000000 fff00000ff6160a0 fff00000ff6160a0 0000000000000000 [ 17.854164] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 17.854399] page dumped because: kasan: bad access detected [ 17.854534] [ 17.854573] Memory state around the buggy address: [ 17.855088] fff00000c776ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.855544] fff00000c776ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.855649] >fff00000c7770000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.855705] ^ [ 17.855733] fff00000c7770080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.855773] fff00000c7770100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.856165] ==================================================================
[ 11.425002] ================================================================== [ 11.426032] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 11.426574] Read of size 1 at addr ffff8881039c0000 by task kunit_try_catch/171 [ 11.427064] [ 11.427188] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.427254] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.427436] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.427461] Call Trace: [ 11.427479] <TASK> [ 11.427500] dump_stack_lvl+0x73/0xb0 [ 11.427536] print_report+0xd1/0x650 [ 11.427559] ? __virt_addr_valid+0x1db/0x2d0 [ 11.427581] ? page_alloc_uaf+0x356/0x3d0 [ 11.427603] ? kasan_addr_to_slab+0x11/0xa0 [ 11.427622] ? page_alloc_uaf+0x356/0x3d0 [ 11.427642] kasan_report+0x141/0x180 [ 11.427663] ? page_alloc_uaf+0x356/0x3d0 [ 11.427689] __asan_report_load1_noabort+0x18/0x20 [ 11.427712] page_alloc_uaf+0x356/0x3d0 [ 11.427733] ? __pfx_page_alloc_uaf+0x10/0x10 [ 11.427754] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 11.427777] ? trace_hardirqs_on+0x37/0xe0 [ 11.427799] ? __pfx_read_tsc+0x10/0x10 [ 11.427819] ? ktime_get_ts64+0x86/0x230 [ 11.427842] kunit_try_run_case+0x1a5/0x480 [ 11.427866] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.427889] ? queued_spin_lock_slowpath+0x116/0xb40 [ 11.427912] ? __kthread_parkme+0x82/0x180 [ 11.427931] ? preempt_count_sub+0x50/0x80 [ 11.427953] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.427975] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.427996] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.428017] kthread+0x337/0x6f0 [ 11.428035] ? trace_preempt_on+0x20/0xc0 [ 11.428055] ? __pfx_kthread+0x10/0x10 [ 11.428074] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.428093] ? calculate_sigpending+0x7b/0xa0 [ 11.428115] ? __pfx_kthread+0x10/0x10 [ 11.428135] ret_from_fork+0x116/0x1d0 [ 11.428152] ? __pfx_kthread+0x10/0x10 [ 11.428171] ret_from_fork_asm+0x1a/0x30 [ 11.428200] </TASK> [ 11.428211] [ 11.438704] The buggy address belongs to the physical page: [ 11.439087] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c0 [ 11.439662] flags: 0x200000000000000(node=0|zone=2) [ 11.439889] page_type: f0(buddy) [ 11.440037] raw: 0200000000000000 ffff88817fffb4f0 ffff88817fffb4f0 0000000000000000 [ 11.440699] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 11.441015] page dumped because: kasan: bad access detected [ 11.441319] [ 11.441593] Memory state around the buggy address: [ 11.441813] ffff8881039bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.442109] ffff8881039bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.443019] >ffff8881039c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.443329] ^ [ 11.443611] ffff8881039c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.443917] ffff8881039c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.444204] ==================================================================