syzbot


WARNING in udf_add_free_space

Status: upstream: reported C repro on 2022/10/19 03:44
Reported-by: syzbot+8994065e16ddfaed6700@syzkaller.appspotmail.com
First crash: 108d, last: 67d

Fix bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in udf_add_free_space 1 95d 91d 0/24 upstream: reported on 2022/11/05 13:01

Sample crash report:
audit: type=1800 audit(1669764300.830:8): pid=8148 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor299" name="bus" dev="loop1" ino=1367 res=0
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)
audit: type=1800 audit(1669764300.900:9): pid=8144 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor299" name="bus" dev="loop4" ino=1367 res=0
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
WARNING: CPU: 0 PID: 8137 at fs/udf/udfdecl.h:122 udf_updated_lvid fs/udf/udfdecl.h:122 [inline]
WARNING: CPU: 0 PID: 8137 at fs/udf/udfdecl.h:122 udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8137 Comm: syz-executor299 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
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_updated_lvid fs/udf/udfdecl.h:122 [inline]
RIP: 0010:udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Code: 02 84 c0 74 04 3c 03 7e 25 c7 83 38 01 00 00 01 00 00 00 5b 5d 41 5c 41 5d e9 b9 9b f4 fe e8 b4 9b f4 fe 0f 0b e8 ad 9b f4 fe <0f> 0b eb b2 e8 d4 7a 2a ff eb d4 e8 8d 78 2a ff e9 44 fe ff ff e8
RSP: 0018:ffff888098bef6b8 EFLAGS: 00010293
RAX: ffff888094ee61c0 RBX: ffff8880a98c6800 RCX: ffffffff826de975
RDX: 0000000000000000 RSI: ffffffff826de9c3 RDI: 0000000000000005
RBP: 00000000fa800574 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 000000004a87d1ce R12: ffff888089d9b000
R13: 0000000000000000 R14: ffff88808dfdf670 R15: 0000000000000000
 udf_table_new_block+0x48c/0x700 fs/udf/balloc.c:635
 udf_new_block+0x206/0x490 fs/udf/balloc.c:717
 udf_new_inode+0x2d5/0xf30 fs/udf/ialloc.c:85
 udf_create+0x1d/0x180 fs/udf/namei.c:626
 lookup_open+0x893/0x1a20 fs/namei.c:3235
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa2e8a60bf9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe00702e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000000000000a417 RCX: 00007fa2e8a60bf9
RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000bf6 R09: 00007fffe0070310
R10: 00007fffe00701b0 R11: 0000000000000246 R12: 00007fffe007030c
R13: 00007fffe0070340 R14: 00007fffe0070320 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2022/11/29 23:27 linux-4.19.y 3f8a27f9e27b 579a3740 .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in udf_add_free_space
ci2-linux-4-19 2022/11/01 15:06 linux-4.19.y 3f8a27f9e27b a1d8560a .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in udf_add_free_space
ci2-linux-4-19 2022/10/20 08:08 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in udf_add_free_space
ci2-linux-4-19 2022/10/19 13:11 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] WARNING in udf_add_free_space
ci2-linux-4-19 2022/10/19 03:43 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] WARNING in udf_add_free_space
* Struck through repros no longer work on HEAD.