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: 0 UID: 0 PID: 18907 Comm: syz.2.2985 Not tainted 6.15.0-rc2-syzkaller-00493-gac71fabf1567 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__filemap_add_folio+0x1554/0x16c0 mm/filemap.c:867 Code: e9 c5 ff 4c 89 e7 48 c7 c6 80 0e 54 8c e8 44 43 12 00 90 0f 0b e8 cc e9 c5 ff 4c 89 e7 48 c7 c6 00 05 54 8c e8 2d 43 12 00 90 <0f> 0b e8 b5 e9 c5 ff 4c 89 e7 48 c7 c6 80 0e 54 8c e8 16 43 12 00 RSP: 0018:ffffc900047f6ce0 EFLAGS: 00010246 RAX: 51bd4d6cf0942a00 RBX: 0000000000000004 RCX: ffffffff93686020 RDX: dffffc0000000000 RSI: ffffffff8e6497f7 RDI: 0000000000000001 RBP: ffffc900047f6e90 R08: ffffffff905fe577 R09: 1ffffffff20bfcae R10: dffffc0000000000 R11: fffffbfff20bfcaf R12: ffffea0000a12100 R13: ffffc900047f6de0 R14: 0000000000000002 R15: dffffc0000000000 FS: 00007fbe21a866c0(0000) GS:ffff888124f9a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc1bed85f98 CR3: 00000000495f8000 CR4: 0000000000350ef0 Call Trace: filemap_add_folio+0x157/0x380 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x76c/0xca0 mm/readahead.c:509 do_sync_mmap_readahead+0x3e6/0x6c0 mm/filemap.c:-1 filemap_fault+0x763/0x13d0 mm/filemap.c:3403 __do_fault+0x137/0x390 mm/memory.c:5098 do_read_fault mm/memory.c:5518 [inline] do_fault mm/memory.c:5652 [inline] do_pte_missing mm/memory.c:4160 [inline] handle_pte_fault+0x3f0c/0x61c0 mm/memory.c:5997 __handle_mm_fault mm/memory.c:6140 [inline] handle_mm_fault+0x1129/0x1bf0 mm/memory.c:6309 do_user_addr_fault arch/x86/mm/fault.c:1388 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x2bb/0x920 arch/x86/mm/fault.c:1538 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:fault_in_readable+0x115/0x2e0 mm/gup.c:2234 Code: 8b 6c 24 08 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff e8 e0 fb b2 ff 4c 89 e8 48 25 ff 0f 00 00 49 bf 00 00 00 00 00 fc ff df 74 2a <41> 8a 5d 00 e8 e2 f6 b2 ff 43 0f b6 04 3e 84 c0 0f 85 6b 01 00 00 RSP: 0018:ffffc900047f7a00 EFLAGS: 00050202 RAX: 0000000000000240 RBX: 00002000000bf240 RCX: ffff88802fcd8000 RDX: ffffc90016841000 RSI: 0000000000000240 RDI: 0000000000000000 RBP: ffffc900047f7ab8 R08: ffffffff820fc620 R09: ffffffff85017739 R10: 0000000000000002 R11: ffff88802fcd8000 R12: 0000000000001000 R13: 00002000000be240 R14: 1ffff920008fef48 R15: dffffc0000000000 fault_in_iov_iter_readable+0x229/0x280 lib/iov_iter.c:94 generic_perform_write+0x8a4/0xa10 mm/filemap.c:4152 shmem_file_write_iter+0xf9/0x120 mm/shmem.c:3464 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x711/0xd10 fs/read_write.c:684 ksys_write+0x19d/0x2d0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbe20b8e169 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:00007fbe21a86038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbe20db5fa0 RCX: 00007fbe20b8e169 RDX: 000000000208e24b RSI: 0000200000000240 RDI: 0000000000000005 RBP: 00007fbe20c10a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbe20db5fa0 R15: 00007ffd89dfc138 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x1554/0x16c0 mm/filemap.c:867 Code: e9 c5 ff 4c 89 e7 48 c7 c6 80 0e 54 8c e8 44 43 12 00 90 0f 0b e8 cc e9 c5 ff 4c 89 e7 48 c7 c6 00 05 54 8c e8 2d 43 12 00 90 <0f> 0b e8 b5 e9 c5 ff 4c 89 e7 48 c7 c6 80 0e 54 8c e8 16 43 12 00 RSP: 0018:ffffc900047f6ce0 EFLAGS: 00010246 RAX: 51bd4d6cf0942a00 RBX: 0000000000000004 RCX: ffffffff93686020 RDX: dffffc0000000000 RSI: ffffffff8e6497f7 RDI: 0000000000000001 RBP: ffffc900047f6e90 R08: ffffffff905fe577 R09: 1ffffffff20bfcae R10: dffffc0000000000 R11: fffffbfff20bfcaf R12: ffffea0000a12100 R13: ffffc900047f6de0 R14: 0000000000000002 R15: dffffc0000000000 FS: 00007fbe21a866c0(0000) GS:ffff888124f9a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efc8e57fab8 CR3: 00000000495f8000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 8b 6c 24 08 mov 0x8(%rsp),%ebp 4: 4c 89 ee mov %r13,%rsi 7: 48 81 e6 ff 0f 00 00 and $0xfff,%rsi e: 31 ff xor %edi,%edi 10: e8 e0 fb b2 ff call 0xffb2fbf5 15: 4c 89 e8 mov %r13,%rax 18: 48 25 ff 0f 00 00 and $0xfff,%rax 1e: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 25: fc ff df 28: 74 2a je 0x54 * 2a: 41 8a 5d 00 mov 0x0(%r13),%bl <-- trapping instruction 2e: e8 e2 f6 b2 ff call 0xffb2f715 33: 43 0f b6 04 3e movzbl (%r14,%r15,1),%eax 38: 84 c0 test %al,%al 3a: 0f 85 6b 01 00 00 jne 0x1ab