------------[ cut here ]------------ kernel BUG at mm/memory.c:2163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5386 Comm: syz-executor.4 Not tainted 6.3.0-rc5-syzkaller-00153-gaa318c48808c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:vmf_insert_pfn_prot+0x24c/0x460 mm/memory.c:2163 Code: 0f 0b e8 c7 58 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 23 55 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 a4 58 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 93 58 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000506f7a0 EFLAGS: 00010216 RAX: 0000000000000983 RBX: 1ffff92000a0def6 RCX: ffffc90005f3c000 RDX: 0000000000040000 RSI: ffffffff81c07f1c RDI: 0000000000000007 RBP: ffff888020e2ea80 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 1ffffffff2190588 R12: 0000000020000000 R13: 000000000001ce73 R14: 000000000ca40475 R15: 0000000000000020 FS: 00007f79eb7fe700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002013a030 CR3: 000000002b2fe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1e1/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:559 __do_fault+0x107/0x600 mm/memory.c:4141 do_read_fault mm/memory.c:4492 [inline] do_fault mm/memory.c:4621 [inline] handle_pte_fault mm/memory.c:4909 [inline] __handle_mm_fault+0x24f3/0x3e60 mm/memory.c:5051 handle_mm_fault+0x2ba/0x9c0 mm/memory.c:5197 do_user_addr_fault+0x475/0x1230 arch/x86/mm/fault.c:1407 handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_short_string+0xa/0x40 arch/x86/lib/copy_user_64.S:232 Code: 83 f8 12 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 0f 1f 80 00 00 00 00 89 d1 83 e2 07 c1 e9 03 74 12 <4c> 8b 06 4c 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 RSP: 0018:ffffc9000506fbc0 EFLAGS: 00050202 RAX: 0000000000000001 RBX: 0000000000000020 RCX: 0000000000000004 RDX: 0000000000000000 RSI: 0000000020000140 RDI: ffffc9000506fc38 RBP: ffffc9000506fc38 R08: 0000000000000001 R09: ffffc9000506fc57 R10: fffff52000a0df8a R11: 0000000000000000 R12: 00007fffffffefe0 R13: 0000000020000140 R14: 0000000020000140 R15: ffff888030640000 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+0x13e/0x180 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:161 [inline] copy_from_sockptr_offset include/linux/sockptr.h:48 [inline] copy_from_sockptr include/linux/sockptr.h:55 [inline] rds_get_mr+0x193/0x1e0 net/rds/rdma.c:363 rds_setsockopt+0x588/0xea0 net/rds/af_rds.c:448 __sys_setsockopt+0x2c6/0x5b0 net/socket.c:2271 __do_sys_setsockopt net/socket.c:2282 [inline] __se_sys_setsockopt net/socket.c:2279 [inline] __x64_sys_setsockopt+0xbe/0x160 net/socket.c:2279 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f79ecc8c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f79eb7fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f79ecdabf80 RCX: 00007f79ecc8c169 RDX: 0000000000000002 RSI: 0000000000000114 RDI: 0000000000000004 RBP: 00007f79ecce7ca1 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f79ececfb1f R14: 00007f79eb7fe300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x24c/0x460 mm/memory.c:2163 Code: 0f 0b e8 c7 58 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 23 55 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 a4 58 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 93 58 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000506f7a0 EFLAGS: 00010216 RAX: 0000000000000983 RBX: 1ffff92000a0def6 RCX: ffffc90005f3c000 RDX: 0000000000040000 RSI: ffffffff81c07f1c RDI: 0000000000000007 RBP: ffff888020e2ea80 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 1ffffffff2190588 R12: 0000000020000000 R13: 000000000001ce73 R14: 000000000ca40475 R15: 0000000000000020 FS: 00007f79eb7fe700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000203ff000 CR3: 000000002b2fe000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 83 f8 12 cmp $0x12,%eax 3: 74 0a je 0xf 5: 89 d1 mov %edx,%ecx 7: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 9: 89 c8 mov %ecx,%eax b: 0f 01 ca clac e: c3 retq f: 89 d0 mov %edx,%eax 11: 0f 01 ca clac 14: c3 retq 15: 01 ca add %ecx,%edx 17: eb e7 jmp 0x0 19: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 20: 89 d1 mov %edx,%ecx 22: 83 e2 07 and $0x7,%edx 25: c1 e9 03 shr $0x3,%ecx 28: 74 12 je 0x3c * 2a: 4c 8b 06 mov (%rsi),%r8 <-- trapping instruction 2d: 4c 89 07 mov %r8,(%rdi) 30: 48 8d 76 08 lea 0x8(%rsi),%rsi 34: 48 8d 7f 08 lea 0x8(%rdi),%rdi 38: ff c9 dec %ecx 3a: 75 ee jne 0x2a 3c: 21 d2 and %edx,%edx 3e: 74 10 je 0x50