------------[ cut here ]------------
kernel BUG at mm/userfaultfd.c:642!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 14614 Comm: syz-executor.1 Not tainted 5.19.0-rc1-next-20220608-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__mcopy_atomic mm/userfaultfd.c:642 [inline]
RIP: 0010:mcopy_continue+0x80f/0x1360 mm/userfaultfd.c:699
Code: a8 ff 49 83 fd fe 0f 85 bd fd ff ff e8 ba c8 a8 ff 0f 1f 44 00 00 e8 b0 c8 a8 ff e8 ab c8 a8 ff 48 8b 7c 24 20 e8 31 75 8b ff <0f> 0b e8 9a c8 a8 ff 0f 0b e8 93 c8 a8 ff 4d 89 ee 31 ff 41 81 e6
RSP: 0018:ffffc90015dafb70 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8880261c3438 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88801c838f68
RBP: 00000000206a3000 R08: 0000000000000001 R09: ffff88801c838f6f
R10: ffffed10039071ed R11: 0000000000000001 R12: 0000000000000000
R13: fffffffffffffffe R14: 00000000fffffffe R15: ffff88801c838e80
FS:  00007f0199966700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2db22000 CR3: 00000000576e5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 userfaultfd_continue fs/userfaultfd.c:1893 [inline]
 userfaultfd_ioctl+0x1818/0x41f0 fs/userfaultfd.c:2017
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 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+0x46/0xb0
RIP: 0033:0x7f0198889109
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:00007f0199966168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f019899bf60 RCX: 00007f0198889109
RDX: 0000000020000400 RSI: 00000000c020aa07 RDI: 0000000000000003
RBP: 00007f01988e30ad R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc474b5a0f R14: 00007f0199966300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__mcopy_atomic mm/userfaultfd.c:642 [inline]
RIP: 0010:mcopy_continue+0x80f/0x1360 mm/userfaultfd.c:699
Code: a8 ff 49 83 fd fe 0f 85 bd fd ff ff e8 ba c8 a8 ff 0f 1f 44 00 00 e8 b0 c8 a8 ff e8 ab c8 a8 ff 48 8b 7c 24 20 e8 31 75 8b ff <0f> 0b e8 9a c8 a8 ff 0f 0b e8 93 c8 a8 ff 4d 89 ee 31 ff 41 81 e6
RSP: 0018:ffffc90015dafb70 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8880261c3438 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88801c838f68
RBP: 00000000206a3000 R08: 0000000000000001 R09: ffff88801c838f6f
R10: ffffed10039071ed R11: 0000000000000001 R12: 0000000000000000
R13: fffffffffffffffe R14: 00000000fffffffe R15: ffff88801c838e80
FS:  00007f0199966700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f506bb9d090 CR3: 00000000576e5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400