------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1529! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 2 PID: 20409 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00250-ga962b54e162c #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:page_needs_cow_for_dma include/linux/mm.h:1529 [inline] RIP: 0010:page_try_dup_anon_rmap include/linux/rmap.h:253 [inline] RIP: 0010:copy_hugetlb_page_range+0x1f16/0x2590 mm/hugetlb.c:4846 Code: d0 2c ee ff 0f 0b e8 d9 d9 b7 ff 83 8c 24 00 01 00 00 01 48 8d bc 24 e0 00 00 00 e8 84 14 02 00 e9 5d ef ff ff e8 ba d9 b7 ff <0f> 0b e8 b3 d9 b7 ff 0f 0b e8 ac d9 b7 ff 49 c1 e4 0e 48 8b 84 24 RSP: 0018:ffffc90024a175d0 EFLAGS: 00010206 RAX: 0000000000009da0 RBX: 0000000000000001 RCX: ffffc90003731000 RDX: 0000000000040000 RSI: ffffffff81c42e66 RDI: 0000000000000005 RBP: ffffea00008c0000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff200d713 R12: ffffea00008c0008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 0000000000000000(0000) GS:ffff88802ca00000(0063) knlGS:00000000f7f89b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 000000004e8d7000 CR4: 0000000000152ee0 Call Trace: copy_page_range+0x2044/0x37d0 mm/memory.c:1288 dup_mmap kernel/fork.c:699 [inline] dup_mm+0xa99/0x13a0 kernel/fork.c:1525 copy_mm kernel/fork.c:1577 [inline] copy_process+0x3ca6/0x7090 kernel/fork.c:2254 kernel_clone+0xe7/0xab0 kernel/fork.c:2671 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2963 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f8e549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f8949c EFLAGS: 00000286 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00000000f7f894d0 RCX: 0000000000000058 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:page_needs_cow_for_dma include/linux/mm.h:1529 [inline] RIP: 0010:page_try_dup_anon_rmap include/linux/rmap.h:253 [inline] RIP: 0010:copy_hugetlb_page_range+0x1f16/0x2590 mm/hugetlb.c:4846 Code: d0 2c ee ff 0f 0b e8 d9 d9 b7 ff 83 8c 24 00 01 00 00 01 48 8d bc 24 e0 00 00 00 e8 84 14 02 00 e9 5d ef ff ff e8 ba d9 b7 ff <0f> 0b e8 b3 d9 b7 ff 0f 0b e8 ac d9 b7 ff 49 c1 e4 0e 48 8b 84 24 RSP: 0018:ffffc90024a175d0 EFLAGS: 00010206 RAX: 0000000000009da0 RBX: 0000000000000001 RCX: ffffc90003731000 RDX: 0000000000040000 RSI: ffffffff81c42e66 RDI: 0000000000000005 RBP: ffffea00008c0000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff200d713 R12: ffffea00008c0008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 0000000000000000(0000) GS:ffff88802ca00000(0063) knlGS:00000000f7f89b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 000000004e8d7000 CR4: 0000000000152ee0 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi