------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1529! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 865 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-09413-g4899a36f91a9 #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+0x905/0x10f0 include/linux/rmap.h:253 Code: e6 ff 0f 00 00 31 ff e8 d9 97 b1 ff 4c 89 e0 48 25 ff 0f 00 00 0f 84 38 01 00 00 e8 05 93 b1 ff e9 e6 02 00 00 e8 fb 92 b1 ff <0f> 0b 4c 89 e6 48 81 e6 ff 0f 00 00 31 ff e8 a8 97 b1 ff 4c 89 e0 RSP: 0018:ffffc900122573f0 EFLAGS: 00010287 RAX: ffffffff81d6d045 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000a5a2000 RSI: 00000000000007e1 RDI: 00000000000007e2 RBP: 1ffff110050c19d6 R08: ffffffff81d6cb35 R09: fffff940003f4001 R10: fffff940003f4001 R11: 1ffffd40003f4000 R12: ffffea0001fa0000 R13: dffffc0000000000 R14: 1ffffd40003f4001 R15: ffff88802860ceb0 FS: 00007f37af5d9700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f811d053ff8 CR3: 0000000027813000 CR4: 00000000003506e0 Call Trace: copy_hugetlb_page_range+0xcd0/0x1b20 mm/hugetlb.c:4846 copy_page_range+0x391/0x7f0 mm/memory.c:1288 dup_mmap+0x9e9/0xfc0 kernel/fork.c:699 dup_mm+0x8c/0x310 kernel/fork.c:1525 copy_mm+0x102/0x190 kernel/fork.c:1577 copy_process+0x1976/0x3f60 kernel/fork.c:2254 kernel_clone+0x22f/0x7a0 kernel/fork.c:2671 __do_sys_clone3 kernel/fork.c:2963 [inline] __se_sys_clone3+0x372/0x410 kernel/fork.c:2947 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f37ae48a5a9 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:00007f37af5d9038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f37ae5abf80 RCX: 00007f37ae48a5a9 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f37af5d9050 RBP: 00007f37ae4e5580 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f37af5d9050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffec21373cf R14: 00007f37af5d9300 R15: 0000000000022000 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+0x905/0x10f0 include/linux/rmap.h:253 Code: e6 ff 0f 00 00 31 ff e8 d9 97 b1 ff 4c 89 e0 48 25 ff 0f 00 00 0f 84 38 01 00 00 e8 05 93 b1 ff e9 e6 02 00 00 e8 fb 92 b1 ff <0f> 0b 4c 89 e6 48 81 e6 ff 0f 00 00 31 ff e8 a8 97 b1 ff 4c 89 e0 RSP: 0018:ffffc900122573f0 EFLAGS: 00010287 RAX: ffffffff81d6d045 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000a5a2000 RSI: 00000000000007e1 RDI: 00000000000007e2 RBP: 1ffff110050c19d6 R08: ffffffff81d6cb35 R09: fffff940003f4001 R10: fffff940003f4001 R11: 1ffffd40003f4000 R12: ffffea0001fa0000 R13: dffffc0000000000 R14: 1ffffd40003f4001 R15: ffff88802860ceb0 FS: 00007f37af5d9700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f811d053ff8 CR3: 0000000027813000 CR4: 00000000003506e0