syzbot


WARNING in __udf_add_aext (2)

Status: fixed on 2024/01/30 15:47
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+e381e4c52ca8a53c3af7@syzkaller.appspotmail.com
Fix commit: 6f861765464f fs: Block writes to mounted block devices
First crash: 322d, last: 138d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 2aa91851ffa7cdfc0a63330d273115d38324b585
Author: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Date: Sun Aug 27 07:41:46 2023 +0000

  tty: n_tty: extract ECHO_OP processing to a separate function

  
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] [udf?] WARNING in __udf_add_aext (2) 1 (4) 2024/01/16 12:29
[syzbot] Monthly udf report (Sep 2023) 0 (1) 2023/09/08 14:11
[syzbot] Monthly udf report (Aug 2023) 0 (1) 2023/08/07 12:43
[syzbot] Monthly udf report (Jul 2023) 0 (1) 2023/07/07 12:42
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 17 3h26m 251d 0/3 upstream: reported C repro on 2023/08/20 05:08
linux-4.14 WARNING in __udf_add_aext udf C 3 421d 799d 0/1 upstream: reported C repro on 2022/02/18 06:47
upstream WARNING in __udf_add_aext (3) udf C 54 2h20m 19d 0/26 upstream: reported C repro on 2024/04/08 08:26
linux-4.19 WARNING in __udf_add_aext udf C error 20 432d 833d 0/1 upstream: reported C repro on 2022/01/14 21:09
upstream WARNING in __udf_add_aext udf C error 170 327d 564d 22/26 fixed on 2023/06/08 14:41
linux-6.1 WARNING in __udf_add_aext origin:lts-only C done 18 2h27m 201d 0/3 upstream: reported C repro on 2023/10/08 20:16
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/11/06 01:18 25m retest repro upstream OK log
2023/08/27 21:48 34m retest repro upstream report log
2023/08/25 10:58 1h02m retest repro upstream OK log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/01/10 08:19 6h35m bisect fix upstream job log (1)
2023/12/11 04:02 2h32m bisect fix upstream job log (0) log
2023/11/09 22:52 2h16m bisect fix upstream job log (0) log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/11/02 07:00 12h07m bisect upstream error job log (0)
2023/07/01 21:14 48m bisect upstream error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6355 at fs/udf/inode.c:2045 __udf_add_aext+0x67b/0x7d0 fs/udf/inode.c:2045
Modules linked in:
CPU: 0 PID: 6355 Comm: syz-executor.5 Not tainted 6.5.0-rc4-syzkaller-00051-g7bafbd4027ae #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:__udf_add_aext+0x67b/0x7d0 fs/udf/inode.c:2045
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 50 01 00 00 49 8b 7c 24 28 be 18 00 00 00 e8 4f ab 02 00 e9 17 fe ff ff e8 e5 52 9a fe <0f> 0b e9 2a fb ff ff e8 d9 52 9a fe 0f 0b e9 82 fb ff ff bb fb ff
RSP: 0018:ffffc9000416ed50 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc9000416f0f0 RCX: 0000000000000000
RDX: ffff888023c70000 RSI: ffffffff82ebb53b RDI: 0000000000000006
RBP: ffff88806979a7c8 R08: 0000000000000006 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000010 R14: 0000000000000018 R15: ffffc9000416f0f8
FS:  00007f9f551696c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fde11dded58 CR3: 000000007710d000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 udf_add_aext+0x23b/0x2d0 fs/udf/inode.c:2103
 udf_do_extend_file+0x6d4/0x8f0 fs/udf/inode.c:588
 inode_getblk+0x1093/0x4300 fs/udf/inode.c:818
 udf_map_block+0x2de/0x570 fs/udf/inode.c:446
 __udf_get_block+0x99/0x330 fs/udf/inode.c:460
 __block_write_begin_int+0x3c0/0x1470 fs/buffer.c:2128
 __block_write_begin fs/buffer.c:2178 [inline]
 block_write_begin+0xb1/0x490 fs/buffer.c:2239
 udf_write_begin+0x283/0x360 fs/udf/inode.c:261
 generic_perform_write+0x278/0x600 mm/filemap.c:3923
 __generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4018
 udf_file_write_iter+0x239/0x740 fs/udf/file.c:111
 call_write_iter include/linux/fs.h:1871 [inline]
 do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735
 do_iter_write+0x17f/0x830 fs/read_write.c:860
 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901
 iter_file_splice_write+0x698/0xbf0 fs/splice.c:739
 do_splice_from fs/splice.c:936 [inline]
 direct_splice_actor+0x118/0x180 fs/splice.c:1145
 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1091
 do_splice_direct+0x1af/0x280 fs/splice.c:1197
 do_sendfile+0xb88/0x1390 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9f5447cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9f551690c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f9f5459bf80 RCX: 00007f9f5447cae9
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007f9f544c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f9f5459bf80 R15: 00007ffe8373e218
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/04 08:14 upstream 7bafbd4027ae 74621247 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in __udf_add_aext
2023/06/30 11:12 upstream b19edac5992d 01298212 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __udf_add_aext
2023/10/10 02:21 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/07/21 15:28 upstream f7e3a1bafdea 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __udf_add_aext
2023/06/30 09:16 upstream b19edac5992d 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
2023/06/10 06:27 upstream 64569520920a 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __udf_add_aext
* Struck through repros no longer work on HEAD.