syzbot


WARNING in __udf_add_aext

Status: fixed on 2023/06/08 14:41
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+0eaad3590d65102b9391@syzkaller.appspotmail.com
Fix commit: e9109a92d2a9 udf: Convert udf_rename() to new directory iteration code
First crash: 617d, last: 379d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 0/20] udf: Fix various syzbot reports 23 (23) 2022/12/18 05:34
[syzbot] WARNING in __udf_add_aext 0 (2) 2022/10/10 17:16
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in __udf_add_aext origin:lts-only C done 42 7d04h 303d 0/3 upstream: reported C repro on 2023/08/20 05:08
linux-4.14 WARNING in __udf_add_aext udf C 3 473d 851d 0/1 upstream: reported C repro on 2022/02/18 06:47
upstream WARNING in __udf_add_aext (3) udf C error 251 1d04h 71d 0/27 upstream: reported C repro on 2024/04/08 08:26
linux-4.19 WARNING in __udf_add_aext udf C error 20 484d 885d 0/1 upstream: reported C repro on 2022/01/14 21:09
upstream WARNING in __udf_add_aext (2) udf syz error done 6 190d 371d 26/27 fixed on 2024/01/30 15:47
linux-6.1 WARNING in __udf_add_aext origin:lts-only C done 54 5d18h 253d 0/3 upstream: reported C repro on 2023/10/08 20:16

Sample crash report:
loop0: detected capacity change from 0 to 128
UDF-fs: error (device loop0): udf_read_tagged: read failed, block=256, location=256
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5068 at fs/udf/inode.c:2005 __udf_add_aext+0x574/0x710
Modules linked in:
CPU: 0 PID: 5068 Comm: syz-executor355 Not tainted 6.2.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__udf_add_aext+0x574/0x710 fs/udf/inode.c:2004
Code: 48 89 df e8 5e 90 e0 fe 48 8b 3b be 18 00 00 00 e8 31 ae 02 00 43 80 3c 34 00 0f 85 d7 fe ff ff e9 da fe ff ff e8 5c e8 8a fe <0f> 0b e9 ce fb ff ff e8 50 e8 8a fe 0f 0b e9 34 fc ff ff e8 44 e8
RSP: 0018:ffffc90003b2f290 EFLAGS: 00010293
RAX: ffffffff8300f314 RBX: 1ffff92000765ee5 RCX: ffff8880754a3a80
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff8300eedb R09: ffffffff8300ee01
R10: 0000000000000002 R11: ffff8880754a3a80 R12: 0000000000000004
R13: ffffc90003b2f720 R14: dffffc0000000000 R15: ffffc90003b2f728
FS:  000055555559b300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020005000 CR3: 0000000024f21000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 udf_add_aext fs/udf/inode.c:2062 [inline]
 udf_do_extend_file+0xa3e/0xf00 fs/udf/inode.c:524
 inode_getblk fs/udf/inode.c:787 [inline]
 udf_get_block+0x161d/0x5130 fs/udf/inode.c:444
 __block_write_begin_int+0x54c/0x1a80 fs/buffer.c:1991
 __block_write_begin fs/buffer.c:2041 [inline]
 block_write_begin+0x93/0x1e0 fs/buffer.c:2102
 udf_write_begin+0x2d/0x60 fs/udf/inode.c:207
 generic_perform_write+0x2e4/0x5e0 mm/filemap.c:3772
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3900
 udf_file_write_iter+0x325/0x5f0 fs/udf/file.c:170
 call_write_iter include/linux/fs.h:2186 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7dc/0xc50 fs/read_write.c:584
 ksys_write+0x177/0x2a0 fs/read_write.c:637
 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:0x7f459fa7e969
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:00007fff5b20ae98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f459fac2508 RCX: 00007f459fa7e969
RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000006
RBP: 00007f459fa3e200 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f459fa3e290
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (170):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/27 06:04 upstream 1b929c02afd3 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __udf_add_aext
2022/10/20 15:51 upstream 55be6084c8e0 b31320fc .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/10/10 22:40 upstream 493ffd6605b2 5bcf0c31 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs WARNING in __udf_add_aext
2022/10/10 17:16 linux-next aaa11ce2ffc8 aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __udf_add_aext
2022/10/10 20:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-gce-arm64 WARNING in __udf_add_aext
2023/06/05 04:41 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/04/02 20:41 upstream 6ab608fe852b f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/04/02 00:57 upstream 00c7b5f4ddc5 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/31 21:44 upstream 5a57b48fdfcb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/03/30 14:35 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/28 15:43 upstream 3a93e40326c8 47f3aaf1 .config console log report info ci2-upstream-fs WARNING in __udf_add_aext
2023/03/23 11:34 upstream fff5a5e7f528 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/21 23:34 upstream 2faac9a98f01 8b4eb097 .config console log report info ci2-upstream-fs WARNING in __udf_add_aext
2023/03/20 13:04 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/19 18:25 upstream a3671bd86a97 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/18 21:43 upstream 534293368afa 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/17 18:22 upstream 38e04b3e4240 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/17 12:15 upstream 38e04b3e4240 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __udf_add_aext
2023/03/13 20:16 upstream fc89d7fb499b 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/03/12 23:22 upstream 134231664868 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/03/12 22:06 upstream 134231664868 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2023/03/05 23:13 upstream f915322fe014 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/03/05 05:48 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/03/04 02:35 upstream 0a3f9a6b0265 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/01/24 22:18 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2023/01/06 09:14 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2023/01/06 08:05 upstream 1f5abbd77e2c 1dac8c7a .config console log report info ci-qemu-upstream WARNING in __udf_add_aext
2022/12/10 14:56 upstream 3ecc37918c80 67be1ae7 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __udf_add_aext
2022/12/09 16:46 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/12/09 00:34 upstream ce19275f0103 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/12/08 00:14 upstream 479174d402bc d88f3abb .config console log report info ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/12/07 08:46 upstream 8ed710da2873 d88f3abb .config console log report info ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/12/07 05:19 upstream 8ed710da2873 d88f3abb .config console log report info ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2022/11/21 04:32 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/21 03:24 upstream 77c51ba552a1 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/20 21:26 upstream 77c51ba552a1 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/20 15:03 upstream 77c51ba552a1 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/20 13:07 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/20 11:34 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/20 08:00 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/19 14:23 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/19 07:58 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/18 23:53 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/18 11:34 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/18 04:37 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/18 01:16 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/17 18:43 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/17 16:24 upstream cc675d22e422 4ba8ab94 .config console log report info ci2-upstream-fs WARNING in __udf_add_aext
2022/11/17 13:25 upstream cc675d22e422 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/17 08:55 upstream cc675d22e422 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/16 20:13 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/16 18:01 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/16 13:46 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/16 07:10 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/16 01:50 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/14 21:53 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/14 20:39 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2022/11/14 16:41 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2022/12/17 22:11 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __udf_add_aext
2022/11/18 17:11 linux-next 15f3bff12cf6 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __udf_add_aext
2022/10/10 16:06 linux-next aaa11ce2ffc8 aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in __udf_add_aext
2022/10/31 07:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __udf_add_aext
* Struck through repros no longer work on HEAD.