------------[ cut here ]------------ kernel BUG at mm/memory.c:2362! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 7938 Comm: syz-executor.4 Not tainted 6.9.0-rc6-syzkaller-00053-g0106679839f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2362 Code: 41 5f 5d c3 cc cc cc cc e8 8f 01 b4 ff b8 02 00 00 00 eb c0 e8 83 01 b4 ff 90 0f 0b e8 7b 01 b4 ff 90 0f 0b e8 73 01 b4 ff 90 <0f> 0b e8 2b 2c 9e 09 e8 66 01 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc900035df2c0 EFLAGS: 00010246 RAX: ffffffff81e210ad RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000b4eb000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900035df380 R08: ffffffff81e20ef1 R09: ffffffff81e20ec5 R10: 0000000000000002 R11: ffff888025b85a00 R12: ffffc900035df300 R13: ffff88806614bc00 R14: 1ffff920006bbe5c R15: 000000000c140476 FS: 00007f00ae3df6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000205a9000 CR3: 0000000064d30000 CR4: 00000000003526f0 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:4531 do_read_fault mm/memory.c:4894 [inline] do_fault mm/memory.c:5024 [inline] do_pte_missing mm/memory.c:3880 [inline] handle_pte_fault mm/memory.c:5300 [inline] __handle_mm_fault+0x45fe/0x7250 mm/memory.c:5441 handle_mm_fault+0x3c2/0x8a0 mm/memory.c:5606 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2a8/0x8e0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:fault_in_readable+0x165/0x2b0 mm/gup.c:2009 Code: b6 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 a5 1b b6 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:ffffc900035df9e0 EFLAGS: 00050287 RAX: ffffffff81dff67b RBX: 0000000020ffc000 RCX: 0000000000040000 RDX: ffffc9000b4eb000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900035dfa98 R08: ffffffff81dff618 R09: ffffffff84acfb69 R10: 0000000000000002 R11: ffff888025b85a00 R12: 0000000000001000 R13: dffffc0000000000 R14: 0000000020ffd000 R15: 1ffff920006bbf44 fault_in_iov_iter_readable+0x229/0x280 lib/iov_iter.c:94 generic_perform_write+0x220/0x640 mm/filemap.c:3964 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2920 call_write_iter include/linux/fs.h:2110 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa84/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f00ad67dea9 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:00007f00ae3df0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f00ad7abf80 RCX: 00007f00ad67dea9 RDX: 000000000208e24b RSI: 0000000020000000 RDI: 000000000000000a RBP: 00007f00ad6ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f00ad7abf80 R15: 00007f00ad8cf9f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2362 Code: 41 5f 5d c3 cc cc cc cc e8 8f 01 b4 ff b8 02 00 00 00 eb c0 e8 83 01 b4 ff 90 0f 0b e8 7b 01 b4 ff 90 0f 0b e8 73 01 b4 ff 90 <0f> 0b e8 2b 2c 9e 09 e8 66 01 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc900035df2c0 EFLAGS: 00010246 RAX: ffffffff81e210ad RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000b4eb000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900035df380 R08: ffffffff81e20ef1 R09: ffffffff81e20ec5 R10: 0000000000000002 R11: ffff888025b85a00 R12: ffffc900035df300 R13: ffff88806614bc00 R14: 1ffff920006bbe5c R15: 000000000c140476 FS: 00007f00ae3df6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 0000000064d30000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: b6 ff mov $0xff,%dh 2: 4c 8d b3 ff 0f 00 00 lea 0xfff(%rbx),%r14 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 a5 1b b6 ff call 0xffb61bc5 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)