------------[ cut here ]------------ kernel BUG at mm/memory.c:2218! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3607 Comm: syz-executor152 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:vmf_insert_pfn_prot+0x248/0x460 mm/memory.c:2218 Code: 0f 0b e8 ab 47 c7 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 77 44 c7 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 88 47 c7 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 77 47 c7 ff 4d 21 ee 4c 89 RSP: 0018:ffffc90002f67628 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff920005ecec7 RCX: 0000000000000000 RDX: ffff888072b02040 RSI: ffffffff81b3f098 RDI: 0000000000000007 RBP: ffff88801d967880 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000003 R12: 0000000020002000 R13: 000000000001d86d R14: 000000000c140476 R15: 0000000000000020 FS: 0000555556aa3300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056169ec75108 CR3: 00000000282f2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1e3/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:562 __do_fault+0x10d/0x610 mm/memory.c:4173 do_read_fault mm/memory.c:4518 [inline] do_fault mm/memory.c:4647 [inline] handle_pte_fault mm/memory.c:4911 [inline] __handle_mm_fault+0x2130/0x39b0 mm/memory.c:5053 handle_mm_fault+0x1c8/0x780 mm/memory.c:5151 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1488 [inline] exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:fault_in_readable+0x175/0x290 mm/gup.c:1883 Code: 0c ca ff 49 39 dd 0f 84 06 01 00 00 45 31 f6 eb 11 e8 5f 0c ca ff 48 81 c3 00 10 00 00 4c 39 eb 74 1d e8 4e 0c ca ff 45 89 f7 <8a> 03 31 ff 44 89 fe 88 44 24 28 e8 fb 08 ca ff 45 85 ff 74 d2 e8 RSP: 0018:ffffc90002f67a40 EFLAGS: 00050293 RAX: 0000000000000000 RBX: 0000000020002000 RCX: 0000000000000000 RDX: ffff888072b02040 RSI: ffffffff81b12bd2 RDI: 0000000000000005 RBP: 0000000020001040 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000001000 R13: 0000000020003000 R14: 0000000000000000 R15: 0000000000000000 fault_in_iov_iter_readable+0x24e/0x2c0 lib/iov_iter.c:353 generic_perform_write+0x19e/0x560 mm/filemap.c:3728 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:270 ext4_file_write_iter+0x44a/0x1660 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2187 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:578 ksys_write+0x127/0x250 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ff7901b89 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff1554e1c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5ff7901b89 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f5ff78c5d30 R08: 00000000000a9000 R09: 0000000000000000 R10: 00000000000a9000 R11: 0000000000000246 R12: 00007f5ff78c5dc0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x248/0x460 mm/memory.c:2218 Code: 0f 0b e8 ab 47 c7 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 77 44 c7 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 88 47 c7 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 77 47 c7 ff 4d 21 ee 4c 89 RSP: 0018:ffffc90002f67628 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff920005ecec7 RCX: 0000000000000000 RDX: ffff888072b02040 RSI: ffffffff81b3f098 RDI: 0000000000000007 RBP: ffff88801d967880 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000003 R12: 0000000020002000 R13: 000000000001d86d R14: 000000000c140476 R15: 0000000000000020 FS: 0000555556aa3300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056169ec75108 CR3: 00000000282f2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 0c ca or $0xca,%al 2: ff 49 39 decl 0x39(%rcx) 5: dd 0f fisttpll (%rdi) 7: 84 06 test %al,(%rsi) 9: 01 00 add %eax,(%rax) b: 00 45 31 add %al,0x31(%rbp) e: f6 eb imul %bl 10: 11 e8 adc %ebp,%eax 12: 5f pop %rdi 13: 0c ca or $0xca,%al 15: ff 48 81 decl -0x7f(%rax) 18: c3 retq 19: 00 10 add %dl,(%rax) 1b: 00 00 add %al,(%rax) 1d: 4c 39 eb cmp %r13,%rbx 20: 74 1d je 0x3f 22: e8 4e 0c ca ff callq 0xffca0c75 27: 45 89 f7 mov %r14d,%r15d * 2a: 8a 03 mov (%rbx),%al <-- trapping instruction 2c: 31 ff xor %edi,%edi 2e: 44 89 fe mov %r15d,%esi 31: 88 44 24 28 mov %al,0x28(%rsp) 35: e8 fb 08 ca ff callq 0xffca0935 3a: 45 85 ff test %r15d,%r15d 3d: 74 d2 je 0x11 3f: e8 .byte 0xe8