------------[ cut here ]------------ WARNING: CPU: 1 PID: 5515 at fs/udf/inode.c:2025 __udf_add_aext+0x54c/0x6f0 Modules linked in: CPU: 0 PID: 5515 Comm: syz-executor.2 Not tainted 5.15.159-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__udf_add_aext+0x54c/0x6f0 fs/udf/inode.c:2024 Code: 4c 89 e7 e8 66 fa ef fe 49 8b 3c 24 4c 89 fe e8 8a 60 0b ff 31 c0 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 34 2c a6 fe <0f> 0b e9 ed fb ff ff e8 28 2c a6 fe 0f 0b e9 5c fc ff ff e8 1c 2c RSP: 0018:ffffc90009ea77d8 EFLAGS: 00010287 RAX: ffffffff82da308c RBX: 1ffff920013d4f75 RCX: 0000000000040000 RDX: ffffc90005731000 RSI: 000000000000b41d RDI: 000000000000b41e RBP: 00000000000001d0 R08: ffffffff82da2c72 R09: ffffffff82da2ba2 R10: 0000000000000002 R11: ffff888022aa3b80 R12: ffffc90009ea7ba0 R13: 0000000000000000 R14: dffffc0000000000 R15: ffffc90009ea7ba8 FS: 00007f63a63176c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff2735dc98 CR3: 0000000019eba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_setup_indirect_aext+0x6bc/0x980 fs/udf/inode.c:1990 udf_add_aext fs/udf/inode.c:2077 [inline] udf_do_extend_file+0x6df/0x1140 fs/udf/inode.c:562 udf_extend_file fs/udf/inode.c:676 [inline] udf_setsize+0xd3c/0x1430 fs/udf/inode.c:1246 udf_setattr+0x36c/0x540 fs/udf/file.c:277 notify_change+0xc6d/0xf50 fs/attr.c:505 do_truncate+0x21c/0x300 fs/open.c:65 do_sys_ftruncate+0x2eb/0x390 fs/open.c:193 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