------------[ cut here ]------------ kernel BUG at mm/memory.c:2216! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1817 Comm: syz-executor.5 Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:vmf_insert_pfn_prot+0x42f/0x450 mm/memory.c:2216 Code: e8 66 ad ba ff 45 84 e4 74 2f e8 cc aa ba ff e9 54 fd ff ff e8 c2 aa ba ff 90 0f 0b e8 ba aa ba ff 90 0f 0b e8 b2 aa ba ff 90 <0f> 0b e8 ca d2 42 09 e8 a5 aa ba ff 90 0f 0b e8 9d aa ba ff 90 0f RSP: 0018:ffffc900034af220 EFLAGS: 00010293 RAX: ffffffff81d3d3fe RBX: 0000000000000420 RCX: ffff88803cb23b80 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc900034af2d8 R08: ffffffff81d3d0d4 R09: ffffffff81d3d0a8 R10: 0000000000000002 R11: ffff88803cb23b80 R12: 000000000c140477 R13: ffff88803d85c700 R14: ffffc900034af260 R15: 0000000000017f77 FS: 00007f7e9ffdd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 000000002a2b7000 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+0x133/0x4e0 mm/memory.c:4265 do_read_fault mm/memory.c:4628 [inline] do_fault mm/memory.c:4762 [inline] do_pte_missing mm/memory.c:3730 [inline] handle_pte_fault mm/memory.c:5038 [inline] __handle_mm_fault mm/memory.c:5179 [inline] handle_mm_fault+0x4c9b/0x6680 mm/memory.c:5344 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:fault_in_readable+0x165/0x2b0 mm/gup.c:1995 Code: bc ff 4c 8d b3 ff 0f 00 00 48 89 d8 4d 01 e6 49 81 e6 00 f0 ff ff 49 39 c6 72 6b e8 f5 85 bc ff 4c 39 f3 74 6e 4c 89 64 24 10 <44> 8a 23 43 0f b6 04 2f 84 c0 75 18 44 88 64 24 40 48 81 c3 00 10 RSP: 0018:ffffc900034af880 EFLAGS: 00050287 RAX: ffffffff81d1f8bb RBX: 0000000020ffc000 RCX: ffff88803cb23b80 RDX: 0000000000000000 RSI: 0000000000000300 RDI: 0000000000000000 RBP: ffffc900034af938 R08: ffffffff81d1f858 R09: ffffffff84806229 R10: 0000000000000002 R11: ffff88803cb23b80 R12: 0000000000001000 R13: dffffc0000000000 R14: 0000000020ffd000 R15: 1ffff92000695f18 fault_in_iov_iter_readable+0x229/0x280 lib/iov_iter.c:94 generic_perform_write+0x220/0x630 mm/filemap.c:3908 ext4_buffered_write_iter+0xc6/0x350 fs/ext4/file.c:299 ext4_file_write_iter+0x1dc/0x19b0 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f7ea147cae9 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:00007f7e9ffdd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7ea159c050 RCX: 00007f7ea147cae9 RDX: 000000000208e24b RSI: 0000000020000300 RDI: 0000000000000007 RBP: 00007f7ea14c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7ea159c050 R15: 00007ffff24e04d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x42f/0x450 mm/memory.c:2216 Code: e8 66 ad ba ff 45 84 e4 74 2f e8 cc aa ba ff e9 54 fd ff ff e8 c2 aa ba ff 90 0f 0b e8 ba aa ba ff 90 0f 0b e8 b2 aa ba ff 90 <0f> 0b e8 ca d2 42 09 e8 a5 aa ba ff 90 0f 0b e8 9d aa ba ff 90 0f RSP: 0018:ffffc900034af220 EFLAGS: 00010293 RAX: ffffffff81d3d3fe RBX: 0000000000000420 RCX: ffff88803cb23b80 RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420 RBP: ffffc900034af2d8 R08: ffffffff81d3d0d4 R09: ffffffff81d3d0a8 R10: 0000000000000002 R11: ffff88803cb23b80 R12: 000000000c140477 R13: ffff88803d85c700 R14: ffffc900034af260 R15: 0000000000017f77 FS: 00007f7e9ffdd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31f22000 CR3: 000000002a2b7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: bc ff 4c 8d b3 mov $0xb38d4cff,%esp 5: ff 0f decl (%rdi) 7: 00 00 add %al,(%rax) 9: 48 89 d8 mov %rbx,%rax c: 4d 01 e6 add %r12,%r14 f: 49 81 e6 00 f0 ff ff and $0xfffffffffffff000,%r14 16: 49 39 c6 cmp %rax,%r14 19: 72 6b jb 0x86 1b: e8 f5 85 bc ff call 0xffbc8615 20: 4c 39 f3 cmp %r14,%rbx 23: 74 6e je 0x93 25: 4c 89 64 24 10 mov %r12,0x10(%rsp) * 2a: 44 8a 23 mov (%rbx),%r12b <-- trapping instruction 2d: 43 0f b6 04 2f movzbl (%r15,%r13,1),%eax 32: 84 c0 test %al,%al 34: 75 18 jne 0x4e 36: 44 88 64 24 40 mov %r12b,0x40(%rsp) 3b: 48 rex.W 3c: 81 .byte 0x81 3d: c3 ret 3e: 00 10 add %dl,(%rax)