Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.439984] ================================================================== [ 31.440277] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 31.440635] Read of size 1 at addr fff00000c59a0000 by task kunit_try_catch/165 [ 31.440771] [ 31.440863] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.441053] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.441107] Hardware name: linux,dummy-virt (DT) [ 31.441178] Call trace: [ 31.441231] show_stack+0x20/0x38 (C) [ 31.441355] dump_stack_lvl+0x8c/0xd0 [ 31.441478] print_report+0x118/0x608 [ 31.441597] kasan_report+0xdc/0x128 [ 31.441741] __asan_report_load1_noabort+0x20/0x30 [ 31.441853] page_alloc_uaf+0x328/0x350 [ 31.442094] kunit_try_run_case+0x170/0x3f0 [ 31.442239] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.442373] kthread+0x328/0x630 [ 31.442469] ret_from_fork+0x10/0x20 [ 31.442589] [ 31.442662] The buggy address belongs to the physical page: [ 31.442755] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059a0 [ 31.442914] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.443033] page_type: f0(buddy) [ 31.443193] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000 [ 31.443380] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 31.443545] page dumped because: kasan: bad access detected [ 31.443670] [ 31.443734] Memory state around the buggy address: [ 31.443859] fff00000c599ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.444015] fff00000c599ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.444167] >fff00000c59a0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.444298] ^ [ 31.444359] fff00000c59a0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.444461] fff00000c59a0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.444555] ==================================================================
[ 24.937368] ================================================================== [ 24.938510] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 24.939066] Read of size 1 at addr ffff888103990000 by task kunit_try_catch/183 [ 24.939876] [ 24.940067] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 24.940378] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.940412] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.940475] Call Trace: [ 24.940511] <TASK> [ 24.940751] dump_stack_lvl+0x73/0xb0 [ 24.940851] print_report+0xd1/0x650 [ 24.940896] ? __virt_addr_valid+0x1db/0x2d0 [ 24.940933] ? page_alloc_uaf+0x356/0x3d0 [ 24.940957] ? kasan_addr_to_slab+0x11/0xa0 [ 24.940979] ? page_alloc_uaf+0x356/0x3d0 [ 24.941003] kasan_report+0x141/0x180 [ 24.941026] ? page_alloc_uaf+0x356/0x3d0 [ 24.941053] __asan_report_load1_noabort+0x18/0x20 [ 24.941079] page_alloc_uaf+0x356/0x3d0 [ 24.941102] ? __pfx_page_alloc_uaf+0x10/0x10 [ 24.941127] ? __schedule+0x10cc/0x2b60 [ 24.941177] ? __pfx_read_tsc+0x10/0x10 [ 24.941211] ? ktime_get_ts64+0x86/0x230 [ 24.941242] kunit_try_run_case+0x1a5/0x480 [ 24.941271] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.941295] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.941319] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.941344] ? __kthread_parkme+0x82/0x180 [ 24.941367] ? preempt_count_sub+0x50/0x80 [ 24.941393] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.941418] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.941462] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.941489] kthread+0x337/0x6f0 [ 24.941511] ? trace_preempt_on+0x20/0xc0 [ 24.941538] ? __pfx_kthread+0x10/0x10 [ 24.941594] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.941639] ? calculate_sigpending+0x7b/0xa0 [ 24.941684] ? __pfx_kthread+0x10/0x10 [ 24.941711] ret_from_fork+0x116/0x1d0 [ 24.941733] ? __pfx_kthread+0x10/0x10 [ 24.941756] ret_from_fork_asm+0x1a/0x30 [ 24.941790] </TASK> [ 24.941805] [ 24.955046] The buggy address belongs to the physical page: [ 24.955965] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103990 [ 24.956517] flags: 0x200000000000000(node=0|zone=2) [ 24.956746] page_type: f0(buddy) [ 24.957215] raw: 0200000000000000 ffff88817fffc460 ffff88817fffc460 0000000000000000 [ 24.958018] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 24.958813] page dumped because: kasan: bad access detected [ 24.959273] [ 24.959457] Memory state around the buggy address: [ 24.959829] ffff88810398ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.960796] ffff88810398ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.961427] >ffff888103990000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.961855] ^ [ 24.962176] ffff888103990080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.962898] ffff888103990100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.963282] ==================================================================