------------[ cut here ]------------ kernel BUG at mm/memory.c:2163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 16349 Comm: syz-executor.0 Not tainted 6.3.0-rc6-syzkaller #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 d7 57 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 33 54 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b4 57 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a3 57 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000b987710 EFLAGS: 00010216 RAX: 0000000000016713 RBX: 1ffff92001730ee4 RCX: ffffc90003f42000 RDX: 0000000000040000 RSI: ffffffff81c0824c RDI: 0000000000000007 RBP: ffff88801df9dee0 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000000 R12: 00000000200b9000 R13: 00000000001466fc R14: 000000000c140473 R15: 0000000000000020 FS: 0000000000000000(0000) GS:ffff8880b9900000(0063) knlGS:00000000f7f1fb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7f28db0 CR3: 0000000079737000 CR4: 00000000003526e0 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:4155 do_read_fault mm/memory.c:4506 [inline] do_fault mm/memory.c:4635 [inline] handle_pte_fault mm/memory.c:4923 [inline] __handle_mm_fault+0x24f3/0x3e60 mm/memory.c:5065 handle_mm_fault+0x2ba/0x9c0 mm/memory.c:5211 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_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:166 Code: d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 2c 66 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 0f 01 cb 83 fa 40 72 34 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 06 66 0f 1f 44 00 00 83 f8 12 74 RSP: 0018:ffffc9000b987b38 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000000001000 RCX: 0000000000001000 RDX: 0000000000001000 RSI: 00000000200b9000 RDI: ffff88804207a000 RBP: ffff88804207a000 R08: 0000000000000001 R09: ffff88804207afff R10: ffffed100840f5ff R11: 0000000000000000 R12: 00007fffffffe000 R13: 00000000200b9000 R14: dffffc0000000000 R15: 00000000200b9000 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_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f24579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f1f5cc EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000000 RDX: 00000000fffffd2c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x24c/0x460 mm/memory.c:2163 Code: 0f 0b e8 d7 57 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 33 54 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b4 57 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a3 57 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000b987710 EFLAGS: 00010216 RAX: 0000000000016713 RBX: 1ffff92001730ee4 RCX: ffffc90003f42000 RDX: 0000000000040000 RSI: ffffffff81c0824c RDI: 0000000000000007 RBP: ffff88801df9dee0 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000000 R12: 00000000200b9000 R13: 00000000001466fc R14: 000000000c140473 R15: 0000000000000020 FS: 0000000000000000(0000) GS:ffff8880b9900000(0063) knlGS:00000000f7f1fb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002001a000 CR3: 0000000079737000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d1 f3 shl %ebx 2: a4 movsb %ds:(%rsi),%es:(%rdi) 3: 31 c0 xor %eax,%eax 5: 0f 01 ca clac 8: c3 retq 9: 8d 0c ca lea (%rdx,%rcx,8),%ecx c: 89 ca mov %ecx,%edx e: eb 2c jmp 0x3c 10: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 17: 00 00 00 00 1b: 90 nop 1c: f3 0f 1e fa endbr64 20: 0f 01 cb stac 23: 83 fa 40 cmp $0x40,%edx 26: 72 34 jb 0x5c 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 retq 32: 89 ca mov %ecx,%edx 34: eb 06 jmp 0x3c 36: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 3c: 83 f8 12 cmp $0x12,%eax 3f: 74 .byte 0x74