------------[ cut here ]------------ kernel BUG at mm/memory.c:2237! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 5733 Comm: syz-executor.4 Not tainted 6.8.0-rc6-syzkaller-g5ad3cb0ed525 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2237 Code: 41 5f 5d e9 34 bd 94 09 e8 df d8 b5 ff b8 02 00 00 00 eb c0 e8 d3 d8 b5 ff 90 0f 0b e8 cb d8 b5 ff 90 0f 0b e8 c3 d8 b5 ff 90 <0f> 0b e8 0b b9 89 09 e8 b6 d8 b5 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc9000311f280 EFLAGS: 00010293 RAX: ffffffff81dd948d RBX: 0000000000000420 RCX: ffff8880292e8000 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc9000311f340 R08: ffffffff81dd92d1 R09: ffffffff81dd92a5 R10: 0000000000000002 R11: ffff8880292e8000 R12: ffffc9000311f2c0 R13: ffff888017fd1a00 R14: 1ffff92000623e54 R15: 000000000c140477 FS: 00007fd34e6026c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 000000001ec1a000 CR4: 0000000000350ef0 Call Trace: drm_gem_shmem_fault+0x201/0x3a0 drivers/gpu/drm/drm_gem_shmem_helper.c:531 __do_fault+0x137/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+0x3c1/0x8a0 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+0x5b/0x70 arch/x86/lib/copy_user_64.S:80 Code: 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 eb 05 e9 5f e1 0e 00 48 89 c8 48 c1 e9 03 83 e0 07 48 a5 89 c1 85 c9 75 af e9 47 e1 0e 00 48 8d 0c c8 eb a4 90 90 RSP: 0018:ffffc9000311f9c0 EFLAGS: 00050246 RAX: 0000000000000000 RBX: 0000000020ffd000 RCX: 0000000000000200 RDX: 0000000000000001 RSI: 0000000020ffc000 RDI: ffff888073bd6000 RBP: ffff888073a98010 R08: ffff888073bd6fff R09: 1ffff1100e77adff R10: dffffc0000000000 R11: ffffed100e77ae00 R12: 0000000020ffc000 R13: 0000000000000000 R14: ffff888073bd6000 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+0x2a6/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fd34d87cae9 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:00007fd34e6020c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd34d99bf80 RCX: 00007fd34d87cae9 RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007fd34d8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd34d99bf80 R15: 00007fff198c3778 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2237 Code: 41 5f 5d e9 34 bd 94 09 e8 df d8 b5 ff b8 02 00 00 00 eb c0 e8 d3 d8 b5 ff 90 0f 0b e8 cb d8 b5 ff 90 0f 0b e8 c3 d8 b5 ff 90 <0f> 0b e8 0b b9 89 09 e8 b6 d8 b5 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc9000311f280 EFLAGS: 00010293 RAX: ffffffff81dd948d RBX: 0000000000000420 RCX: ffff8880292e8000 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc9000311f340 R08: ffffffff81dd92d1 R09: ffffffff81dd92a5 R10: 0000000000000002 R11: ffff8880292e8000 R12: ffffc9000311f2c0 R13: ffff888017fd1a00 R14: 1ffff92000623e54 R15: 000000000c140477 FS: 00007fd34e6026c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 000000001ec1a000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 8b 06 mov (%rsi),%eax 2: 48 89 07 mov %rax,(%rdi) 5: 48 83 c6 08 add $0x8,%rsi 9: 48 83 c7 08 add $0x8,%rdi d: 83 e9 08 sub $0x8,%ecx 10: 74 df je 0xfffffff1 12: 83 f9 08 cmp $0x8,%ecx 15: 73 e8 jae 0xffffffff 17: eb c9 jmp 0xffffffe2 19: eb 05 jmp 0x20 1b: e9 5f e1 0e 00 jmp 0xee17f 20: 48 89 c8 mov %rcx,%rax 23: 48 c1 e9 03 shr $0x3,%rcx 27: 83 e0 07 and $0x7,%eax * 2a: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2d: 89 c1 mov %eax,%ecx 2f: 85 c9 test %ecx,%ecx 31: 75 af jne 0xffffffe2 33: e9 47 e1 0e 00 jmp 0xee17f 38: 48 8d 0c c8 lea (%rax,%rcx,8),%rcx 3c: eb a4 jmp 0xffffffe2 3e: 90 nop 3f: 90 nop