WARNING in udf_truncate_extents

Status: upstream: reported C repro on 2022/03/01 11:21
First crash: 272d, last: 61d

Fix bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in udf_truncate_extents C error 216 7d09h 431d 0/1 upstream: reported C repro on 2021/09/23 06:31
upstream WARNING in udf_truncate_extents C done error 178 8d17h 777d 0/24 upstream: reported C repro on 2020/10/12 13:20

Sample crash report:
attempt to access beyond end of device
loop0: rw=2049, want=3590, limit=2816
attempt to access beyond end of device
loop0: rw=2049, want=3690, limit=2816
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7988 at fs/udf/truncate.c:226 udf_truncate_extents+0x725/0x840 fs/udf/truncate.c:226
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7988 Comm: syz-executor245 Not tainted 4.14.268-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:udf_truncate_extents+0x725/0x840 fs/udf/truncate.c:226
RSP: 0018:ffff8880973f79b0 EFLAGS: 00010297
RAX: ffff888093d0e200 RBX: ffff88808df6d160 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffff88808df6d068
RBP: ffff8880973f7a98 R08: 00000000000000ff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880973f7a58
R13: 0000000000000200 R14: ffff8880973f7a28 R15: ffff8880b39d21c0
 udf_write_failed.isra.0+0x151/0x1a0 fs/udf/inode.c:172
 udf_write_begin+0x7f/0xa0 fs/udf/inode.c:208
 generic_perform_write+0x1c9/0x420 mm/filemap.c:3055
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 udf_file_write_iter+0x284/0x470 fs/udf/file.c:169
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
RIP: 0033:0x7fa223950de9
RSP: 002b:00007ffd966295a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fa223950de9
RDX: 00000000fffffc41 RSI: 0000000020001440 RDI: 0000000000000007
RBP: 0000000000000000 R08: 00007fa2239bfec0 R09: 00007fa2239bfec0
R10: 00007fa2239bfec0 R11: 0000000000000246 R12: 00007ffd966295d0
R13: 00007ffd966295bc R14: 431bde82d7b634db R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2022/03/01 12:02 linux-4.14.y fa33f9094f36 45a13a73 .config log report syz C WARNING in udf_truncate_extents
ci2-linux-4-14 2022/09/28 04:42 linux-4.14.y 4edbf74132a4 75c78242 .config log report info WARNING in udf_truncate_extents
ci2-linux-4-14 2022/03/05 03:44 linux-4.14.y e853993d29aa 45a13a73 .config log report info WARNING in udf_truncate_extents
ci2-linux-4-14 2022/03/01 11:21 linux-4.14.y fa33f9094f36 45a13a73 .config log report info WARNING in udf_truncate_extents
* Struck through repros no longer work on HEAD.