------------[ cut here ]------------ WARNING: CPU: 0 PID: 144 at fs/udf/truncate.c:208 udf_truncate_extents+0xf90/0x11a0 Modules linked in: CPU: 0 PID: 144 Comm: kworker/u4:1 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:udf_truncate_extents+0xf90/0x11a0 fs/udf/truncate.c:208 Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 cc 7e a3 fe 41 be fb ff ff ff 48 8b 5c 24 60 49 bc 00 00 00 00 00 fc ff df eb 87 e8 b0 7e a3 fe <0f> 0b e9 7b ff ff ff 48 8d 8c 24 60 01 00 00 80 e1 07 80 c1 03 38 RSP: 0000:ffffc9000155e5a0 EFLAGS: 00010293 RAX: ffffffff82dcdbc0 RBX: 1ffff920002abccc RCX: ffff88801c389dc0 RDX: 0000000000000000 RSI: 0000000001dda1fb RDI: 0000000000000000 RBP: ffffc9000155e790 R08: ffffffff82dcd0bb R09: ffffffff82da7210 R10: 0000000000000002 R11: ffff88801c389dc0 R12: dffffc0000000000 R13: 0000000001dda1fb R14: 0000000000000000 R15: 00000000000000ff FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe10497e4b8 CR3: 00000000291a4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_do_extend_file+0xdc9/0x1140 fs/udf/inode.c:591 inode_getblk fs/udf/inode.c:798 [inline] udf_get_block+0x1727/0x5360 fs/udf/inode.c:448 __mpage_writepage+0x4f9/0x1c00 fs/mpage.c:564 write_cache_pages+0xa97/0x1160 mm/page-writeback.c:2277 mpage_writepages+0x13c/0x2f0 fs/mpage.c:712 do_writepages+0x481/0x730 mm/page-writeback.c:2386 __writeback_single_inode+0x15b/0xe30 fs/fs-writeback.c:1647 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2288 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287