Date
July 9, 2025, 1:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.114647] ================================================================== [ 29.114924] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 29.115453] Read of size 1 at addr fff00000c9b40000 by task kunit_try_catch/186 [ 29.115685] [ 29.115719] CPU: 0 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250709 #1 PREEMPT [ 29.115939] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.115965] Hardware name: linux,dummy-virt (DT) [ 29.116116] Call trace: [ 29.116142] show_stack+0x20/0x38 (C) [ 29.116195] dump_stack_lvl+0x8c/0xd0 [ 29.116598] print_report+0x118/0x5d0 [ 29.116683] kasan_report+0xdc/0x128 [ 29.116726] __asan_report_load1_noabort+0x20/0x30 [ 29.116774] page_alloc_uaf+0x328/0x350 [ 29.116821] kunit_try_run_case+0x170/0x3f0 [ 29.117117] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.117407] kthread+0x328/0x630 [ 29.117463] ret_from_fork+0x10/0x20 [ 29.117589] [ 29.117615] The buggy address belongs to the physical page: [ 29.117693] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b40 [ 29.117778] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.117870] page_type: f0(buddy) [ 29.118258] raw: 0bfffe0000000000 fff00000ff6161b0 fff00000ff6161b0 0000000000000000 [ 29.118340] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 29.118379] page dumped because: kasan: bad access detected [ 29.118409] [ 29.118428] Memory state around the buggy address: [ 29.118459] fff00000c9b3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.118869] fff00000c9b3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.118913] >fff00000c9b40000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.118949] ^ [ 29.118977] fff00000c9b40080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.119480] fff00000c9b40100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.119529] ==================================================================
[ 23.714264] ================================================================== [ 23.714874] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 23.715237] Read of size 1 at addr ffff888106250000 by task kunit_try_catch/204 [ 23.715560] [ 23.715674] CPU: 0 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) [ 23.715738] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.715751] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.715773] Call Trace: [ 23.715786] <TASK> [ 23.715806] dump_stack_lvl+0x73/0xb0 [ 23.715873] print_report+0xd1/0x610 [ 23.715955] ? __virt_addr_valid+0x1db/0x2d0 [ 23.715982] ? page_alloc_uaf+0x356/0x3d0 [ 23.716003] ? kasan_addr_to_slab+0x11/0xa0 [ 23.716023] ? page_alloc_uaf+0x356/0x3d0 [ 23.716044] kasan_report+0x141/0x180 [ 23.716065] ? page_alloc_uaf+0x356/0x3d0 [ 23.716091] __asan_report_load1_noabort+0x18/0x20 [ 23.716114] page_alloc_uaf+0x356/0x3d0 [ 23.716146] ? __pfx_page_alloc_uaf+0x10/0x10 [ 23.716168] ? __schedule+0x10cc/0x2b60 [ 23.716192] ? __pfx_read_tsc+0x10/0x10 [ 23.716224] ? ktime_get_ts64+0x86/0x230 [ 23.716250] kunit_try_run_case+0x1a5/0x480 [ 23.716274] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.716294] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.716317] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.716349] ? __kthread_parkme+0x82/0x180 [ 23.716371] ? preempt_count_sub+0x50/0x80 [ 23.716394] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.716426] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.716450] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.716474] kthread+0x337/0x6f0 [ 23.716494] ? trace_preempt_on+0x20/0xc0 [ 23.716518] ? __pfx_kthread+0x10/0x10 [ 23.716538] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.716559] ? calculate_sigpending+0x7b/0xa0 [ 23.716583] ? __pfx_kthread+0x10/0x10 [ 23.716604] ret_from_fork+0x116/0x1d0 [ 23.716623] ? __pfx_kthread+0x10/0x10 [ 23.716643] ret_from_fork_asm+0x1a/0x30 [ 23.716674] </TASK> [ 23.716686] [ 23.724569] The buggy address belongs to the physical page: [ 23.724878] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106250 [ 23.725438] flags: 0x200000000000000(node=0|zone=2) [ 23.725677] page_type: f0(buddy) [ 23.725885] raw: 0200000000000000 ffff88817fffc460 ffff88817fffc460 0000000000000000 [ 23.726288] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 23.726669] page dumped because: kasan: bad access detected [ 23.726996] [ 23.727160] Memory state around the buggy address: [ 23.727389] ffff88810624ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.727728] ffff88810624ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.728163] >ffff888106250000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.728480] ^ [ 23.728678] ffff888106250080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.729076] ffff888106250100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.729395] ==================================================================