------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1529! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3605 Comm: syz-executor195 Not tainted 6.0.0-syzkaller-00372-ga5088ee7251e #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: 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:ffffc9000373f5f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88802517bb00 RSI: ffffffff81c43b36 RDI: 0000000000000005 RBP: ffffea0002d60000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0002d60008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 000055555653a300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3d404eafb8 CR3: 000000007d0bf000 CR4: 0000000000350ee0 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_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:0x7f3d404a3c39 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:00007ffce6ecf5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3d404a3c39 RDX: 00007f3d404a3c39 RSI: 0000000000000058 RDI: 00007ffce6ecf5b0 RBP: 00007f3d40467d80 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffce6ecf5b0 R11: 0000000000000246 R12: 00007f3d40467e10 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:ffffc9000373f5f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88802517bb00 RSI: ffffffff81c43b36 RDI: 0000000000000005 RBP: ffffea0002d60000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0002d60008 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000020000000 FS: 000055555653a300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3d404eafb8 CR3: 000000007d0bf000 CR4: 0000000000350ee0