WARNING: CPU: 0 PID: 24536 at fs/udf/truncate.c:226 udf_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 24536 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 panic+0x26a/0x50e kernel/panic.c:186 __warn.cold+0x20/0x5a kernel/panic.c:541 report_bug+0x262/0x2b0 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:udf_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226 Code: 89 df 48 c7 c6 40 a9 9a 88 e8 ac f9 ff ff 41 bc ea ff ff ff e9 96 57 78 fa e8 b0 a9 69 f9 48 c7 c7 60 b4 9a 88 e8 0f db fa ff <0f> 0b e9 81 78 78 fa e8 98 a9 69 f9 48 c7 c6 40 ba 9a 88 48 c7 c7 RSP: 0018:ffff8880b2c27948 EFLAGS: 00010286 RAX: 0000000000000024 RBX: ffff88804ff36670 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed1016584f1b RBP: ffff8880b2c27a30 R08: 0000000000000024 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b2c279f0 R13: 0000000000000200 R14: 00000000000000ff R15: ffff88805753e140 udf_write_failed.isra.0+0x17b/0x1d0 fs/udf/inode.c:172 udf_write_begin+0x89/0xa0 fs/udf/inode.c:208 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 attempt to access beyond end of device __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 udf_file_write_iter+0x2d4/0x4e0 fs/udf/file.c:169 loop3: rw=1, want=2098, limit=2048 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 attempt to access beyond end of device vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 loop3: rw=1, want=2107, limit=2048 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 attempt to access beyond end of device entry_SYSCALL_64_after_hwframe+0x49/0xbe loop3: rw=1, want=2108, limit=2048 RIP: 0033:0x7f1feaff40c9 Buffer I/O error on dev loop3, logical block 2107, lost async page write Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 attempt to access beyond end of device RSP: 002b:00007f1fe1245168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 loop3: rw=1, want=2109, limit=2048 RAX: ffffffffffffffda RBX: 00007f1feb114050 RCX: 00007f1feaff40c9 Buffer I/O error on dev loop3, logical block 2108, lost async page write RDX: 000000000208e24b RSI: 0000000020000180 RDI: 000000000000000a RBP: 00007f1feb04fae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff66b385af R14: 00007f1fe1245300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds.. ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 f1 19 00 00 callq 0x1a01 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W