------------[ cut here ]------------ kernel BUG at mm/memory.c:2362! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 6754 Comm: syz-executor.4 Not tainted 6.9.0-rc5-syzkaller-00296-g5eb4573ea63d #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 eb 2c 9e 09 e8 66 01 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90004e3efe0 EFLAGS: 00010246 RAX: ffffffff81e1ffed RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000a5d9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90004e3f0a0 R08: ffffffff81e1fe31 R09: ffffffff81e1fe05 R10: 0000000000000002 R11: ffff888020c90000 R12: ffffc90004e3f020 R13: ffff88806310a500 R14: 1ffff920009c7e00 R15: 000000000c140476 FS: 00007f0f825ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005577109fd000 CR3: 0000000060806000 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+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: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:ffffc90004e3f718 EFLAGS: 00050206 RAX: ffff88805c9c8001 RBX: 0000000021000ac0 RCX: 0000000000004ac0 RDX: 0000000000000001 RSI: 0000000020ffc000 RDI: ffff88805c9cb540 RBP: ffffc90004e3f890 R08: ffff88805c9cffff R09: 1ffff1100b939fff R10: dffffc0000000000 R11: ffffed100b93a000 R12: dffffc0000000000 R13: 1ffff920009c7ef8 R14: 0000000000008000 R15: ffff88805c9c8000 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_iovec include/linux/iov_iter.h:51 [inline] iterate_and_advance2 include/linux/iov_iter.h:247 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:249 [inline] _copy_from_iter+0x4c0/0x1960 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:2240 [inline] skb_copy_to_page_nocache include/net/sock.h:2266 [inline] kcm_sendmsg+0xcca/0x27c0 net/kcm/kcmsock.c:858 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 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:0x7f0f82a7dea9 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:00007f0f825ff0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f0f82babf80 RCX: 00007f0f82a7dea9 RDX: 0000000000000000 RSI: 0000000020000880 RDI: 0000000000000003 RBP: 00007f0f82aca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0f82babf80 R15: 00007f0f82ccf9f8 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 eb 2c 9e 09 e8 66 01 b4 ff 90 0f 0b 0f 1f 00 90 90 90 90 RSP: 0018:ffffc90004e3efe0 EFLAGS: 00010246 RAX: ffffffff81e1ffed RBX: 0000000000000420 RCX: 0000000000040000 RDX: ffffc9000a5d9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90004e3f0a0 R08: ffffffff81e1fe31 R09: ffffffff81e1fe05 R10: 0000000000000002 R11: ffff888020c90000 R12: ffffc90004e3f020 R13: ffff88806310a500 R14: 1ffff920009c7e00 R15: 000000000c140476 FS: 00007f0f825ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa4be2da549 CR3: 0000000060806000 CR4: 00000000003506f0 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