Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.086736] ================================================================== [ 19.086808] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 19.087110] Read of size 1 at addr fff00000c7840000 by task kunit_try_catch/154 [ 19.087277] [ 19.087314] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.087400] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.087426] Hardware name: linux,dummy-virt (DT) [ 19.087806] Call trace: [ 19.087891] show_stack+0x20/0x38 (C) [ 19.087949] dump_stack_lvl+0x8c/0xd0 [ 19.087993] print_report+0x118/0x608 [ 19.088037] kasan_report+0xdc/0x128 [ 19.088081] __asan_report_load1_noabort+0x20/0x30 [ 19.088134] page_alloc_uaf+0x328/0x350 [ 19.088507] kunit_try_run_case+0x170/0x3f0 [ 19.088638] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.088972] kthread+0x328/0x630 [ 19.089060] ret_from_fork+0x10/0x20 [ 19.089263] [ 19.089674] The buggy address belongs to the physical page: [ 19.089772] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107840 [ 19.089942] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.089998] page_type: f0(buddy) [ 19.090286] raw: 0bfffe0000000000 fff00000ff616170 fff00000ff616170 0000000000000000 [ 19.090393] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 19.090475] page dumped because: kasan: bad access detected [ 19.090596] [ 19.090614] Memory state around the buggy address: [ 19.090653] fff00000c783ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.091096] fff00000c783ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.091162] >fff00000c7840000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.091202] ^ [ 19.091229] fff00000c7840080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.091566] fff00000c7840100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.091627] ==================================================================
[ 12.392833] ================================================================== [ 12.394920] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.395624] Read of size 1 at addr ffff888103a00000 by task kunit_try_catch/171 [ 12.396238] [ 12.396657] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.396706] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.396718] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.396739] Call Trace: [ 12.396753] <TASK> [ 12.396770] dump_stack_lvl+0x73/0xb0 [ 12.396803] print_report+0xd1/0x650 [ 12.396826] ? __virt_addr_valid+0x1db/0x2d0 [ 12.396849] ? page_alloc_uaf+0x356/0x3d0 [ 12.396870] ? kasan_addr_to_slab+0x11/0xa0 [ 12.396889] ? page_alloc_uaf+0x356/0x3d0 [ 12.396910] kasan_report+0x141/0x180 [ 12.396931] ? page_alloc_uaf+0x356/0x3d0 [ 12.396957] __asan_report_load1_noabort+0x18/0x20 [ 12.396979] page_alloc_uaf+0x356/0x3d0 [ 12.397000] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.397022] ? __schedule+0x10cc/0x2b60 [ 12.397058] ? __pfx_read_tsc+0x10/0x10 [ 12.397080] ? ktime_get_ts64+0x86/0x230 [ 12.397104] kunit_try_run_case+0x1a5/0x480 [ 12.397128] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.397149] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.397172] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.397194] ? __kthread_parkme+0x82/0x180 [ 12.397214] ? preempt_count_sub+0x50/0x80 [ 12.397237] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.397260] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.397282] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.397303] kthread+0x337/0x6f0 [ 12.397322] ? trace_preempt_on+0x20/0xc0 [ 12.397344] ? __pfx_kthread+0x10/0x10 [ 12.397363] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.397384] ? calculate_sigpending+0x7b/0xa0 [ 12.397407] ? __pfx_kthread+0x10/0x10 [ 12.397428] ret_from_fork+0x116/0x1d0 [ 12.397445] ? __pfx_kthread+0x10/0x10 [ 12.397465] ret_from_fork_asm+0x1a/0x30 [ 12.397496] </TASK> [ 12.397566] [ 12.409678] The buggy address belongs to the physical page: [ 12.410220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a00 [ 12.410987] flags: 0x200000000000000(node=0|zone=2) [ 12.411503] page_type: f0(buddy) [ 12.411835] raw: 0200000000000000 ffff88817fffc5c8 ffff88817fffc5c8 0000000000000000 [ 12.412222] raw: 0000000000000000 0000000000000009 00000000f0000000 0000000000000000 [ 12.412584] page dumped because: kasan: bad access detected [ 12.412942] [ 12.413028] Memory state around the buggy address: [ 12.413232] ffff8881039fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.413713] ffff8881039fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.414026] >ffff888103a00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.414404] ^ [ 12.414556] ffff888103a00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.414893] ffff888103a00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.415267] ==================================================================