------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1593! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9610 Comm: syz-executor.2 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:page_needs_cow_for_dma include/linux/mm.h:1593 [inline] RIP: 0010:page_try_dup_anon_rmap include/linux/rmap.h:253 [inline] RIP: 0010:copy_hugetlb_page_range+0x2067/0x2710 mm/hugetlb.c:4869 Code: ff 75 ee ff 0f 0b e8 a8 f0 b7 ff 83 8c 24 f8 00 00 00 01 48 8d bc 24 d8 00 00 00 e8 23 18 02 00 e9 fa ee ff ff e8 89 f0 b7 ff <0f> 0b e8 82 f0 b7 ff 48 8b 44 24 70 49 c1 e6 0e 48 bb 00 00 00 00 RSP: 0018:ffffc90015877540 EFLAGS: 00010212 RAX: 0000000000000ff3 RBX: 0000000000000001 RCX: ffffc9000dd91000 RDX: 0000000000040000 RSI: ffffffff81c4a377 RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c07e R12: ffffea00015d0008 R13: 0000000000000000 R14: ffffea00015d0000 R15: 0000000020000000 FS: 00007fd988d9a700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d1d1b0000 CR3: 000000007744d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: copy_page_range+0x222e/0x3a00 mm/memory.c:1288 dup_mmap+0xc10/0x10b0 kernel/fork.c:694 dup_mm+0x91/0x370 kernel/fork.c:1529 copy_mm kernel/fork.c:1578 [inline] copy_process+0x3bc6/0x71b0 kernel/fork.c:2256 kernel_clone+0xe7/0x980 kernel/fork.c:2676 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2975 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd987c8a5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd988d9a038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007fd987dabf80 RCX: 00007fd987c8a5a9 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007fd988d9a050 RBP: 00007fd987ce5580 R08: 0000000000000000 R09: 0000000000000058 R10: 00007fd988d9a050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffc7c409a2f R14: 00007fd988d9a300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:page_needs_cow_for_dma include/linux/mm.h:1593 [inline] RIP: 0010:page_try_dup_anon_rmap include/linux/rmap.h:253 [inline] RIP: 0010:copy_hugetlb_page_range+0x2067/0x2710 mm/hugetlb.c:4869 Code: ff 75 ee ff 0f 0b e8 a8 f0 b7 ff 83 8c 24 f8 00 00 00 01 48 8d bc 24 d8 00 00 00 e8 23 18 02 00 e9 fa ee ff ff e8 89 f0 b7 ff <0f> 0b e8 82 f0 b7 ff 48 8b 44 24 70 49 c1 e6 0e 48 bb 00 00 00 00 RSP: 0018:ffffc90015877540 EFLAGS: 00010212 RAX: 0000000000000ff3 RBX: 0000000000000001 RCX: ffffc9000dd91000 RDX: 0000000000040000 RSI: ffffffff81c4a377 RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c07e R12: ffffea00015d0008 R13: 0000000000000000 R14: ffffea00015d0000 R15: 0000000020000000 FS: 00007fd988d9a700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d1d1b0000 CR3: 000000007744d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400