------------[ cut here ]------------ WARNING: CPU: 0 PID: 6307 at fs/udf/inode.c:1926 __udf_add_aext+0x564/0x6f0 Modules linked in: CPU: 0 PID: 6307 Comm: syz.5.181 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__udf_add_aext+0x564/0x6f0 fs/udf/inode.c:1925 Code: c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 b4 d2 8b fe 0f 0b e9 ed fb ff ff e8 a8 d2 8b fe 0f 0b e9 5c fc ff ff e8 9c d2 8b fe <0f> 0b e9 4f fd ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c d1 fa RSP: 0018:ffffc900033e7318 EFLAGS: 00010283 RAX: ffffffff82fec0c4 RBX: 0000000000000150 RCX: 0000000000040000 RDX: ffffc9000493a000 RSI: 0000000000001385 RDI: 0000000000001386 RBP: 00000000bffffe00 R08: ffffffff82febe0c R09: ffffffff82febbc2 R10: 0000000000000002 R11: ffff88801d7c5940 R12: ffffc900033e7540 R13: ffffffffffffff68 R14: dffffc0000000000 R15: 0000000000000010 FS: 00007f5455f9f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b7e57f5a48 CR3: 0000000060e5d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_add_aext fs/udf/inode.c:1987 [inline] udf_insert_aext fs/udf/inode.c:2149 [inline] udf_update_extents fs/udf/inode.c:1083 [inline] inode_getblk fs/udf/inode.c:799 [inline] udf_get_block+0x3ccb/0x5360 fs/udf/inode.c:359 __block_write_begin_int+0x544/0x1a30 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x1f0 fs/buffer.c:2102 udf_write_begin+0x2d/0x60 fs/udf/inode.c:212 generic_perform_write+0x2fc/0x5e0 mm/filemap.c:3845 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3973 udf_file_write_iter+0x291/0x670 fs/udf/file.c:164 do_iter_write+0x6e6/0xc40 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_pwritev+0x216/0x360 fs/read_write.c:1031 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f545517e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5455f9f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f5455335f80 RCX: 00007f545517e719 RDX: 0000000000000001 RSI: 00000000200006c0 RDI: 0000000000000005 RBP: 00007f54551f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000100000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5455335f80 R15: 00007ffcd24f4ad8