------------[ cut here ]------------ kernel BUG at mm/memory.c:2217! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5654 Comm: syz-executor.2 Not tainted 6.7.0-rc8-syzkaller-00174-g95c8a35f1c01 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:vmf_insert_pfn_prot+0x24a/0x430 mm/memory.c:2217 Code: 0b e8 2a 68 bd ff 49 89 ef bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 a6 63 bd ff 49 83 ff 20 0f 85 a8 fe ff ff e8 07 68 bd ff 90 <0f> 0b 48 bd ff ff ff ff ff ff 0f 00 e8 f5 67 bd ff 4c 89 f6 48 89 RSP: 0018:ffffc90003117758 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88802a388300 RCX: ffffffff81ca0a7a RDX: ffff888017b49dc0 RSI: ffffffff81ca0a89 RDI: 0000000000000007 RBP: 000000000c140477 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000029 R12: 0000000020ffc000 R13: 1ffff92000622eec R14: 000000000007e2a1 R15: 0000000000000020 FS: 00007f5ec4d936c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 000000007b150000 CR4: 0000000000350ef0 Call Trace: drm_gem_shmem_fault+0x207/0x400 drivers/gpu/drm/drm_gem_shmem_helper.c:531 __do_fault+0x107/0x600 mm/memory.c:4266 do_read_fault mm/memory.c:4629 [inline] do_fault mm/memory.c:4763 [inline] do_pte_missing mm/memory.c:3731 [inline] handle_pte_fault mm/memory.c:5039 [inline] __handle_mm_fault+0x2683/0x3d70 mm/memory.c:5180 handle_mm_fault+0x47a/0xa10 mm/memory.c:5345 do_user_addr_fault+0x3f8/0x1030 arch/x86/mm/fault.c:1415 handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x5d/0xc0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x57/0x70 arch/x86/lib/copy_user_64.S:80 Code: 00 66 90 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 eb 01 c3 48 89 c8 48 c1 e9 03 83 e0 07 48 a5 89 c1 85 c9 75 b3 c3 48 8d 0c c8 eb ac 66 0f 1f 84 00 00 RSP: 0018:ffffc90003117b50 EFLAGS: 00050246 RAX: 0000000000000000 RBX: 0000000020ffc000 RCX: 0000000000000200 RDX: 0000000000000000 RSI: 0000000020ffc000 RDI: ffff88801d60a000 RBP: 0000000000001000 R08: 0000000000000001 R09: ffffed1003ac15ff R10: ffff88801d60afff R11: 0000000000000000 R12: 0000000020ffd000 R13: ffff88801d60a000 R14: 0000000000000000 R15: 0000000020ffc000 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+0xc2/0xf0 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:183 [inline] snd_rawmidi_kernel_write1+0x360/0x860 sound/core/rawmidi.c:1618 snd_rawmidi_write+0x26e/0xc00 sound/core/rawmidi.c:1687 vfs_write+0x2a4/0xdf0 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5ec407cae9 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:00007f5ec4d930c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5ec419bf80 RCX: 00007f5ec407cae9 RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007f5ec40c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5ec419bf80 R15: 00007ffc0795d928 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x24a/0x430 mm/memory.c:2217 Code: 0b e8 2a 68 bd ff 49 89 ef bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 a6 63 bd ff 49 83 ff 20 0f 85 a8 fe ff ff e8 07 68 bd ff 90 <0f> 0b 48 bd ff ff ff ff ff ff 0f 00 e8 f5 67 bd ff 4c 89 f6 48 89 RSP: 0018:ffffc90003117758 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88802a388300 RCX: ffffffff81ca0a7a RDX: ffff888017b49dc0 RSI: ffffffff81ca0a89 RDI: 0000000000000007 RBP: 000000000c140477 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000029 R12: 0000000020ffc000 R13: 1ffff92000622eec R14: 000000000007e2a1 R15: 0000000000000020 FS: 00007f5ec4d936c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe74e9b4440 CR3: 000000007b150000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 00 66 90 add %ah,-0x70(%rsi) 3: 48 8b 06 mov (%rsi),%rax 6: 48 89 07 mov %rax,(%rdi) 9: 48 83 c6 08 add $0x8,%rsi d: 48 83 c7 08 add $0x8,%rdi 11: 83 e9 08 sub $0x8,%ecx 14: 74 df je 0xfffffff5 16: 83 f9 08 cmp $0x8,%ecx 19: 73 e8 jae 0x3 1b: eb c9 jmp 0xffffffe6 1d: eb 01 jmp 0x20 1f: c3 ret 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 b3 jne 0xffffffe6 33: c3 ret 34: 48 8d 0c c8 lea (%rax,%rcx,8),%rcx 38: eb ac jmp 0xffffffe6 3a: 66 data16 3b: 0f .byte 0xf 3c: 1f (bad) 3d: 84 00 test %al,(%rax)