------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1529! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3610 Comm: syz-executor407 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #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: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: 20 2c ee ff 0f 0b e8 49 d9 b6 ff 83 8c 24 00 01 00 00 01 48 8d bc 24 e0 00 00 00 e8 14 15 02 00 e9 5d ef ff ff e8 2a d9 b6 ff <0f> 0b e8 23 d9 b6 ff 0f 0b e8 1c d9 b6 ff 49 c1 e4 0e 48 8b 84 24 RSP: 0018:ffffc90003c8f5f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888025235880 RSI: ffffffff81c47116 RDI: 0000000000000005 RBP: ffffea0001170000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c07d R12: ffffea0001170008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 0000555557369300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003200 CR3: 000000001d225000 CR4: 0000000000350ef0 Call Trace: copy_page_range+0x2145/0x38e0 mm/memory.c:1288 dup_mmap kernel/fork.c:699 [inline] dup_mm+0xa99/0x13a0 kernel/fork.c:1524 copy_mm kernel/fork.c:1576 [inline] copy_process+0x3bd3/0x7110 kernel/fork.c:2254 kernel_clone+0xe7/0x8f0 kernel/fork.c:2672 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2964 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:0x7f2d19230c39 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff4c74e768 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2d19230c39 RDX: 00007f2d19230c39 RSI: 0000000000000058 RDI: 00007fff4c74e770 RBP: 00007f2d191f4d80 R08: 0000000000000000 R09: 0000000000000000 R10: 00007fff4c74e770 R11: 0000000000000246 R12: 00007f2d191f4e10 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: 20 2c ee ff 0f 0b e8 49 d9 b6 ff 83 8c 24 00 01 00 00 01 48 8d bc 24 e0 00 00 00 e8 14 15 02 00 e9 5d ef ff ff e8 2a d9 b6 ff <0f> 0b e8 23 d9 b6 ff 0f 0b e8 1c d9 b6 ff 49 c1 e4 0e 48 8b 84 24 RSP: 0018:ffffc90003c8f5f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888025235880 RSI: ffffffff81c47116 RDI: 0000000000000005 RBP: ffffea0001170000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000008c07d R12: ffffea0001170008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 0000555557369300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003200 CR3: 000000001d225000 CR4: 0000000000350ef0