syzbot


WARNING in udf_setsize

Status: upstream: reported C repro on 2023/02/20 06:04
Reported-by: syzbot+110ab07ed1a10e093e2c@syzkaller.appspotmail.com
First crash: 402d, last: 402d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in udf_setsize origin:upstream C 2 11d 341d 0/3 upstream: reported C repro on 2023/04/22 09:32
upstream WARNING in udf_setsize udf C done 24 297d 467d 22/26 fixed on 2023/06/08 14:41
linux-6.1 WARNING in udf_setsize origin:upstream C 2 16d 194d 0/3 upstream: reported C repro on 2023/09/16 17:41
upstream WARNING in udf_setsize (2) udf C done 24 4d09h 290d 0/26 upstream: reported C repro on 2023/06/12 18:18

Sample crash report:
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8154 at fs/udf/inode.c:638 udf_extend_file fs/udf/inode.c:638 [inline]
WARNING: CPU: 1 PID: 8154 at fs/udf/inode.c:638 udf_setsize+0x6ba/0xef0 fs/udf/inode.c:1242
Kernel panic - not syncing: kernel: panic_on_warn set ...

CPU: 1 PID: 8154 Comm: syz-executor180 Not tainted 4.14.305-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x21d/0x451 kernel/panic.c:247
 check_panic_on_warn.cold+0x19/0x35 kernel/panic.c:171
 __warn+0xdf/0x1e0 kernel/panic.c:603
 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:967
RIP: 0010:udf_extend_file fs/udf/inode.c:638 [inline]
RIP: 0010:udf_setsize+0x6ba/0xef0 fs/udf/inode.c:1242
RSP: 0018:ffff88808fd37be8 EFLAGS: 00010297
RAX: ffff8880aa0fa000 RBX: 0000000000000400 RCX: 0000000000000009
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000001
RBP: ffff88808fd37d58 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880aa0fa000 R12: ffff88808a7a06f8
R13: ffff88808a7a07bc R14: 0000000000000000 R15: 0000000000000200
 udf_setattr+0xd2/0x130 fs/udf/file.c:268
 notify_change+0x56b/0xd10 fs/attr.c:315
 do_truncate+0xff/0x1a0 fs/open.c:63
 do_sys_ftruncate.constprop.0+0x3a3/0x480 fs/open.c:205
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fc7a7994cc9
RSP: 002b:00007ffd09c051c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fc7a7994cc9
RDX: ffffffffffffffc0 RSI: 0000000000000200 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00007ffd09c051f0 R09: 00007ffd09c051f0
R10: 00007ffd09c051f0 R11: 0000000000000246 R12: 00007ffd09c051ec
R13: 00007ffd09c05220 R14: 00007ffd09c05200 R15: 0000000000000022
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/20 06:04 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in udf_setsize
* Struck through repros no longer work on HEAD.