------------[ cut here ]------------ kernel BUG at mm/memory.c:2220! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 31866 Comm: syz-executor.5 Not tainted 6.1.45-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:vmf_insert_pfn_prot+0x428/0x440 mm/memory.c:2220 Code: ff 89 de e8 1a ae be ff 45 84 e4 74 2b e8 b0 ab be ff e9 54 fd ff ff e8 a6 ab be ff 0f 0b e8 9f ab be ff 0f 0b e8 98 ab be ff <0f> 0b e8 e1 82 b9 08 e8 8c ab be ff 0f 0b e8 85 ab be ff 0f 0b 0f RSP: 0018:ffffc900037976e0 EFLAGS: 00010283 RAX: ffffffff81cb5268 RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc900059aa000 RSI: 000000000000053a RDI: 000000000000053b RBP: ffffc900037977a0 R08: ffffffff81cb4f40 R09: ffffffff81cb4f14 R10: 0000000000000002 R11: ffff88807d9b5940 R12: 000000000c040471 R13: ffff888074d805e8 R14: ffffc90003797720 R15: 000000000001f263 FS: 00007fbcc06fa6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31621000 CR3: 0000000019772000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1d9/0x230 drivers/gpu/drm/drm_gem_shmem_helper.c:562 __do_fault+0x136/0x4f0 mm/memory.c:4231 do_read_fault mm/memory.c:4582 [inline] do_fault mm/memory.c:4711 [inline] handle_pte_fault mm/memory.c:4983 [inline] __handle_mm_fault mm/memory.c:5125 [inline] handle_mm_fault+0x3407/0x5330 mm/memory.c:5246 do_user_addr_fault arch/x86/mm/fault.c:1380 [inline] handle_page_fault arch/x86/mm/fault.c:1471 [inline] exc_page_fault+0x26f/0x660 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166 Code: 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 cb 83 fa 40 72 38 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 0a 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90003797c00 EFLAGS: 00050202 RAX: ffffffff8434ef01 RBX: 00007fffffffdfff RCX: 0000000000001001 RDX: 0000000000001001 RSI: 0000000020000440 RDI: ffffc90004021000 RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffff52000804401 R10: 0000000000000001 R11: dffffc0000000001 R12: 0000000000001001 R13: ffff88801f5f6470 R14: ffffc90004021000 R15: 0000000020000440 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+0xf3/0x170 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:161 [inline] fb_write_screen_buffer drivers/gpu/drm/drm_fb_helper.c:2320 [inline] drm_fbdev_fb_write+0x29d/0xb80 drivers/gpu/drm/drm_fb_helper.c:2359 vfs_write+0x2d9/0xba0 fs/read_write.c:582 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbcbfa7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbcc06fa0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcbfb9bf80 RCX: 00007fbcbfa7cae9 RDX: 0000000000001001 RSI: 0000000020000440 RDI: 0000000000000005 RBP: 00007fbcbfac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fbcbfb9bf80 R15: 00007ffe6c0a6a48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x428/0x440 mm/memory.c:2220 Code: ff 89 de e8 1a ae be ff 45 84 e4 74 2b e8 b0 ab be ff e9 54 fd ff ff e8 a6 ab be ff 0f 0b e8 9f ab be ff 0f 0b e8 98 ab be ff <0f> 0b e8 e1 82 b9 08 e8 8c ab be ff 0f 0b e8 85 ab be ff 0f 0b 0f RSP: 0018:ffffc900037976e0 EFLAGS: 00010283 RAX: ffffffff81cb5268 RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc900059aa000 RSI: 000000000000053a RDI: 000000000000053b RBP: ffffc900037977a0 R08: ffffffff81cb4f40 R09: ffffffff81cb4f14 R10: 0000000000000002 R11: ffff88807d9b5940 R12: 000000000c040471 R13: ffff888074d805e8 R14: ffffc90003797720 R15: 000000000001f263 FS: 00007fbcc06fa6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31621000 CR3: 0000000019772000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff c9 dec %ecx 2: 75 f2 jne 0xfffffff6 4: 89 d1 mov %edx,%ecx 6: c1 e9 03 shr $0x3,%ecx 9: 83 e2 07 and $0x7,%edx c: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) f: 89 d1 mov %edx,%ecx 11: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 13: 31 c0 xor %eax,%eax 15: 0f 01 ca clac 18: c3 ret 19: 8d 0c ca lea (%rdx,%rcx,8),%ecx 1c: 89 ca mov %ecx,%edx 1e: eb 20 jmp 0x40 20: 0f 01 cb stac 23: 83 fa 40 cmp $0x40,%edx 26: 72 38 jb 0x60 28: 89 d1 mov %edx,%ecx * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 31 c0 xor %eax,%eax 2e: 0f 01 ca clac 31: c3 ret 32: 89 ca mov %ecx,%edx 34: eb 0a jmp 0x40 36: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 3d: 00 00 00