------------[ cut here ]------------ WARNING: CPU: 0 PID: 4527 at fs/udf/truncate.c:208 udf_truncate_extents+0xbf4/0xdc8 Modules linked in: CPU: 0 PID: 4527 Comm: syz-executor261 Not tainted 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : udf_truncate_extents+0xbf4/0xdc8 lr : udf_truncate_extents+0xbf0/0xdc8 fs/udf/truncate.c:208 sp : ffff80001d886d20 x29: ffff80001d886f00 x28: ffff0000e0778810 x27: 0000000000000200 x26: dfff800000000000 x25: ffff80001d886ea0 x24: 00000000000000ff x23: 0000000000000010 x22: ffff80001d886e60 x21: 00000000000000ff x20: ffff0000e07787c0 x19: ffff80001d886e20 x18: 0000000000000000 x17: ff8080000984a6e0 x16: 0000000000000000 x15: ffff80000984a6e0 x14: 0000000000000001 x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000986a5b4 x10: 0000000000000000 x9 : ffff80000986a5b4 x8 : ffff0000cc105040 x7 : ffff80000984c854 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff80001d886e28 x1 : 0000000000000200 x0 : 0000000000000000 Call trace: udf_truncate_extents+0xbf4/0xdc8 udf_do_extend_file+0xae0/0xde0 fs/udf/inode.c:591 inode_getblk fs/udf/inode.c:798 [inline] udf_get_block+0x1258/0x4120 fs/udf/inode.c:448 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin+0x60/0xdc fs/buffer.c:2122 udf_write_begin+0x50/0x98 fs/udf/inode.c:212 generic_perform_write+0x24c/0x520 mm/filemap.c:3776 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3903 udf_file_write_iter+0x234/0x490 fs/udf/file.c:163 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 1776 hardirqs last enabled at (1775): [] ___slab_alloc+0xc48/0xdbc mm/slub.c:2963 hardirqs last disabled at (1776): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (98): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (96): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 8152c31e04da83c5 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4527 at fs/udf/truncate.c:208 udf_truncate_extents+0xbf4/0xdc8 Modules linked in: CPU: 0 PID: 4527 Comm: syz-executor261 Tainted: G W 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : udf_truncate_extents+0xbf4/0xdc8 lr : udf_truncate_extents+0xbf0/0xdc8 fs/udf/truncate.c:208 sp : ffff80001d887560 x29: ffff80001d887750 x28: ffff0000e0778810 x27: 0000000000000200 x26: dfff800000000000 x25: ffff80001d8876e0 x24: 00000000000000ff x23: 0000000000000010 x22: ffff80001d8876a0 x21: 00000000000000ff x20: ffff0000e07787c0 x19: ffff80001d887660 x18: 0000000000000000 x17: ff8080000984a6e0 x16: 0000000000000000 x15: ffff80000984a6e0 x14: 0000000000000001 x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000986a5b4 x10: 0000000000000000 x9 : ffff80000986a5b4 x8 : ffff0000cc105040 x7 : ffff80000984c854 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff80001d887668 x1 : 0000000000000200 x0 : 0000000000000000 Call trace: udf_truncate_extents+0xbf4/0xdc8 udf_write_failed+0x164/0x1b4 fs/udf/inode.c:179 udf_write_begin+0x94/0x98 fs/udf/inode.c:214 generic_perform_write+0x24c/0x520 mm/filemap.c:3776 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3903 udf_file_write_iter+0x234/0x490 fs/udf/file.c:163 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 1862 hardirqs last enabled at (1861): [] free_unref_page_list+0x874/0x900 mm/page_alloc.c:3478 hardirqs last disabled at (1862): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (1810): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (1810): [] __do_softirq+0xcc4/0xf60 kernel/softirq.c:587 softirqs last disabled at (1779): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (1779): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (1779): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 8152c31e04da83c6 ]---