Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.759347] ================================================================== [ 24.759470] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 24.759593] Read of size 1 at addr fff00000c7800000 by task kunit_try_catch/154 [ 24.759728] [ 24.759805] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 24.760049] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.760125] Hardware name: linux,dummy-virt (DT) [ 24.760209] Call trace: [ 24.760268] show_stack+0x20/0x38 (C) [ 24.760427] dump_stack_lvl+0x8c/0xd0 [ 24.760603] print_report+0x118/0x608 [ 24.761310] kasan_report+0xdc/0x128 [ 24.761468] __asan_report_load1_noabort+0x20/0x30 [ 24.761617] page_alloc_uaf+0x328/0x350 [ 24.761744] kunit_try_run_case+0x170/0x3f0 [ 24.761884] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.762186] kthread+0x328/0x630 [ 24.762305] ret_from_fork+0x10/0x20 [ 24.762445] [ 24.762516] The buggy address belongs to the physical page: [ 24.762600] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107800 [ 24.762737] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.762868] page_type: f0(buddy) [ 24.763054] raw: 0bfffe0000000000 fff00000ff616310 fff00000ff616310 0000000000000000 [ 24.763360] raw: 0000000000000000 000000000000000a 00000000f0000000 0000000000000000 [ 24.763533] page dumped because: kasan: bad access detected [ 24.763659] [ 24.763738] Memory state around the buggy address: [ 24.763816] fff00000c77fff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.763934] fff00000c77fff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.764057] >fff00000c7800000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.764161] ^ [ 24.764238] fff00000c7800080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.764395] fff00000c7800100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.764490] ==================================================================
[ 10.952315] ================================================================== [ 10.953812] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 10.954068] Read of size 1 at addr ffff888103ac0000 by task kunit_try_catch/171 [ 10.954727] [ 10.954914] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 10.954960] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.954971] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.954992] Call Trace: [ 10.955003] <TASK> [ 10.955027] dump_stack_lvl+0x73/0xb0 [ 10.955054] print_report+0xd1/0x650 [ 10.955075] ? __virt_addr_valid+0x1db/0x2d0 [ 10.955106] ? page_alloc_uaf+0x356/0x3d0 [ 10.955127] ? kasan_addr_to_slab+0x11/0xa0 [ 10.955148] ? page_alloc_uaf+0x356/0x3d0 [ 10.955169] kasan_report+0x141/0x180 [ 10.955190] ? page_alloc_uaf+0x356/0x3d0 [ 10.955216] __asan_report_load1_noabort+0x18/0x20 [ 10.955240] page_alloc_uaf+0x356/0x3d0 [ 10.955261] ? __pfx_page_alloc_uaf+0x10/0x10 [ 10.955283] ? __schedule+0x10cc/0x2b60 [ 10.955306] ? __pfx_read_tsc+0x10/0x10 [ 10.955327] ? ktime_get_ts64+0x86/0x230 [ 10.955351] kunit_try_run_case+0x1a5/0x480 [ 10.955373] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.955392] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.955416] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.955439] ? __kthread_parkme+0x82/0x180 [ 10.955459] ? preempt_count_sub+0x50/0x80 [ 10.955483] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.955503] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.955527] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.955551] kthread+0x337/0x6f0 [ 10.955569] ? trace_preempt_on+0x20/0xc0 [ 10.955593] ? __pfx_kthread+0x10/0x10 [ 10.955613] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.955644] ? calculate_sigpending+0x7b/0xa0 [ 10.955668] ? __pfx_kthread+0x10/0x10 [ 10.955688] ret_from_fork+0x116/0x1d0 [ 10.955706] ? __pfx_kthread+0x10/0x10 [ 10.955726] ret_from_fork_asm+0x1a/0x30 [ 10.955756] </TASK> [ 10.955766] [ 10.966386] The buggy address belongs to the physical page: [ 10.966625] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ac0 [ 10.967049] flags: 0x200000000000000(node=0|zone=2) [ 10.967216] page_type: f0(buddy) [ 10.967342] raw: 0200000000000000 ffff88817fffc4f0 ffff88817fffc4f0 0000000000000000 [ 10.967749] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 10.968080] page dumped because: kasan: bad access detected [ 10.968305] [ 10.968377] Memory state around the buggy address: [ 10.968566] ffff888103abff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.968780] ffff888103abff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.969231] >ffff888103ac0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.969553] ^ [ 10.969742] ffff888103ac0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.970043] ffff888103ac0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.970297] ==================================================================