Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.652268] ================================================================== [ 17.652322] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 17.652721] Read of size 1 at addr fff00000c78c0000 by task kunit_try_catch/156 [ 17.652784] [ 17.652939] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 17.653033] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.653059] Hardware name: linux,dummy-virt (DT) [ 17.653417] Call trace: [ 17.653503] show_stack+0x20/0x38 (C) [ 17.653557] dump_stack_lvl+0x8c/0xd0 [ 17.653911] print_report+0x118/0x5d0 [ 17.654152] kasan_report+0xdc/0x128 [ 17.654484] __asan_report_load1_noabort+0x20/0x30 [ 17.654692] page_alloc_uaf+0x328/0x350 [ 17.654835] kunit_try_run_case+0x170/0x3f0 [ 17.654935] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.655335] kthread+0x328/0x630 [ 17.655508] ret_from_fork+0x10/0x20 [ 17.655682] [ 17.655740] The buggy address belongs to the physical page: [ 17.655879] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c0 [ 17.656034] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.656215] page_type: f0(buddy) [ 17.656465] raw: 0bfffe0000000000 fff00000ff6160f0 fff00000ff6160f0 0000000000000000 [ 17.656645] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 17.656897] page dumped because: kasan: bad access detected [ 17.657636] [ 17.657672] Memory state around the buggy address: [ 17.658061] fff00000c78bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.658157] fff00000c78bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.658254] >fff00000c78c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.658333] ^ [ 17.658369] fff00000c78c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.658423] fff00000c78c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.659216] ==================================================================
[ 10.576570] ================================================================== [ 10.577459] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 10.577673] Read of size 1 at addr ffff8881039c0000 by task kunit_try_catch/173 [ 10.578445] [ 10.578763] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.578826] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.578837] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.578855] Call Trace: [ 10.578866] <TASK> [ 10.578889] dump_stack_lvl+0x73/0xb0 [ 10.578913] print_report+0xd1/0x610 [ 10.578935] ? __virt_addr_valid+0x1db/0x2d0 [ 10.578956] ? page_alloc_uaf+0x356/0x3d0 [ 10.578973] ? kasan_addr_to_slab+0x11/0xa0 [ 10.579027] ? page_alloc_uaf+0x356/0x3d0 [ 10.579046] kasan_report+0x141/0x180 [ 10.579067] ? page_alloc_uaf+0x356/0x3d0 [ 10.579090] __asan_report_load1_noabort+0x18/0x20 [ 10.579138] page_alloc_uaf+0x356/0x3d0 [ 10.579156] ? __pfx_page_alloc_uaf+0x10/0x10 [ 10.579185] ? __schedule+0x10cc/0x2b60 [ 10.579208] ? __pfx_read_tsc+0x10/0x10 [ 10.579231] ? ktime_get_ts64+0x86/0x230 [ 10.579255] kunit_try_run_case+0x1a5/0x480 [ 10.579275] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.579292] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.579315] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.579337] ? __kthread_parkme+0x82/0x180 [ 10.579361] ? preempt_count_sub+0x50/0x80 [ 10.579384] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.579403] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.579425] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.579446] kthread+0x337/0x6f0 [ 10.579462] ? trace_preempt_on+0x20/0xc0 [ 10.579484] ? __pfx_kthread+0x10/0x10 [ 10.579502] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.579523] ? calculate_sigpending+0x7b/0xa0 [ 10.579547] ? __pfx_kthread+0x10/0x10 [ 10.579565] ret_from_fork+0x41/0x80 [ 10.579593] ? __pfx_kthread+0x10/0x10 [ 10.579610] ret_from_fork_asm+0x1a/0x30 [ 10.579645] </TASK> [ 10.579655] [ 10.588014] The buggy address belongs to the physical page: [ 10.588263] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c0 [ 10.588545] flags: 0x200000000000000(node=0|zone=2) [ 10.589029] page_type: f0(buddy) [ 10.589212] raw: 0200000000000000 ffff88817fffc470 ffff88817fffc470 0000000000000000 [ 10.589612] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 10.590065] page dumped because: kasan: bad access detected [ 10.590351] [ 10.590446] Memory state around the buggy address: [ 10.590773] ffff8881039bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.591103] ffff8881039bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.591463] >ffff8881039c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.591893] ^ [ 10.592065] ffff8881039c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.592451] ffff8881039c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.592848] ==================================================================