Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.656116] ================================================================== [ 16.656176] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 16.656241] Read of size 1 at addr fff00000c78c0000 by task kunit_try_catch/154 [ 16.656291] [ 16.656331] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.656427] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.656453] Hardware name: linux,dummy-virt (DT) [ 16.656487] Call trace: [ 16.656511] show_stack+0x20/0x38 (C) [ 16.656563] dump_stack_lvl+0x8c/0xd0 [ 16.656613] print_report+0x118/0x608 [ 16.656660] kasan_report+0xdc/0x128 [ 16.657731] __asan_report_load1_noabort+0x20/0x30 [ 16.658698] page_alloc_uaf+0x328/0x350 [ 16.658771] kunit_try_run_case+0x170/0x3f0 [ 16.658826] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.658952] kthread+0x328/0x630 [ 16.658998] ret_from_fork+0x10/0x20 [ 16.659144] [ 16.659167] The buggy address belongs to the physical page: [ 16.659428] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c0 [ 16.659685] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.659741] page_type: f0(buddy) [ 16.659782] raw: 0bfffe0000000000 fff00000ff616170 fff00000ff616170 0000000000000000 [ 16.660496] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 16.660574] page dumped because: kasan: bad access detected [ 16.660605] [ 16.660624] Memory state around the buggy address: [ 16.660710] fff00000c78bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.660796] fff00000c78bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.661012] >fff00000c78c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.661050] ^ [ 16.661079] fff00000c78c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.661413] fff00000c78c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.661713] ==================================================================
[ 12.109689] ================================================================== [ 12.110439] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.110656] Read of size 1 at addr ffff8881039c0000 by task kunit_try_catch/171 [ 12.110876] [ 12.112087] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.112143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.112155] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.112174] Call Trace: [ 12.112186] <TASK> [ 12.112200] dump_stack_lvl+0x73/0xb0 [ 12.112230] print_report+0xd1/0x650 [ 12.112252] ? __virt_addr_valid+0x1db/0x2d0 [ 12.112275] ? page_alloc_uaf+0x356/0x3d0 [ 12.112295] ? kasan_addr_to_slab+0x11/0xa0 [ 12.112316] ? page_alloc_uaf+0x356/0x3d0 [ 12.112337] kasan_report+0x141/0x180 [ 12.112358] ? page_alloc_uaf+0x356/0x3d0 [ 12.112384] __asan_report_load1_noabort+0x18/0x20 [ 12.112408] page_alloc_uaf+0x356/0x3d0 [ 12.112429] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.112451] ? __schedule+0x10cc/0x2b60 [ 12.112472] ? __pfx_read_tsc+0x10/0x10 [ 12.112492] ? ktime_get_ts64+0x86/0x230 [ 12.112516] kunit_try_run_case+0x1a5/0x480 [ 12.112540] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.112562] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.112585] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.112608] ? __kthread_parkme+0x82/0x180 [ 12.112627] ? preempt_count_sub+0x50/0x80 [ 12.112650] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.112673] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.112697] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.112722] kthread+0x337/0x6f0 [ 12.112740] ? trace_preempt_on+0x20/0xc0 [ 12.112762] ? __pfx_kthread+0x10/0x10 [ 12.112782] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.112802] ? calculate_sigpending+0x7b/0xa0 [ 12.112826] ? __pfx_kthread+0x10/0x10 [ 12.112846] ret_from_fork+0x116/0x1d0 [ 12.112864] ? __pfx_kthread+0x10/0x10 [ 12.112884] ret_from_fork_asm+0x1a/0x30 [ 12.112914] </TASK> [ 12.112923] [ 12.125672] The buggy address belongs to the physical page: [ 12.125857] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c0 [ 12.126618] flags: 0x200000000000000(node=0|zone=2) [ 12.127243] page_type: f0(buddy) [ 12.127530] raw: 0200000000000000 ffff88817fffb4f0 ffff88817fffb4f0 0000000000000000 [ 12.127764] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 12.128554] page dumped because: kasan: bad access detected [ 12.129142] [ 12.129337] Memory state around the buggy address: [ 12.129724] ffff8881039bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.130234] ffff8881039bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.130836] >ffff8881039c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.131367] ^ [ 12.131489] ffff8881039c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.131703] ffff8881039c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.132294] ==================================================================