Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.003842] ================================================================== [ 18.003927] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 18.004000] Read of size 1 at addr fff00000c7890000 by task kunit_try_catch/154 [ 18.004049] [ 18.004091] CPU: 0 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.004173] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.004199] Hardware name: linux,dummy-virt (DT) [ 18.004232] Call trace: [ 18.004256] show_stack+0x20/0x38 (C) [ 18.004308] dump_stack_lvl+0x8c/0xd0 [ 18.004359] print_report+0x118/0x608 [ 18.004405] kasan_report+0xdc/0x128 [ 18.004450] __asan_report_load1_noabort+0x20/0x30 [ 18.004500] page_alloc_uaf+0x328/0x350 [ 18.004545] kunit_try_run_case+0x170/0x3f0 [ 18.004608] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.004660] kthread+0x328/0x630 [ 18.004745] ret_from_fork+0x10/0x20 [ 18.004819] [ 18.004842] The buggy address belongs to the physical page: [ 18.004873] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107890 [ 18.004927] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.004979] page_type: f0(buddy) [ 18.005021] raw: 0bfffe0000000000 fff00000ff6160a0 fff00000ff6160a0 0000000000000000 [ 18.005069] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 18.005108] page dumped because: kasan: bad access detected [ 18.005138] [ 18.005156] Memory state around the buggy address: [ 18.005188] fff00000c788ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.005229] fff00000c788ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.005270] >fff00000c7890000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.005306] ^ [ 18.005334] fff00000c7890080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.005374] fff00000c7890100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.005411] ==================================================================
[ 10.982863] ================================================================== [ 10.983324] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 10.983590] Read of size 1 at addr ffff888103940000 by task kunit_try_catch/173 [ 10.984463] [ 10.984769] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.984816] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.984828] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.984847] Call Trace: [ 10.984860] <TASK> [ 10.984878] dump_stack_lvl+0x73/0xb0 [ 10.984906] print_report+0xd1/0x650 [ 10.984928] ? __virt_addr_valid+0x1db/0x2d0 [ 10.984952] ? page_alloc_uaf+0x356/0x3d0 [ 10.984972] ? kasan_addr_to_slab+0x11/0xa0 [ 10.984991] ? page_alloc_uaf+0x356/0x3d0 [ 10.985011] kasan_report+0x141/0x180 [ 10.985032] ? page_alloc_uaf+0x356/0x3d0 [ 10.985056] __asan_report_load1_noabort+0x18/0x20 [ 10.985079] page_alloc_uaf+0x356/0x3d0 [ 10.985099] ? __pfx_page_alloc_uaf+0x10/0x10 [ 10.985121] ? __schedule+0x10cc/0x2b60 [ 10.985141] ? __pfx_read_tsc+0x10/0x10 [ 10.985161] ? ktime_get_ts64+0x86/0x230 [ 10.985184] kunit_try_run_case+0x1a5/0x480 [ 10.985208] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.985228] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.985250] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.985271] ? __kthread_parkme+0x82/0x180 [ 10.985291] ? preempt_count_sub+0x50/0x80 [ 10.985313] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.985335] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.985356] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.985388] kthread+0x337/0x6f0 [ 10.985407] ? trace_preempt_on+0x20/0xc0 [ 10.985429] ? __pfx_kthread+0x10/0x10 [ 10.985448] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.985467] ? calculate_sigpending+0x7b/0xa0 [ 10.985490] ? __pfx_kthread+0x10/0x10 [ 10.985510] ret_from_fork+0x116/0x1d0 [ 10.985526] ? __pfx_kthread+0x10/0x10 [ 10.985546] ret_from_fork_asm+0x1a/0x30 [ 10.985575] </TASK> [ 10.985586] [ 10.999459] The buggy address belongs to the physical page: [ 10.999674] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103940 [ 10.999972] flags: 0x200000000000000(node=0|zone=2) [ 11.000445] page_type: f0(buddy) [ 11.000754] raw: 0200000000000000 ffff88817fffc4f0 ffff88817fffc4f0 0000000000000000 [ 11.001523] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 11.001914] page dumped because: kasan: bad access detected [ 11.002102] [ 11.002186] Memory state around the buggy address: [ 11.002342] ffff88810393ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.002565] ffff88810393ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.002987] >ffff888103940000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.003556] ^ [ 11.003860] ffff888103940080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.004614] ffff888103940100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.005403] ==================================================================