security_path_rename+0x250/0x490 security/security.c:2026 do_renameat2+0x64d/0xc50 fs/namei.c:5273 __do_sys_rename fs/namei.c:5333 [inline] __se_sys_rename fs/namei.c:5331 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5331 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:868! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 7819 Comm: syz.3.436 Not tainted 6.16.0-rc3-syzkaller-00306-gaaf724ed6926 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__filemap_add_folio+0x11ad/0x12f0 mm/filemap.c:867 Code: fd c8 ff 4c 89 e7 48 c7 c6 e0 37 94 8b e8 fb a3 10 00 90 0f 0b e8 63 fd c8 ff 4c 89 e7 48 c7 c6 c0 2e 94 8b e8 e4 a3 10 00 90 <0f> 0b e8 4c fd c8 ff 4c 89 e7 48 c7 c6 e0 37 94 8b e8 cd a3 10 00 RSP: 0018:ffffc9001df671c0 EFLAGS: 00010246 RAX: 83918be5ec0d0700 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8d98204b RDI: 00000000ffffffff RBP: ffffc9001df67328 R08: ffffffff8fa104f7 R09: 1ffffffff1f4209e R10: dffffc0000000000 R11: fffffbfff1f4209f R12: ffffea0001d0bc00 R13: dffffc0000000000 R14: ffffea0001d0bc08 R15: 0000000000000004 FS: 00007fef279d26c0(0000) GS:ffff888125d50000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3c5fe8 CR3: 000000005f8e2000 CR4: 0000000000350ef0 Call Trace: filemap_add_folio+0xd5/0x270 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x74c/0xc70 mm/readahead.c:509 do_async_mmap_readahead mm/filemap.c:3299 [inline] filemap_fault+0x59e/0x1200 mm/filemap.c:3398 __do_fault+0x138/0x390 mm/memory.c:5169 do_read_fault mm/memory.c:5590 [inline] do_fault mm/memory.c:5724 [inline] do_pte_missing mm/memory.c:4251 [inline] handle_pte_fault mm/memory.c:6069 [inline] __handle_mm_fault+0x37ed/0x5620 mm/memory.c:6212 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6381 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] RIP: 0010:raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] RIP: 0010:_inline_copy_from_user include/linux/uaccess.h:178 [inline] RIP: 0010:_copy_from_user+0x75/0xb0 lib/usercopy.c:18 Code: fd eb 49 48 b8 00 f0 ff ff ff 7f 00 00 49 39 c7 4c 0f 47 f8 4c 89 f7 89 de e8 a7 16 62 fd 0f 01 cb 4c 89 f7 48 89 d9 4c 89 fe a4 0f 1f 00 49 89 cf 0f 01 ca 31 ff 48 89 ce e8 56 95 fe fc 4d RSP: 0018:ffffc9001df67a20 EFLAGS: 00050256 RAX: 00007ffffffff001 RBX: 0000000000000038 RCX: 0000000000000038 RDX: 0000000000000001 RSI: 00002000000e8000 RDI: ffffc9001df67aa0 RBP: ffffc9001df67c30 R08: ffffc9001df67ad7 R09: 1ffff92003becf5a R10: dffffc0000000000 R11: fffff52003becf5b R12: 0000000000000002 R13: dffffc0000000000 R14: ffffc9001df67aa0 R15: 00002000000e8000 copy_from_user include/linux/uaccess.h:212 [inline] copy_msghdr_from_user net/socket.c:2496 [inline] recvmsg_copy_msghdr net/socket.c:2752 [inline] ___sys_recvmsg+0x12e/0x510 net/socket.c:2824 do_recvmmsg+0x307/0x770 net/socket.c:2923 __sys_recvmmsg net/socket.c:2997 [inline] __do_sys_recvmmsg net/socket.c:3020 [inline] __se_sys_recvmmsg net/socket.c:3013 [inline] __x64_sys_recvmmsg+0x190/0x240 net/socket.c:3013 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fef26b8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fef279d2038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fef26db6080 RCX: 00007fef26b8e929 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fef26c10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fef26db6080 R15: 00007ffee9429658 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x11ad/0x12f0 mm/filemap.c:867 Code: fd c8 ff 4c 89 e7 48 c7 c6 e0 37 94 8b e8 fb a3 10 00 90 0f 0b e8 63 fd c8 ff 4c 89 e7 48 c7 c6 c0 2e 94 8b e8 e4 a3 10 00 90 <0f> 0b e8 4c fd c8 ff 4c 89 e7 48 c7 c6 e0 37 94 8b e8 cd a3 10 00 RSP: 0018:ffffc9001df671c0 EFLAGS: 00010246 RAX: 83918be5ec0d0700 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8d98204b RDI: 00000000ffffffff RBP: ffffc9001df67328 R08: ffffffff8fa104f7 R09: 1ffffffff1f4209e R10: dffffc0000000000 R11: fffffbfff1f4209f R12: ffffea0001d0bc00 R13: dffffc0000000000 R14: ffffea0001d0bc08 R15: 0000000000000004 FS: 00007fef279d26c0(0000) GS:ffff888125c50000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2d3ff81178 CR3: 000000005f8e2000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: fd std 1: eb 49 jmp 0x4c 3: 48 b8 00 f0 ff ff ff movabs $0x7ffffffff000,%rax a: 7f 00 00 d: 49 39 c7 cmp %rax,%r15 10: 4c 0f 47 f8 cmova %rax,%r15 14: 4c 89 f7 mov %r14,%rdi 17: 89 de mov %ebx,%esi 19: e8 a7 16 62 fd call 0xfd6216c5 1e: 0f 01 cb stac 21: 4c 89 f7 mov %r14,%rdi 24: 48 89 d9 mov %rbx,%rcx 27: 4c 89 fe mov %r15,%rsi * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 0f 1f 00 nopl (%rax) 2f: 49 89 cf mov %rcx,%r15 32: 0f 01 ca clac 35: 31 ff xor %edi,%edi 37: 48 89 ce mov %rcx,%rsi 3a: e8 56 95 fe fc call 0xfcfe9595 3f: 4d rex.WRB