================================================================== BUG: KASAN: slab-out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:131 [inline] BUG: KASAN: slab-out-of-bounds in trace_page_fault_entries arch/x86/mm/fault.c:1516 [inline] BUG: KASAN: slab-out-of-bounds in do_page_fault+0x66/0x330 arch/x86/mm/fault.c:1528 Read of size 8 at addr ffff8881e52cff40 by task syz.3.437/2060 CPU: 1 PID: 2060 Comm: syz.3.437 Not tainted 5.4.290-syzkaller-00002-g41adfeb3d639 #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:ffffea000794b200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 compound_mapcount: 0 flags: 0x8000000000010000(head) raw: 8000000000010000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x140dc0(GFP_USER|__GFP_COMP|__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 __alloc_pages include/linux/gfp.h:503 [inline] __alloc_pages_node include/linux/gfp.h:516 [inline] alloc_pages_node include/linux/gfp.h:530 [inline] kmalloc_order mm/slab_common.c:1342 [inline] kmalloc_order_trace+0x2a/0x100 mm/slab_common.c:1358 kmalloc_large include/linux/slab.h:485 [inline] kmalloc include/linux/slab.h:549 [inline] kzalloc include/linux/slab.h:690 [inline] can_pernet_init+0x5a/0x2e0 net/can/af_can.c:796 ops_init+0x1d4/0x4a0 net/core/net_namespace.c:141 setup_net+0x214/0x990 net/core/net_namespace.c:348 copy_net_ns+0x30d/0x510 net/core/net_namespace.c:489 create_new_namespaces+0x47a/0x570 kernel/nsproxy.c:103 copy_namespaces+0x169/0x1b0 kernel/nsproxy.c:161 copy_process+0x12da/0x3230 kernel/fork.c:2055 _do_fork+0x197/0x900 kernel/fork.c:2399 __do_sys_clone kernel/fork.c:2557 [inline] __se_sys_clone kernel/fork.c:2538 [inline] __x64_sys_clone+0x26b/0x2c0 kernel/fork.c:2538 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: ffff8881e52cfe00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8881e52cfe80: fe fe fe fe fe fe fe fe 00 00 00 00 00 00 00 00 >ffff8881e52cff00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff8881e52cff80: fe fe fe fe f1 f1 f1 f1 00 f2 f2 f2 04 f3 f3 f3 ffff8881e52d0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== PANIC: double fault, error_code: 0x0 CPU: 1 PID: 2060 Comm: syz.3.437 Tainted: G B 5.4.290-syzkaller-00002-g41adfeb3d639 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:perf_trace_x86_exceptions+0x18/0x410 arch/x86/include/asm/trace/exceptions.h:14 Code: 6e cc 0a 00 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec c0 00 00 00 <48> 89 4c 24 30 48 89 54 24 28 48 89 74 24 18 48 89 7c 24 08 65 48 RSP: 0018:ffff8881e4d65fc0 EFLAGS: 00010086 RAX: 1ffff1103ceb0453 RBX: ffff8881e4d660f8 RCX: 0000000000000000 RDX: ffff8881e4d660f8 RSI: ffffe8ffffd0b300 RDI: ffffffff85eb6be0 RBP: ffff8881e4d660a8 R08: ffffffff8130280e R09: fffffbfff0c989ae R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881e7582290 R13: dffffc0000000000 R14: ffffe8ffffd0b300 R15: 0000000000000000 FS: 00007ff2f65a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8881e4d65fb8 CR3: 00000001f5c2a000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: <#DF> ---------------- Code disassembly (best guess): 0: 6e outsb %ds:(%rsi),(%dx) 1: cc int3 2: 0a 00 or (%rax),%al 4: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) b: 00 00 00 00 f: 0f 1f 00 nopl (%rax) 12: 55 push %rbp 13: 48 89 e5 mov %rsp,%rbp 16: 41 57 push %r15 18: 41 56 push %r14 1a: 41 55 push %r13 1c: 41 54 push %r12 1e: 53 push %rbx 1f: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp 23: 48 81 ec c0 00 00 00 sub $0xc0,%rsp * 2a: 48 89 4c 24 30 mov %rcx,0x30(%rsp) <-- trapping instruction 2f: 48 89 54 24 28 mov %rdx,0x28(%rsp) 34: 48 89 74 24 18 mov %rsi,0x18(%rsp) 39: 48 89 7c 24 08 mov %rdi,0x8(%rsp) 3e: 65 gs 3f: 48 rex.W