Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.332612] ================================================================== [ 31.332713] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 31.332764] Read of size 1 at addr fff00000c9b00000 by task kunit_try_catch/185 [ 31.332813] [ 31.332851] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.332932] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.332957] Hardware name: linux,dummy-virt (DT) [ 31.333172] Call trace: [ 31.333311] show_stack+0x20/0x38 (C) [ 31.333368] dump_stack_lvl+0x8c/0xd0 [ 31.333436] print_report+0x118/0x5e8 [ 31.333495] kasan_report+0xdc/0x128 [ 31.333538] __asan_report_load1_noabort+0x20/0x30 [ 31.333754] page_alloc_uaf+0x328/0x350 [ 31.333966] kunit_try_run_case+0x170/0x3f0 [ 31.334023] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.334090] kthread+0x328/0x630 [ 31.334220] ret_from_fork+0x10/0x20 [ 31.334287] [ 31.334315] The buggy address belongs to the physical page: [ 31.334407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b00 [ 31.334492] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.334558] page_type: f0(buddy) [ 31.334612] raw: 0bfffe0000000000 fff00000ff616280 fff00000ff616280 0000000000000000 [ 31.334947] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000 [ 31.334992] page dumped because: kasan: bad access detected [ 31.335040] [ 31.335058] Memory state around the buggy address: [ 31.335102] fff00000c9afff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.335206] fff00000c9afff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.335251] >fff00000c9b00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.335287] ^ [ 31.335314] fff00000c9b00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.335360] fff00000c9b00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.335396] ==================================================================
[ 24.323436] ================================================================== [ 24.325036] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 24.325586] Read of size 1 at addr ffff888106310000 by task kunit_try_catch/202 [ 24.325807] [ 24.325891] CPU: 0 UID: 0 PID: 202 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 24.325939] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.325950] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.325972] Call Trace: [ 24.325984] <TASK> [ 24.326001] dump_stack_lvl+0x73/0xb0 [ 24.326034] print_report+0xd1/0x640 [ 24.326056] ? __virt_addr_valid+0x1db/0x2d0 [ 24.326080] ? page_alloc_uaf+0x356/0x3d0 [ 24.326100] ? kasan_addr_to_slab+0x11/0xa0 [ 24.326120] ? page_alloc_uaf+0x356/0x3d0 [ 24.326141] kasan_report+0x141/0x180 [ 24.326161] ? page_alloc_uaf+0x356/0x3d0 [ 24.326197] __asan_report_load1_noabort+0x18/0x20 [ 24.326220] page_alloc_uaf+0x356/0x3d0 [ 24.326240] ? __pfx_page_alloc_uaf+0x10/0x10 [ 24.326262] ? __schedule+0x10da/0x2b60 [ 24.326287] ? __pfx_read_tsc+0x10/0x10 [ 24.326308] ? ktime_get_ts64+0x86/0x230 [ 24.326333] kunit_try_run_case+0x1a5/0x480 [ 24.326357] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.326378] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.326411] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.326444] ? __kthread_parkme+0x82/0x180 [ 24.326463] ? preempt_count_sub+0x50/0x80 [ 24.326486] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.326508] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.326530] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.326552] kthread+0x337/0x6f0 [ 24.326570] ? trace_preempt_on+0x20/0xc0 [ 24.326593] ? __pfx_kthread+0x10/0x10 [ 24.326616] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.326645] ? calculate_sigpending+0x7b/0xa0 [ 24.326667] ? __pfx_kthread+0x10/0x10 [ 24.326688] ret_from_fork+0x116/0x1d0 [ 24.326706] ? __pfx_kthread+0x10/0x10 [ 24.326725] ret_from_fork_asm+0x1a/0x30 [ 24.326756] </TASK> [ 24.326767] [ 24.333601] The buggy address belongs to the physical page: [ 24.333782] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106310 [ 24.334020] flags: 0x200000000000000(node=0|zone=2) [ 24.334197] page_type: f0(buddy) [ 24.334366] raw: 0200000000000000 ffff88817fffb460 ffff88817fffb460 0000000000000000 [ 24.334704] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 24.335029] page dumped because: kasan: bad access detected [ 24.335510] [ 24.335584] Memory state around the buggy address: [ 24.335851] ffff88810630ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.336116] ffff88810630ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.336344] >ffff888106310000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.336657] ^ [ 24.336846] ffff888106310080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.337159] ffff888106310100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.337478] ==================================================================