------------[ cut here ]------------ kernel BUG at mm/memory.c:2163! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 15668 Comm: syz-executor.3 Not tainted 6.3.0-rc6-syzkaller-00034-ge62252bc55b6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:vmf_insert_pfn_prot+0x24c/0x460 mm/memory.c:2163 Code: 0f 0b e8 d7 57 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 33 54 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b4 57 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a3 57 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000a39f8c0 EFLAGS: 00010212 RAX: 0000000000000c6c RBX: 1ffff92001473f1a RCX: ffffc9000c052000 RDX: 0000000000040000 RSI: ffffffff81c083ac RDI: 0000000000000007 RBP: ffff88802b1e99a0 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000001 R12: 0000000020000000 R13: 000000000001e7be R14: 000000000c040471 R15: 0000000000000020 FS: 0000000000000000(0000) GS:ffff8880b9900000(0063) knlGS:00000000f7f99b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020001140 CR3: 000000007cdbc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1e1/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:559 __do_fault+0x107/0x600 mm/memory.c:4155 do_read_fault mm/memory.c:4506 [inline] do_fault mm/memory.c:4635 [inline] handle_pte_fault mm/memory.c:4923 [inline] __handle_mm_fault+0x24f3/0x3e60 mm/memory.c:5065 handle_mm_fault+0x2ba/0x9c0 mm/memory.c:5211 do_user_addr_fault+0x475/0x1230 arch/x86/mm/fault.c:1407 handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:do_strncpy_from_user lib/strncpy_from_user.c:41 [inline] RIP: 0010:strncpy_from_user+0x1c1/0x3c0 lib/strncpy_from_user.c:139 Code: ed 08 4d 89 74 1d 00 bf 07 00 00 00 48 83 c3 08 48 89 ee e8 61 36 44 fd 48 83 fd 07 0f 86 c0 01 00 00 e8 e2 39 44 fd 45 31 ff <49> 8b 04 1c 31 ff 44 89 fe 49 89 c6 e8 1e 36 44 fd 45 85 ff 0f 84 RSP: 0018:ffffc9000a39fce8 EFLAGS: 00050246 RAX: 0000000000000070 RBX: 0000000000000000 RCX: ffffc9000c052000 RDX: 0000000000040000 RSI: ffffffff843ea17e RDI: 0000000000000007 RBP: 0000000000000fe0 R08: 0000000000000007 R09: 0000000000000007 R10: 0000000000000fe0 R11: 0000000000000000 R12: 0000000020000080 R13: ffff88807a7d1120 R14: ffff88807a7d1120 R15: 0000000000000000 getname_flags.part.0+0x95/0x4f0 fs/namei.c:151 getname_flags include/linux/audit.h:321 [inline] getname+0x92/0xd0 fs/namei.c:219 do_sys_openat2+0xf5/0x4c0 fs/open.c:1342 do_sys_open fs/open.c:1364 [inline] __do_compat_sys_openat fs/open.c:1424 [inline] __se_compat_sys_openat fs/open.c:1422 [inline] __ia32_compat_sys_openat+0x143/0x1f0 fs/open.c:1422 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f9e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f995cc EFLAGS: 00000296 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000020000080 RDX: 000000000000275a RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vmf_insert_pfn_prot+0x24c/0x460 mm/memory.c:2163 Code: 0f 0b e8 d7 57 c2 ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 33 54 c2 ff 49 83 ff 20 0f 85 a5 fe ff ff e8 b4 57 c2 ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 a3 57 c2 ff 4d 21 ee 4c 89 RSP: 0018:ffffc9000a39f8c0 EFLAGS: 00010212 RAX: 0000000000000c6c RBX: 1ffff92001473f1a RCX: ffffc9000c052000 RDX: 0000000000040000 RSI: ffffffff81c083ac RDI: 0000000000000007 RBP: ffff88802b1e99a0 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000001 R12: 0000000020000000 R13: 000000000001e7be R14: 000000000c040471 R15: 0000000000000020 FS: 0000000000000000(0000) GS:ffff8880b9800000(0063) knlGS:00000000f7f99b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f734e1b0 CR3: 000000007cdbc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ed in (%dx),%eax 1: 08 4d 89 or %cl,-0x77(%rbp) 4: 74 1d je 0x23 6: 00 bf 07 00 00 00 add %bh,0x7(%rdi) c: 48 83 c3 08 add $0x8,%rbx 10: 48 89 ee mov %rbp,%rsi 13: e8 61 36 44 fd callq 0xfd443679 18: 48 83 fd 07 cmp $0x7,%rbp 1c: 0f 86 c0 01 00 00 jbe 0x1e2 22: e8 e2 39 44 fd callq 0xfd443a09 27: 45 31 ff xor %r15d,%r15d * 2a: 49 8b 04 1c mov (%r12,%rbx,1),%rax <-- trapping instruction 2e: 31 ff xor %edi,%edi 30: 44 89 fe mov %r15d,%esi 33: 49 89 c6 mov %rax,%r14 36: e8 1e 36 44 fd callq 0xfd443659 3b: 45 85 ff test %r15d,%r15d 3e: 0f .byte 0xf 3f: 84 .byte 0x84