------------[ cut here ]------------ kernel BUG at mm/memory.c:2163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 14836 Comm: syz-executor.2 Not tainted 6.3.0-rc4-syzkaller-00243-g6ab608fe852b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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:ffffc9000493f730 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 1ffff92000927ee8 RCX: ffffc9000d63a000 RDX: 0000000000040000 RSI: ffffffff81c07f1c RDI: 0000000000000007 RBP: ffff88805eafca80 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000047 R12: 0000000020ffc000 R13: 000000000007c065 R14: 000000000c040471 R15: 0000000000000020 FS: 00007f8aa62ae700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 00000000a25f4000 CR4: 0000000000350ee0 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_generic_string+0x30/0x50 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 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 2c 66 66 RSP: 0018:ffffc9000493fb58 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000000001000 RCX: 0000000000000200 RDX: 0000000000000000 RSI: 0000000020ffc000 RDI: ffff888027bee000 RBP: ffff888027bee000 R08: 0000000000000001 R09: ffff888027beefff R10: ffffed1004f7ddff R11: 0000000000000000 R12: 00007fffffffe000 R13: 0000000020ffc000 R14: dffffc0000000000 R15: 0000000020ffc000 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] snd_rawmidi_kernel_write1+0x355/0x850 sound/core/rawmidi.c:1547 snd_rawmidi_write+0x277/0xbb0 sound/core/rawmidi.c:1616 vfs_write+0x2db/0xe10 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 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:0x7f8aa548c0f9 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:00007f8aa62ae168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f8aa55abf80 RCX: 00007f8aa548c0f9 RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000008 RBP: 00007f8aa54e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd9b3bac0f R14: 00007f8aa62ae300 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:ffffc9000493f730 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 1ffff92000927ee8 RCX: ffffc9000d63a000 RDX: 0000000000040000 RSI: ffffffff81c07f1c RDI: 0000000000000007 RBP: ffff88805eafca80 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000047 R12: 0000000020ffc000 R13: 000000000007c065 R14: 000000000c040471 R15: 0000000000000020 FS: 00007f8aa62ae700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 00000000a25f4000 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 2c jmp 0x6a 3e: 66 data16 3f: 66 data16