================================================================== BUG: KASAN: use-after-free in user_mode arch/x86/include/asm/ptrace.h:131 [inline] BUG: KASAN: use-after-free in trace_page_fault_entries arch/x86/mm/fault.c:1516 [inline] BUG: KASAN: use-after-free in do_page_fault+0x66/0x330 arch/x86/mm/fault.c:1528 Read of size 8 at addr ffff8881ddaeffc0 by task syz.2.1242/4828 CPU: 0 PID: 4828 Comm: syz.2.1242 Not tainted 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: The buggy address belongs to the page: page:ffffea000776bbc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 ffffea000776bc08 ffffea000776bb88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4893 __vmalloc_area_node mm/vmalloc.c:2431 [inline] __vmalloc_node_range+0x384/0x710 mm/vmalloc.c:2499 vmalloc_user+0x70/0x80 mm/vmalloc.c:2629 kcov_mmap+0x28/0x120 kernel/kcov.c:450 call_mmap include/linux/fs.h:1996 [inline] mmap_region+0x110d/0x16f0 mm/mmap.c:1812 do_mmap+0x822/0xd30 mm/mmap.c:1581 do_mmap_pgoff include/linux/mm.h:2480 [inline] vm_mmap_pgoff+0x1b5/0x260 mm/util.c:528 ksys_mmap_pgoff+0x168/0x1e0 mm/mmap.c:1631 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] free_pcp_prepare mm/page_alloc.c:1233 [inline] free_unref_page_prepare+0x297/0x380 mm/page_alloc.c:3085 free_unref_page mm/page_alloc.c:3134 [inline] free_the_page mm/page_alloc.c:4953 [inline] __free_pages+0xaf/0x140 mm/page_alloc.c:4961 __vunmap+0x75b/0x890 mm/vmalloc.c:2260 kcov_put kernel/kcov.c:396 [inline] kcov_close+0x27/0x50 kernel/kcov.c:495 __fput+0x262/0x680 fs/file_table.c:281 task_work_run+0x140/0x170 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xcaf/0x2bc0 kernel/exit.c:861 do_group_exit+0x138/0x300 kernel/exit.c:984 __do_sys_exit_group kernel/exit.c:995 [inline] __se_sys_exit_group kernel/exit.c:993 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:993 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Memory state around the buggy address: ffff8881ddaefe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881ddaeff00: ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 >ffff8881ddaeff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881ddaf0000: 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 04 f3 f3 f3 ffff8881ddaf0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== PANIC: double fault, error_code: 0x0 CPU: 0 PID: 4828 Comm: syz.2.1242 Tainted: G B 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:check_preemption_disabled+0x2c/0x320 lib/smp_processor_id.c:13 Code: 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 80 00 00 00 49 89 f7 49 89 fc 65 48 8b 04 25 28 00 00 00 48 89 44 24 60 <48> c7 44 24 20 b3 8a b5 41 48 c7 44 24 28 4a c5 58 85 48 c7 44 24 RSP: 0018:ffff8881dcd04fa0 EFLAGS: 00010086 RAX: a09ee37f49b5af00 RBX: ffffffff85eb6c58 RCX: ffff8881e4051f80 RDX: 00000000800077d1 RSI: ffffffff84fa5560 RDI: ffffffff84fa5520 RBP: ffff8881dcd05050 R08: ffffffff8130280e R09: fffffbfff0c989a6 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff84fa5520 R13: dffffc0000000000 R14: ffff8881dcd050c0 R15: ffffffff84fa5560 FS: 00007ffa41fa26c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8881dcd04f98 CR3: 00000001f5c2a000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> PANIC: double fault, error_code: 0x0 CPU: 0 PID: 4828 Comm: syz.2.1242 Tainted: G B 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:do_page_fault+0x3/0x330 arch/x86/mm/fault.c:1524 Code: 00 00 00 c9 ff ff 48 be ff ff ff ff ff e8 ff ff e9 62 de ff ff 66 90 e8 eb 24 34 00 c3 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 <41> 56 41 55 41 54 53 50 49 89 d6 49 89 f7 48 89 fb e8 c7 24 34 00 RSP: 0018:fffffe0000007000 EFLAGS: 00010046 RAX: 0000000084600a87 RBX: 0000000000000000 RCX: ffffffff84600a87 RDX: ffffffff000821b0 RSI: 0000000000000010 RDI: fffffe0000007018 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff000821b0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ffa41fa26c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffe0000006ff8 CR3: 00000001f5c2a000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> PANIC: double fault, error_code: 0x0 CPU: 0 PID: 4828 Comm: syz.2.1242 Tainted: G B 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:do_page_fault+0x3/0x330 arch/x86/mm/fault.c:1524 Code: 00 00 00 c9 ff ff 48 be ff ff ff ff ff e8 ff ff e9 62 de ff ff 66 90 e8 eb 24 34 00 c3 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 <41> 56 41 55 41 54 53 50 49 89 d6 49 89 f7 48 89 fb e8 c7 24 34 00 RSP: 0018:fffffe0000007000 EFLAGS: 00010046 RAX: 0000000084600a87 RBX: 0000000000000000 RCX: ffffffff84600a87 RDX: ffffffff000821b0 RSI: 0000000000000010 RDI: fffffe0000007018 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff000821b0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ffa41fa26c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffe0000006ff8 CR3: 00000001f5c2a000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> PANIC: double fault, error_code: 0x0 CPU: 0 PID: 4828 Comm: syz.2.1242 Tainted: G B 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:do_page_fault+0x3/0x330 arch/x86/mm/fault.c:1524 Code: 00 00 00 c9 ff ff 48 be ff ff ff ff ff e8 ff ff e9 62 de ff ff 66 90 e8 eb 24 34 00 c3 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 <41> 56 41 55 41 54 53 50 49 89 d6 49 89 f7 48 89 fb e8 c7 24 34 00 RSP: 0018:fffffe0000007000 EFLAGS: 00010046 RAX: 0000000084600a87 RBX: 0000000000000000 RCX: ffffffff84600a87 RDX: ffffffff000821b0 RSI: 0000000000000010 RDI: fffffe0000007018 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff000821b0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ffa41fa26c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffe0000006ff8 CR3: 00000001f5c2a000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> PANIC: double fault, error_code: 0x0 CPU: 0 PID: 4828 Comm: syz.2.1242 Tainted: G B 5.4.290-syzkaller-00017-g6b07fcd94a6a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:do_page_fault+0x3/0x330 arch/x86/mm/fault.c:1524 Code: 00 00 00 c9 ff ff 48 be ff ff ff ff ff e8 ff ff e9 62 de ff ff 66 90 e8 eb 24 34 00 c3 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 <41> 56 41 55 41 54 53 50 49 89 d6 49 89 f7 48 89 fb e8 c7 24 34 00 RSP: 0018:fffffe0000007000 EFLAGS: 00010046 RAX: 0000000084600a87 RBX: 0000000000000000 RCX: ffffffff84600a87 RDX: ffffffff000821b0 RSI: 0000000000000010 RDI: fffffe0000007018 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff000821b0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ffa41fa26c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffe0000006ff8 CR3: 00000001f5c2a000 CR4: 00000000003406b0 DR0: 0000400000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> ---------------- Code disassembly (best guess): 0: 89 e5 mov %esp,%ebp 2: 41 57 push %r15 4: 41 56 push %r14 6: 41 55 push %r13 8: 41 54 push %r12 a: 53 push %rbx b: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp f: 48 81 ec 80 00 00 00 sub $0x80,%rsp 16: 49 89 f7 mov %rsi,%r15 19: 49 89 fc mov %rdi,%r12 1c: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 23: 00 00 25: 48 89 44 24 60 mov %rax,0x60(%rsp) * 2a: 48 c7 44 24 20 b3 8a movq $0x41b58ab3,0x20(%rsp) <-- trapping instruction 31: b5 41 33: 48 c7 44 24 28 4a c5 movq $0xffffffff8558c54a,0x28(%rsp) 3a: 58 85 3c: 48 rex.W 3d: c7 .byte 0xc7 3e: 44 rex.R 3f: 24 .byte 0x24