------------[ cut here ]------------
kernel BUG at mm/memory.c:2218!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3604 Comm: syz-executor135 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:vmf_insert_pfn_prot+0x248/0x460 mm/memory.c:2218
Code: 0f 0b e8 db 27 c6 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 a7 24 c6 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b8 27 c6 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a7 27 c6 ff 4d 21 ee 4c 89
RSP: 0018:ffffc90003c0f9d8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff92000781f3d RCX: 0000000000000000
RDX: ffff888026ed0000 RSI: ffffffff81b51f78 RDI: 0000000000000007
RBP: ffff8880758ef738 R08: 0000000000000007 R09: 0000000000000020
R10: 0000000000000020 R11: 0000000000000000 R12: 0000000020000000
R13: 000000000001d55e R14: 000000000c040471 R15: 0000000000000020
FS:  0000555555aa43c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 0000000074b79000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 drm_gem_shmem_fault+0x1e3/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:562
 __do_fault+0x10d/0x610 mm/memory.c:4173
 do_read_fault mm/memory.c:4524 [inline]
 do_fault mm/memory.c:4653 [inline]
 handle_pte_fault mm/memory.c:4917 [inline]
 __handle_mm_fault+0x2130/0x39b0 mm/memory.c:5059
 handle_mm_fault+0x1c8/0x780 mm/memory.c:5157
 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1407
 handle_page_fault arch/x86/mm/fault.c:1498 [inline]
 exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1554
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:copy_user_generic_string+0x2c/0x40 arch/x86/lib/copy_user_64.S:133
Code: cb 83 fa 08 72 27 89 f9 83 e1 07 74 15 83 e9 08 f7 d9 29 ca 8a 06 88 07 48 ff c6 48 ff c7 ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01
RSP: 0018:ffffc90003c0fdf0 EFLAGS: 00050246
RAX: 0000000000000001 RBX: 0000000000000018 RCX: 0000000000000003
RDX: 0000000000000000 RSI: 0000000020000000 RDI: ffffc90003c0fe58
RBP: ffffc90003c0fe58 R08: 0000000000000001 R09: ffffc90003c0fe6f
R10: fffff52000781fcd R11: 000000000008c07c R12: 00007fffffffefe8
R13: 0000000020000000 R14: 0000000000000007 R15: 0000000020000000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline]
 _copy_from_user+0x137/0x170 lib/usercopy.c:16
 copy_from_user include/linux/uaccess.h:152 [inline]
 copy_dev_ioctl fs/autofs/dev-ioctl.c:86 [inline]
 _autofs_dev_ioctl+0x104/0x7f0 fs/autofs/dev-ioctl.c:620
 autofs_dev_ioctl+0x17/0x20 fs/autofs/dev-ioctl.c:693
 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+0x63/0xcd
RIP: 0033:0x7f1b7d5a72f9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc0ba1a8d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffc0ba1a8e8 RCX: 00007f1b7d5a72f9
RDX: 0000000020000000 RSI: 00000000c0189378 RDI: 0000000000000003
RBP: 00007ffc0ba1a8e0 R08: 00007ffc0ba1a8e0 R09: 00007f1b7d56a1c0
R10: 00007ffc0ba1a8e0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vmf_insert_pfn_prot+0x248/0x460 mm/memory.c:2218
Code: 0f 0b e8 db 27 c6 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 a7 24 c6 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b8 27 c6 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a7 27 c6 ff 4d 21 ee 4c 89
RSP: 0018:ffffc90003c0f9d8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff92000781f3d RCX: 0000000000000000
RDX: ffff888026ed0000 RSI: ffffffff81b51f78 RDI: 0000000000000007
RBP: ffff8880758ef738 R08: 0000000000000007 R09: 0000000000000020
R10: 0000000000000020 R11: 0000000000000000 R12: 0000000020000000
R13: 000000000001d55e R14: 000000000c040471 R15: 0000000000000020
FS:  0000555555aa43c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f16c917aa70 CR3: 0000000074b79000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	cb                   	lret
   1:	83 fa 08             	cmp    $0x8,%edx
   4:	72 27                	jb     0x2d
   6:	89 f9                	mov    %edi,%ecx
   8:	83 e1 07             	and    $0x7,%ecx
   b:	74 15                	je     0x22
   d:	83 e9 08             	sub    $0x8,%ecx
  10:	f7 d9                	neg    %ecx
  12:	29 ca                	sub    %ecx,%edx
  14:	8a 06                	mov    (%rsi),%al
  16:	88 07                	mov    %al,(%rdi)
  18:	48 ff c6             	inc    %rsi
  1b:	48 ff c7             	inc    %rdi
  1e:	ff c9                	dec    %ecx
  20:	75 f2                	jne    0x14
  22:	89 d1                	mov    %edx,%ecx
  24:	c1 e9 03             	shr    $0x3,%ecx
  27:	83 e2 07             	and    $0x7,%edx
* 2a:	f3 48 a5             	rep movsq %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2d:	89 d1                	mov    %edx,%ecx
  2f:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi)
  31:	31 c0                	xor    %eax,%eax
  33:	0f 01 ca             	clac
  36:	c3                   	retq
  37:	8d 0c ca             	lea    (%rdx,%rcx,8),%ecx
  3a:	89 ca                	mov    %ecx,%edx
  3c:	eb 20                	jmp    0x5e
  3e:	0f                   	.byte 0xf
  3f:	01                   	.byte 0x1