Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.221933] ================================================================== [ 29.223486] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 29.224481] Read of size 1 at addr fff00000c64e0000 by task kunit_try_catch/143 [ 29.225610] [ 29.226022] CPU: 0 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 29.227758] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.228621] Hardware name: linux,dummy-virt (DT) [ 29.229122] Call trace: [ 29.229510] show_stack+0x20/0x38 (C) [ 29.230190] dump_stack_lvl+0x8c/0xd0 [ 29.230944] print_report+0x118/0x5e0 [ 29.232212] kasan_report+0xc8/0x118 [ 29.232961] __asan_report_load1_noabort+0x20/0x30 [ 29.233637] page_alloc_uaf+0x328/0x350 [ 29.234234] kunit_try_run_case+0x14c/0x3d0 [ 29.234800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.235955] kthread+0x24c/0x2d0 [ 29.236551] ret_from_fork+0x10/0x20 [ 29.237201] [ 29.237531] The buggy address belongs to the physical page: [ 29.238799] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064e0 [ 29.240292] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.241085] page_type: f0(buddy) [ 29.241686] raw: 0bfffe0000000000 fff00000ff615148 fff00000ff615148 0000000000000000 [ 29.242596] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 29.243860] page dumped because: kasan: bad access detected [ 29.244478] [ 29.244813] Memory state around the buggy address: [ 29.245433] fff00000c64dff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.246705] fff00000c64dff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.247660] >fff00000c64e0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.248553] ^ [ 29.249418] fff00000c64e0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.250297] fff00000c64e0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.251150] ==================================================================
[ 26.800834] ================================================================== [ 26.802499] BUG: KASAN: use-after-free in page_alloc_uaf+0x358/0x3d0 [ 26.803215] Read of size 1 at addr ffff888102cb0000 by task kunit_try_catch/161 [ 26.803626] [ 26.803862] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 26.804635] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.805230] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.805872] Call Trace: [ 26.806269] <TASK> [ 26.806539] dump_stack_lvl+0x73/0xb0 [ 26.807190] print_report+0xd1/0x640 [ 26.807537] ? __virt_addr_valid+0x1db/0x2d0 [ 26.808054] ? kasan_addr_to_slab+0x11/0xa0 [ 26.808448] kasan_report+0x102/0x140 [ 26.809198] ? page_alloc_uaf+0x358/0x3d0 [ 26.809524] ? page_alloc_uaf+0x358/0x3d0 [ 26.810127] __asan_report_load1_noabort+0x18/0x20 [ 26.810717] page_alloc_uaf+0x358/0x3d0 [ 26.811268] ? __pfx_page_alloc_uaf+0x10/0x10 [ 26.811668] ? __pfx_page_alloc_uaf+0x10/0x10 [ 26.812200] kunit_try_run_case+0x1b3/0x490 [ 26.812619] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.813470] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.814207] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.814661] ? __kthread_parkme+0x82/0x160 [ 26.815243] ? preempt_count_sub+0x50/0x80 [ 26.815668] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.816369] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.817086] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.817532] kthread+0x257/0x310 [ 26.817941] ? __pfx_kthread+0x10/0x10 [ 26.818415] ret_from_fork+0x41/0x80 [ 26.818946] ? __pfx_kthread+0x10/0x10 [ 26.819353] ret_from_fork_asm+0x1a/0x30 [ 26.819946] </TASK> [ 26.820324] [ 26.820549] The buggy address belongs to the physical page: [ 26.821261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cb0 [ 26.822250] flags: 0x200000000000000(node=0|zone=2) [ 26.822806] page_type: f0(buddy) [ 26.823363] raw: 0200000000000000 ffff88817fffb4a0 ffff88817fffb4a0 0000000000000000 [ 26.824222] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 26.825099] page dumped because: kasan: bad access detected [ 26.825509] [ 26.825746] Memory state around the buggy address: [ 26.826307] ffff888102caff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.827224] ffff888102caff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.827807] >ffff888102cb0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.828427] ^ [ 26.828758] ffff888102cb0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.829265] ffff888102cb0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.830333] ==================================================================