------------[ cut here ]------------ WARNING: CPU: 1 PID: 5677 at fs/udf/truncate.c:209 udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 Modules linked in: CPU: 1 PID: 5677 Comm: syz.0.251 Not tainted 6.1.146-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 lr : udf_truncate_extents+0xa08/0xb60 fs/udf/truncate.c:209 sp : ffff800020ad6fa0 x29: ffff800020ad7120 x28: 00000000000000ff x27: 0000000000000000 x26: ffff0000e0332048 x25: 000000400000f000 x24: 000000000002ec00 x23: ffff0000c9d36000 x22: ffff800020ad7040 x21: 1fffe0001c066409 x20: ffff800020ad7020 x19: ffff0000e0332160 x18: ffff800011aabce0 x17: ffff8000181e7000 x16: ffff8000082d0f50 x15: 0000000000000002 x14: 0000000000000001 x13: 0000000000ff0100 x12: 0000000000080000 x11: 000000000000c1bf x10: ffff8000254d9000 x9 : ffff800009828a40 x8 : 000000000000c1c0 x7 : ffff80000981192c x6 : 0000000000000000 x5 : 0000000000000001 x4 : ffff800020ad6e94 x3 : 0000000000000001 x2 : ffff800020ad7048 x1 : 000000000002ec00 x0 : 0000000000000000 Call trace: udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 udf_do_extend_file+0xa14/0xd8c fs/udf/inode.c:479 inode_getblk fs/udf/inode.c:686 [inline] udf_get_block+0xbcc/0x32e8 fs/udf/inode.c:359 __block_write_begin_int+0x34c/0x13b8 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2102 udf_write_begin+0x44/0x88 fs/udf/inode.c:212 generic_perform_write+0x230/0x4b0 mm/filemap.c:3846 __generic_file_write_iter+0x168/0x37c mm/filemap.c:3974 udf_file_write_iter+0x218/0x564 fs/udf/file.c:164 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ac/0x7c4 fs/read_write.c:584 ksys_write+0x120/0x210 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 338 hardirqs last enabled at (337): [] lookup_bh_lru fs/buffer.c:1291 [inline] hardirqs last enabled at (337): [] __find_get_block+0x1c8/0xdfc fs/buffer.c:1303 hardirqs last disabled at (338): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (240): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (240): [] handle_softirqs+0xaf8/0xc6c kernel/softirq.c:624 softirqs last disabled at (231): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5677 at fs/udf/truncate.c:209 udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 Modules linked in: CPU: 1 PID: 5677 Comm: syz.0.251 Tainted: G W 6.1.146-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 lr : udf_truncate_extents+0xa08/0xb60 fs/udf/truncate.c:209 sp : ffff800020ad7660 x29: ffff800020ad77e0 x28: 00000000000000ff x27: 0000000000000000 x26: ffff0000e0332048 x25: 000000400000f000 x24: 000000000002ec00 x23: ffff0000c9d36000 x22: ffff800020ad7700 x21: 1fffe0001c066409 x20: ffff800020ad76e0 x19: ffff0000e0332160 x18: ffff800011aabce0 x17: ffff8000181e7000 x16: ffff8000082d0f50 x15: 0000000000000002 x14: 0000000000000001 x13: 0000000000ff0100 x12: 0000000000080000 x11: 000000000007ffff x10: ffff8000254d9000 x9 : ffff800009828a40 x8 : 0000000000080000 x7 : ffff800008a7b3dc x6 : 0000000000000000 x5 : 0000000000000001 x4 : ffff800020ad7554 x3 : 0000000000000001 x2 : ffff800020ad7708 x1 : 000000000002ec00 x0 : 0000000000000000 Call trace: udf_truncate_extents+0xa0c/0xb60 fs/udf/truncate.c:-1 udf_write_failed+0x164/0x1b4 fs/udf/inode.c:179 udf_write_begin+0x84/0x88 fs/udf/inode.c:214 generic_perform_write+0x230/0x4b0 mm/filemap.c:3846 __generic_file_write_iter+0x168/0x37c mm/filemap.c:3974 udf_file_write_iter+0x218/0x564 fs/udf/file.c:164 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ac/0x7c4 fs/read_write.c:584 ksys_write+0x120/0x210 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 634 hardirqs last enabled at (633): [] bh_lru_install fs/buffer.c:1258 [inline] hardirqs last enabled at (633): [] __find_get_block+0xbe0/0xdfc fs/buffer.c:1309 hardirqs last disabled at (634): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (520): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (520): [] handle_softirqs+0xaf8/0xc6c kernel/softirq.c:624 softirqs last disabled at (341): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]---