------------[ cut here ]------------ kernel BUG at mm/memory.c:2237! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 17212 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #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:2237 Code: 41 5f 5d c3 cc cc cc cc e8 0f b3 b4 ff b8 02 00 00 00 eb c0 e8 03 b3 b4 ff 90 0f 0b e8 fb b2 b4 ff 90 0f 0b e8 f3 b2 b4 ff 90 <0f> 0b e8 5b f0 93 09 e8 e6 b2 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90009c76f20 EFLAGS: 00010246 RAX: ffffffff81e0425d RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000af49000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90009c76fe0 R08: ffffffff81e040a1 R09: ffffffff81e04075 R10: 0000000000000002 R11: ffff88805cfada00 R12: ffffc90009c76f60 R13: ffff8880791a5e00 R14: 1ffff9200138ede8 R15: 000000000c140476 FS: 00007f1b09eab6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ffc000 CR3: 0000000060ef4000 CR4: 00000000003506f0 Call Trace: drm_gem_shmem_fault+0x201/0x3a0 drivers/gpu/drm/drm_gem_shmem_helper.c:531 __do_fault+0x135/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+0x3c2/0x8a0 mm/memory.c:5470 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/0x890 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 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 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc90009c77678 EFLAGS: 00050206 RAX: ffffffff84a36101 RBX: 0000000020ff6fc8 RCX: 0000000000001a0b RDX: 0000000000000001 RSI: 0000000020ffc000 RDI: ffff888055acd038 RBP: ffffc90009c777f0 R08: ffff888055acea42 R09: 1ffff1100ab59d48 R10: dffffc0000000000 R11: ffffed100ab59d49 R12: 0000000000006a43 R13: ffff888055ac8000 R14: ffffc90009c77b98 R15: 1ffff9200138ef73 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:125 [inline] copy_from_user_iter lib/iov_iter.c:55 [inline] iterate_ubuf include/linux/iov_iter.h:29 [inline] iterate_and_advance2 include/linux/iov_iter.h:245 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:249 [inline] _copy_from_iter+0x257/0x1cf0 lib/iov_iter.c:260 copy_from_iter include/linux/uio.h:204 [inline] copy_from_iter_full include/linux/uio.h:211 [inline] skb_do_copy_data_nocache include/net/sock.h:2231 [inline] skb_copy_to_page_nocache include/net/sock.h:2257 [inline] tcp_sendmsg_locked+0x1857/0x4d00 net/ipv4/tcp.c:1206 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1342 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x1a6/0x270 net/socket.c:745 sock_write_iter+0x2dd/0x400 net/socket.c:1160 call_write_iter include/linux/fs.h:2108 [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_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f1b0907de69 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:00007f1b09eab0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1b091ac050 RCX: 00007f1b0907de69 RDX: 0000000100000530 RSI: 0000000020000a00 RDI: 0000000000000009 RBP: 00007f1b090ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f1b091ac050 R15: 00007f1b092cfa48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x2be/0x2d0 mm/memory.c:2237 Code: 41 5f 5d c3 cc cc cc cc e8 0f b3 b4 ff b8 02 00 00 00 eb c0 e8 03 b3 b4 ff 90 0f 0b e8 fb b2 b4 ff 90 0f 0b e8 f3 b2 b4 ff 90 <0f> 0b e8 5b f0 93 09 e8 e6 b2 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90009c76f20 EFLAGS: 00010246 RAX: ffffffff81e0425d RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000af49000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90009c76fe0 R08: ffffffff81e040a1 R09: ffffffff81e04075 R10: 0000000000000002 R11: ffff88805cfada00 R12: ffffc90009c76f60 R13: ffff8880791a5e00 R14: 1ffff9200138ede8 R15: 000000000c140476 FS: 00007f1b09eab6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d724000 CR3: 0000000060ef4000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 75 f1 jne 0xfffffff3 2: c3 ret 3: cc int3 4: cc int3 5: cc int3 6: cc int3 7: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) e: 00 00 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 df je 0x2 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c9 jmp 0xfffffff3 * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: cc int3 2e: cc int3 2f: cc int3 30: cc int3 31: 48 89 c8 mov %rcx,%rax 34: 48 c1 e9 03 shr $0x3,%rcx 38: 83 e0 07 and $0x7,%eax 3b: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) 3e: 89 c1 mov %eax,%ecx