syzbot


WARNING in udf_setsize

Status: fixed on 2023/06/08 14:41
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+0937935b993956ba28ab@syzkaller.appspotmail.com
Fix commit: 256fe4162f8b udf: Do not update file length for failed writes to inline files
First crash: 445d, last: 270d
Cause bisection: introduced by (bisect log) :
commit 16d0556568148bdcaa45d077cac9f8f7077cf70a
Author: Jan Kara <jack@suse.cz>
Date: Wed Dec 7 17:17:34 2022 +0000

  udf: Discard preallocation before extending file with a hole

Crash: WARNING in udf_setsize (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [udf?] WARNING in udf_setsize 0 (1) 2022/12/17 09:01
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 17d 315d 0/3 upstream: reported C repro on 2023/04/22 09:32
linux-6.1 WARNING in udf_setsize origin:upstream C 1 36d 167d 0/3 upstream: reported C repro on 2023/09/16 17:41
linux-4.14 WARNING in udf_setsize C 1 376d 376d 0/1 upstream: reported C repro on 2023/02/20 06:04
upstream WARNING in udf_setsize (2) udf C done 23 15d 263d 0/26 upstream: reported C repro on 2023/06/12 18:18

Sample crash report:
loop0: detected capacity change from 0 to 2048
UDF-fs: error (device loop0): udf_process_sequence: Primary Volume Descriptor not found!
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5068 at fs/udf/inode.c:639 udf_setsize+0xf9e/0x1380 fs/udf/inode.c:1236
Modules linked in:
CPU: 1 PID: 5068 Comm: syz-executor162 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:udf_extend_file fs/udf/inode.c:638 [inline]
RIP: 0010:udf_setsize+0xf9e/0x1380 fs/udf/inode.c:1236
Code: 8c fe 45 85 f6 49 bf 00 00 00 00 00 fc ff df 74 0a e8 86 16 8c fe e9 34 ff ff ff e8 7c 16 8c fe e9 fa fd ff ff e8 72 16 8c fe <0f> 0b e9 61 f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 1a f1 ff ff 48 89
RSP: 0018:ffffc90003b1fb00 EFLAGS: 00010293
RAX: ffffffff82ffbf4e RBX: 0000000000000800 RCX: ffff888025930000
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000800
RBP: ffffc90003b1fcd8 R08: ffffffff82ffb5a8 R09: ffffed100e5b20f1
R10: ffffed100e5b20f1 R11: 1ffff1100e5b20f0 R12: 1ffff92000763f70
R13: ffffc90003b1fc10 R14: 0000000000001000 R15: 0000000000000009
FS:  00005555566b03c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000066c7e0 CR3: 00000000757a9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 udf_setattr+0x362/0x530 fs/udf/file.c:281
 notify_change+0xe50/0x1100 fs/attr.c:482
 do_truncate+0x200/0x2f0 fs/open.c:65
 do_sys_ftruncate+0x2b0/0x350 fs/open.c:193
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fae68650da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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:00007ffc018a5028 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007ffc018a5038 RCX: 00007fae68650da9
RDX: ffffffffffffffc0 RSI: 00000000000007fb RDI: 0000000000000004
RBP: 00007ffc018a5030 R08: 00007fae6860e360 R09: 00007fae6860e360
R10: 00007ffc018a5030 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/18 16:49 upstream f9ff5644bcc0 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in udf_setsize
2022/12/13 09:57 upstream 764822972d64 67be1ae7 .config strace log report syz C [mounted in repro] ci2-upstream-fs WARNING in udf_setsize
2023/06/05 13:23 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/06/02 10:57 upstream 1874a42a7d74 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/04/28 07:30 upstream 91ec4b0d11fe 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/03/25 10:33 upstream 65aca32efdcb 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/02/05 02:37 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/01/22 17:06 upstream 2241ab53cbb5 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in udf_setsize
2023/01/16 15:03 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in udf_setsize
2023/01/13 20:50 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/01/07 02:23 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/01/05 18:00 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2023/01/02 01:00 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2022/12/29 13:44 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2022/12/17 15:12 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2022/12/17 15:07 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in udf_setsize
2022/12/17 15:07 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in udf_setsize
2022/12/17 15:07 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in udf_setsize
2022/12/17 00:55 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2022/12/16 10:28 upstream 851f657a8642 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_setsize
2022/12/13 09:26 upstream 764822972d64 67be1ae7 .config console log report info ci2-upstream-fs WARNING in udf_setsize
2022/12/13 08:58 upstream 764822972d64 67be1ae7 .config console log report info ci2-upstream-fs WARNING in udf_setsize
2022/12/17 15:10 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in udf_setsize
2022/12/17 15:10 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in udf_setsize
* Struck through repros no longer work on HEAD.