syzbot


kernel BUG in __ext4_journal_stop

Status: upstream: reported C repro on 2022/11/28 10:23
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+bdab24d5bf96d57c50b0@syzkaller.appspotmail.com
First crash: 541d, last: 13d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly ext4 report (Mar 2024) 0 (1) 2024/03/12 09:29
Re: [syzbot] [ext4?] kernel BUG in ext4_write_inline_data_end (2) 1 (1) 2024/02/06 15:44
[syzbot] kernel BUG in __ext4_journal_stop 1 (6) 2024/01/30 06:22
[syzbot] Monthly ext4 report (Jan 2024) 0 (1) 2024/01/09 18:20
[syzbot] Monthly ext4 report (May 2023) 5 (6) 2023/06/03 06:20
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in __ext4_journal_stop origin:upstream C 2 27d 423d 0/3 upstream: reported C repro on 2023/03/26 14:44
linux-6.1 kernel BUG in __ext4_journal_stop origin:upstream C 1 4d06h 310d 0/3 upstream: reported C repro on 2023/07/17 08:36
android-6-1 kernel BUG in __ext4_journal_stop origin:upstream C error 2 15d 354d 0/2 upstream: reported C repro on 2023/06/03 10:54
android-5-15 kernel BUG in __ext4_journal_stop ext4 origin:upstream C error 7 1d15h 542d 0/2 upstream: reported C repro on 2022/11/27 03:57
Last patch testing requests (12)
Created Duration User Patch Repo Result
2024/03/22 18:11 19m retest repro upstream report log
2024/03/06 17:24 37m retest repro upstream OK log
2024/03/06 17:24 23m retest repro upstream OK log
2024/03/06 17:24 51m retest repro upstream OK log
2024/02/21 14:35 19m retest repro upstream OK log
2024/02/13 03:23 23m retest repro upstream OK log
2024/01/11 06:45 1h33m retest repro upstream OK log
2024/01/10 17:46 22m retest repro upstream OK log
2024/01/10 17:46 27m retest repro upstream OK log
2024/01/10 17:46 1h38m retest repro upstream OK log
2023/06/02 03:17 21m tytso@mit.edu patch git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git ext4_for_linus_stable OK log
2023/04/06 10:40 31m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/01/30 01:17 5h03m bisect fix upstream job log (1)
2023/05/21 21:31 38m bisect fix upstream job log (0) log
2023/02/06 16:16 40m bisect fix upstream job log (0) log

Sample crash report:
EXT4-fs (loop0): mounted filesystem 00000000-a357-0000-0000-000000000000 r/w without journal. Quota mode: none.
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4_jbd2.c:53!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 5215 Comm: syz-executor351 Not tainted 6.9.0-rc7-syzkaller-00056-g45db3ab70092 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1d7/0x210 fs/ext4/ext4_jbd2.c:123
Code: 85 ed 41 0f 45 dd e8 38 48 4f ff 89 d8 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc e8 f4 94 aa ff e9 8d fe ff ff e8 1a 48 4f ff 90 <0f> 0b 4c 89 f7 e8 0f 95 aa ff e9 c3 fe ff ff e8 05 95 aa ff e9 de
RSP: 0018:ffffc9000334f530 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff823e8327
RDX: ffff888023700000 RSI: ffffffff823e84d6 RDI: 0000000000000007
RBP: ffffffff8b2472c0 R08: 0000000000000007 R09: 0000000000000fff
R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000328
R13: 0000000000000004 R14: 0000000002007ffb R15: 0000000000000005
FS:  00007f83c8e4e6c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007f84 CR3: 000000002055c000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x4c2/0xc50 fs/ext4/inline.c:808
 ext4_da_write_end+0x641/0xd50 fs/ext4/inode.c:3022
 generic_perform_write+0x337/0x620 mm/filemap.c:3985
 ext4_buffered_write_iter+0x11f/0x3d0 fs/ext4/file.c:299
 ext4_file_write_iter+0x874/0x1a40 fs/ext4/file.c:698
 call_write_iter include/linux/fs.h:2110 [inline]
 iter_file_splice_write+0x906/0x10b0 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x19b/0x6d0 fs/splice.c:1164
 splice_direct_to_actor+0x346/0xa40 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x17e/0x250 fs/splice.c:1233
 do_sendfile+0xaa8/0xdb0 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x1da/0x220 fs/read_write.c:1348
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f83c8e97bd9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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:00007f83c8e4e218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f83c8f206c8 RCX: 00007f83c8e97bd9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 0000000000000013 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 00007f83c8f206c0
R13: 00007f83c8f1e100 R14: 00007f83c8eec84c R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1d7/0x210 fs/ext4/ext4_jbd2.c:123
Code: 85 ed 41 0f 45 dd e8 38 48 4f ff 89 d8 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc e8 f4 94 aa ff e9 8d fe ff ff e8 1a 48 4f ff 90 <0f> 0b 4c 89 f7 e8 0f 95 aa ff e9 c3 fe ff ff e8 05 95 aa ff e9 de
RSP: 0018:ffffc9000334f530 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff823e8327
RDX: ffff888023700000 RSI: ffffffff823e84d6 RDI: 0000000000000007
RBP: ffffffff8b2472c0 R08: 0000000000000007 R09: 0000000000000fff
R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000328
R13: 0000000000000004 R14: 0000000002007ffb R15: 0000000000000005
FS:  00007f83c8e4e6c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007f84 CR3: 000000002055c000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/09 21:55 upstream 45db3ab70092 de979bc2 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in __ext4_journal_stop
2024/04/25 22:09 upstream e33c4963bf53 8bdc0f22 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in __ext4_journal_stop
2024/03/08 18:06 upstream 3aaa8ce7a335 8e75c913 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in __ext4_journal_stop
2023/11/19 08:59 upstream 05aa69b096a0 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in __ext4_journal_stop
2023/07/28 06:52 upstream 57012c57536f 92476829 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in __ext4_journal_stop
2023/07/04 01:43 upstream a901a3568fd2 6e553898 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in __ext4_journal_stop
2023/06/27 02:57 upstream c0a572d9d32f 4cd5bb25 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in __ext4_journal_stop
2023/06/16 12:25 upstream 62d8779610bb f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in __ext4_journal_stop
2023/05/31 20:35 upstream 48b1320a674e e2a77acd .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in __ext4_journal_stop
2023/05/31 10:49 upstream afead42fdfca 09898419 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in __ext4_journal_stop
2023/03/13 11:04 upstream eeac8ede1755 5205ef30 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2022/11/28 10:04 upstream cf562a45a0d5 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2023/08/11 11:05 linux-next 21ef7b1e17d0 da3c3ef8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in __ext4_journal_stop
2023/03/25 12:45 upstream 65aca32efdcb fbf0499a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in __ext4_journal_stop
2023/07/04 23:30 upstream b5641a5d8b8b 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in __ext4_journal_stop
2023/02/26 18:46 upstream 2fcd07b7ccd5 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2023/01/07 16:16 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2022/12/05 08:54 upstream 0ba09b173387 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2022/11/30 10:22 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __ext4_journal_stop
2023/04/21 10:52 linux-next 44bf136283e5 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __ext4_journal_stop
* Struck through repros no longer work on HEAD.