------------[ cut here ]------------ WARNING: CPU: 0 PID: 6271 at fs/iomap/buffered-io.c:975 iomap_page_mkwrite+0x65c/0x840 fs/iomap/buffered-io.c:998 Modules linked in: CPU: 0 PID: 6271 Comm: syz.2.488 Not tainted 5.15.168-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:iomap_page_mkwrite_iter fs/iomap/buffered-io.c:975 [inline] RIP: 0010:iomap_page_mkwrite+0x65c/0x840 fs/iomap/buffered-io.c:998 Code: 80 3c 28 00 74 08 48 89 df e8 d0 e6 d5 ff 48 8b 1b 48 89 de 48 83 e6 04 31 ff e8 cf 20 8c ff 48 83 e3 04 75 3b e8 e4 1c 8c ff <0f> 0b eb 37 4c 8b 2c 24 4c 89 ef 4c 89 e6 44 89 f2 31 c9 4c 8b 44 RSP: 0018:ffffc900034571c0 EFLAGS: 00010283 RAX: ffffffff81f4564c RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc900040f0000 RSI: 0000000000000e85 RDI: 0000000000000e86 RBP: ffffc900034573d0 R08: ffffffff81f45641 R09: fffff94000310e89 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001887440 R13: dffffc0000000000 R14: 0000000000001000 R15: ffffc90003457280 FS: 00007f1e190096c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f91b32aa000 CR3: 000000007756b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __xfs_filemap_fault+0x3fd/0x950 fs/xfs/xfs_file.c:1338 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2909 wp_page_shared+0x179/0x690 mm/memory.c:3246 handle_pte_fault mm/memory.c:4655 [inline] __handle_mm_fault mm/memory.c:4772 [inline] handle_mm_fault+0x2a3d/0x5960 mm/memory.c:4870 faultin_page mm/gup.c:976 [inline] __get_user_pages+0x4ed/0x11d0 mm/gup.c:1197 faultin_vma_page_range+0x21f/0x2a0 mm/gup.c:1590 madvise_populate mm/madvise.c:856 [inline] madvise_vma mm/madvise.c:1004 [inline] do_madvise+0xbca/0x3470 mm/madvise.c:1207 __do_sys_madvise mm/madvise.c:1233 [inline] __se_sys_madvise mm/madvise.c:1231 [inline] __x64_sys_madvise+0xa1/0xb0 mm/madvise.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f1e1abb1ff9 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:00007f1e19009038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f1e1ad6a058 RCX: 00007f1e1abb1ff9 RDX: 0000000000000017 RSI: 0000000000600000 RDI: 0000000020000000 RBP: 00007f1e1ac24296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1e1ad6a058 R15: 00007ffe0345e468