------------[ cut here ]------------ WARNING: CPU: 0 PID: 3662 at fs/udf/inode.c:2017 __udf_add_aext+0x676/0x7d0 fs/udf/inode.c:2017 Modules linked in: CPU: 0 PID: 3662 Comm: syz-executor182 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:__udf_add_aext+0x676/0x7d0 fs/udf/inode.c:2017 Code: ef 0f 84 b3 fb ff ff e8 68 cc a7 fe 0f 0b e9 a7 fb ff ff e8 5c cc a7 fe 48 8b 44 24 20 48 05 b0 00 00 00 eb b7 e8 4a cc a7 fe <0f> 0b e9 27 fb ff ff e8 3e cc a7 fe 0f 0b e9 7d fb ff ff 41 bc fb RSP: 0018:ffffc90003d7f378 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffc90003d7f800 RCX: 0000000000000000 RDX: ffff88801f218000 RSI: ffffffff82d4c7b6 RDI: 0000000000000006 RBP: ffff8880749ddb08 R08: 0000000000000006 R09: 0000000000000000 R10: 00000000000001d0 R11: 0000000000000000 R12: 0000000000000000 R13: 00000000000001d0 R14: 0000000000000010 R15: 00000000000001e8 FS: 0000555556794300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fce22d305e0 CR3: 000000002276a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_setup_indirect_aext+0x576/0x880 fs/udf/inode.c:1983 udf_add_aext+0x208/0x2d0 fs/udf/inode.c:2070 udf_insert_aext fs/udf/inode.c:2236 [inline] udf_update_extents fs/udf/inode.c:1190 [inline] inode_getblk+0x22db/0x4010 fs/udf/inode.c:894 udf_get_block.part.0+0x1c7/0x4e0 fs/udf/inode.c:443 udf_get_block+0x36/0x210 fs/udf/inode.c:425 __block_write_begin_int+0x3b9/0x14b0 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0xb5/0x4d0 fs/buffer.c:2102 udf_write_begin+0x31/0xa0 fs/udf/inode.c:212 generic_perform_write+0x252/0x570 mm/filemap.c:3753 __generic_file_write_iter+0x2aa/0x4d0 mm/filemap.c:3881 udf_file_write_iter+0x2cc/0x650 fs/udf/file.c:170 call_write_iter include/linux/fs.h:2190 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:578 ksys_write+0x127/0x250 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fce22d5ba59 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc3f3136e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000020000080 RCX: 00007fce22d5ba59 RDX: 000000000000fea7 RSI: 0000000020000140 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffc3f313710 R09: 00007ffc3f313710 R10: 00007ffc3f3135b0 R11: 0000000000000246 R12: 00007ffc3f31370c R13: 00007ffc3f313740 R14: 00007ffc3f313720 R15: 0000000000000005