------------[ cut here ]------------ kernel BUG at mm/memory.c:2237! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5162 Comm: syz-executor.3 Not tainted 6.8.0-rc7-syzkaller-00238-g005f6f34bd47 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2237 Code: 41 5f 5d c3 cc cc cc cc e8 9f b6 b8 ff b8 02 00 00 00 eb c0 e8 93 b6 b8 ff 90 0f 0b e8 8b b6 b8 ff 90 0f 0b e8 83 b6 b8 ff 90 <0f> 0b e8 1b a6 83 09 e8 76 b6 b8 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90004ac7280 EFLAGS: 00010293 RAX: ffffffff81dab77d RBX: 0000000000000420 RCX: ffff88807c565940 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc90004ac7340 R08: ffffffff81dab5c1 R09: ffffffff81dab595 R10: 0000000000000002 R11: ffff88807c565940 R12: ffffc90004ac72c0 R13: ffff88801e8d2700 R14: 1ffff92000958e54 R15: 000000000c140477 FS: 00007f4e4a8056c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 000000007b0a6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x201/0x3a0 drivers/gpu/drm/drm_gem_shmem_helper.c:531 __do_fault+0x135/0x460 mm/memory.c:4396 do_read_fault mm/memory.c:4758 [inline] do_fault mm/memory.c:4888 [inline] do_pte_missing mm/memory.c:3745 [inline] handle_pte_fault mm/memory.c:5164 [inline] __handle_mm_fault+0x49e6/0x72d0 mm/memory.c:5305 handle_mm_fault+0x27e/0x770 mm/memory.c:5470 do_user_addr_fault arch/x86/mm/fault.c:1406 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc90004ac79c0 EFLAGS: 00050206 RAX: ffffffff84972d01 RBX: 0000000020ffd000 RCX: 0000000000001000 RDX: 0000000000000001 RSI: 0000000020ffc000 RDI: ffff88807b6b2000 RBP: ffff88802a544810 R08: ffff88807b6b2fff R09: 1ffff1100f6d65ff R10: dffffc0000000000 R11: ffffed100f6d6600 R12: 0000000020ffc000 R13: 0000000000000000 R14: ffff88807b6b2000 R15: 0000000000001000 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline] _copy_from_user+0x8c/0xe0 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:183 [inline] snd_rawmidi_kernel_write1+0x376/0x5f0 sound/core/rawmidi.c:1618 snd_rawmidi_write+0x5b8/0xb80 sound/core/rawmidi.c:1687 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f4e49a7dda9 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:00007f4e4a8050c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4e49babf80 RCX: 00007f4e49a7dda9 RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007f4e49aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4e49babf80 R15: 00007ffc205b60a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2237 Code: 41 5f 5d c3 cc cc cc cc e8 9f b6 b8 ff b8 02 00 00 00 eb c0 e8 93 b6 b8 ff 90 0f 0b e8 8b b6 b8 ff 90 0f 0b e8 83 b6 b8 ff 90 <0f> 0b e8 1b a6 83 09 e8 76 b6 b8 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90004ac7280 EFLAGS: 00010293 RAX: ffffffff81dab77d RBX: 0000000000000420 RCX: ffff88807c565940 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc90004ac7340 R08: ffffffff81dab5c1 R09: ffffffff81dab595 R10: 0000000000000002 R11: ffff88807c565940 R12: ffffc90004ac72c0 R13: ffff88801e8d2700 R14: 1ffff92000958e54 R15: 000000000c140477 FS: 00007f4e4a8056c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555637a788 CR3: 000000007b0a6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 75 f1 jne 0xfffffff3 2: c3 ret 3: cc int3 4: cc int3 5: cc int3 6: cc int3 7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) e: 00 00 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 df je 0x2 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c9 jmp 0xfffffff3 * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: cc int3 2e: cc int3 2f: cc int3 30: cc int3 31: 48 89 c8 mov %rcx,%rax 34: 48 c1 e9 03 shr $0x3,%rcx 38: 83 e0 07 and $0x7,%eax 3b: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) 3e: 89 c1 mov %eax,%ecx