Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.935757] ================================================================== [ 30.935830] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 30.935888] Read of size 1 at addr fff00000c9ae0000 by task kunit_try_catch/185 [ 30.935939] [ 30.935979] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 30.936062] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.936088] Hardware name: linux,dummy-virt (DT) [ 30.936429] Call trace: [ 30.936493] show_stack+0x20/0x38 (C) [ 30.936601] dump_stack_lvl+0x8c/0xd0 [ 30.936680] print_report+0x118/0x5d0 [ 30.936761] kasan_report+0xdc/0x128 [ 30.936832] __asan_report_load1_noabort+0x20/0x30 [ 30.936907] page_alloc_uaf+0x328/0x350 [ 30.937005] kunit_try_run_case+0x170/0x3f0 [ 30.937095] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.937181] kthread+0x328/0x630 [ 30.937260] ret_from_fork+0x10/0x20 [ 30.937352] [ 30.937399] The buggy address belongs to the physical page: [ 30.937463] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae0 [ 30.937534] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.937581] page_type: f0(buddy) [ 30.937618] raw: 0bfffe0000000000 fff00000ff616148 fff00000ff616148 0000000000000000 [ 30.937666] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 30.937705] page dumped because: kasan: bad access detected [ 30.937734] [ 30.937752] Memory state around the buggy address: [ 30.937997] fff00000c9adff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.938053] fff00000c9adff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.938112] >fff00000c9ae0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.938251] ^ [ 30.938304] fff00000c9ae0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.938397] fff00000c9ae0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.938459] ==================================================================
[ 22.931906] ================================================================== [ 22.932412] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 22.932648] Read of size 1 at addr ffff8881026f0000 by task kunit_try_catch/202 [ 22.933373] [ 22.933615] CPU: 0 UID: 0 PID: 202 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 22.933672] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.933685] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.933708] Call Trace: [ 22.933754] <TASK> [ 22.933776] dump_stack_lvl+0x73/0xb0 [ 22.933836] print_report+0xd1/0x610 [ 22.933861] ? __virt_addr_valid+0x1db/0x2d0 [ 22.933888] ? page_alloc_uaf+0x356/0x3d0 [ 22.933910] ? kasan_addr_to_slab+0x11/0xa0 [ 22.933930] ? page_alloc_uaf+0x356/0x3d0 [ 22.933953] kasan_report+0x141/0x180 [ 22.933976] ? page_alloc_uaf+0x356/0x3d0 [ 22.934004] __asan_report_load1_noabort+0x18/0x20 [ 22.934030] page_alloc_uaf+0x356/0x3d0 [ 22.934076] ? __pfx_page_alloc_uaf+0x10/0x10 [ 22.934129] ? __schedule+0x10cc/0x2b60 [ 22.934159] ? __pfx_read_tsc+0x10/0x10 [ 22.934185] ? ktime_get_ts64+0x86/0x230 [ 22.934235] kunit_try_run_case+0x1a5/0x480 [ 22.934296] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.934316] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.934338] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.934367] ? __kthread_parkme+0x82/0x180 [ 22.934389] ? preempt_count_sub+0x50/0x80 [ 22.934443] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.934465] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.934503] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.934530] kthread+0x337/0x6f0 [ 22.934551] ? trace_preempt_on+0x20/0xc0 [ 22.934577] ? __pfx_kthread+0x10/0x10 [ 22.934600] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.934627] ? calculate_sigpending+0x7b/0xa0 [ 22.934655] ? __pfx_kthread+0x10/0x10 [ 22.934678] ret_from_fork+0x116/0x1d0 [ 22.934698] ? __pfx_kthread+0x10/0x10 [ 22.934720] ret_from_fork_asm+0x1a/0x30 [ 22.934761] </TASK> [ 22.934773] [ 22.948922] The buggy address belongs to the physical page: [ 22.949172] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026f0 [ 22.949797] flags: 0x200000000000000(node=0|zone=2) [ 22.950317] page_type: f0(buddy) [ 22.950685] raw: 0200000000000000 ffff88817fffd460 ffff88817fffd460 0000000000000000 [ 22.951196] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 22.951931] page dumped because: kasan: bad access detected [ 22.952411] [ 22.952592] Memory state around the buggy address: [ 22.952825] ffff8881026eff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.953492] ffff8881026eff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.953727] >ffff8881026f0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.954174] ^ [ 22.954329] ffff8881026f0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.954530] ffff8881026f0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 22.954726] ==================================================================