loop0: detected capacity change from 0 to 49152 EXT4-fs: Ignoring removed i_version option EXT4-fs (loop0): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0 EXT4-fs: The data=journal mount option is deprecated and support will be removed in January 2028 EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support! EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w with journalled data mode. Quota mode: journalled. ------------[ cut here ]------------ __ext4_journalled_invalidate_folio(folio, offset, length) < 0 WARNING: fs/ext4/inode.c:3561 at ext4_journalled_invalidate_folio+0x4a/0x50 fs/ext4/inode.c:3561, CPU#0: syz.0.0/5339 Modules linked in: CPU: 0 UID: 0 PID: 5339 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:ext4_journalled_invalidate_folio+0x4a/0x50 fs/ext4/inode.c:3561 Code: e8 3b 06 00 00 89 c3 31 ff 89 c6 e8 00 70 2a ff 85 db 78 10 e8 e7 6a 2a ff 5b 41 5e 41 5f e9 0d 23 6d 09 cc e8 d7 6a 2a ff 90 <0f> 0b 90 eb ea 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000e2674a0 EFLAGS: 00010287 RAX: ffffffff829ec759 RBX: 00000000fffffff0 RCX: 0000000000100000 RDX: ffffc9000ef0a000 RSI: 000000000000d610 RDI: 000000000000d611 RBP: 0000000000002580 R08: ffff8880328dd2a7 R09: 1ffff1100651ba54 R10: dffffc0000000000 R11: ffffed100651ba55 R12: ffffea00005382d8 R13: dffffc0000000000 R14: 0000000000000580 R15: ffffea00005382c0 FS: 00007f19d0c966c0(0000) GS:ffff88808a9f9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f19cfece5a0 CR3: 00000000146e8000 CR4: 0000000000352ef0 Call Trace: folio_invalidate mm/truncate.c:140 [inline] truncate_inode_partial_folio+0x70b/0xec0 mm/truncate.c:261 truncate_inode_pages_range+0x5f0/0xc10 mm/truncate.c:460 ext4_truncate_failed_write fs/ext4/truncate.h:21 [inline] ext4_journalled_write_end+0x99f/0xd20 fs/ext4/inode.c:1726 generic_perform_write+0x612/0x8e0 mm/filemap.c:4413 ext4_buffered_write_iter+0x139/0x540 fs/ext4/file.c:372 ext4_file_write_iter+0xae4/0x1cd0 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x612/0xba0 fs/read_write.c:667 ksys_write+0x150/0x270 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f19cfda8fd9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f19d0c95fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f19d0025fa0 RCX: 00007f19cfda8fd9 RDX: 000000000208e24b RSI: 0000200000002a80 RDI: 0000000000000006 RBP: 00007f19cfe37fed R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f19d0026038 R14: 00007f19d0025fa0 R15: 00007ffddec961f8