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: 514d, last: 33d
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 31d 395d 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 12d 283d 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 21d 327d 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 6d21h 515d 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-0000-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: 3 PID: 5233 Comm: syz-executor301 Not tainted 6.8.0-rc7-syzkaller-00142-g3aaa8ce7a335 #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+0x1d8/0x210 fs/ext4/ext4_jbd2.c:123
Code: 85 ed 41 0f 45 dd e8 97 2e 52 ff 89 d8 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc e8 a3 5b ab ff e9 8c fe ff ff e8 79 2e 52 ff 90 <0f> 0b 4c 89 f7 e8 be 5b ab ff e9 c2 fe ff ff e8 b4 5b ab ff e9 dd
RSP: 0018:ffffc9000356f918 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff82391eb7
RDX: ffff888024bda400 RSI: ffffffff82392067 RDI: 0000000000000007
RBP: ffffffff8b245580 R08: 0000000000000007 R09: 0000000000000fff
R10: 0000000000000000 R11: 0000000000000003 R12: 0000000000000328
R13: 0000000000000009 R14: 0000000000000012 R15: 0000000000000004
FS:  00007f9d6b85a6c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d6b839d58 CR3: 0000000026a3e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x49e/0xc20 fs/ext4/inline.c:808
 ext4_da_write_end+0x5f5/0xce0 fs/ext4/inode.c:3022
 generic_perform_write+0x338/0x620 mm/filemap.c:3941
 ext4_buffered_write_iter+0x11f/0x3d0 fs/ext4/file.c:299
 ext4_file_write_iter+0x819/0x1960 fs/ext4/file.c:698
 call_write_iter include/linux/fs.h:2087 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x6de/0x1110 fs/read_write.c:590
 ksys_write+0x12f/0x260 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f9d6b89db59
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:00007f9d6b85a218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9d6b9266c8 RCX: 00007f9d6b89db59
RDX: 0000000000000009 RSI: 0000000020000f80 RDI: 0000000000000004
RBP: 00007f9d6b9266c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9d6b8f2828
R13: 00007f9d6b8f20c0 R14: 0030656c69662f2e R15: 6fe44da6291e1272
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1d8/0x210 fs/ext4/ext4_jbd2.c:123
Code: 85 ed 41 0f 45 dd e8 97 2e 52 ff 89 d8 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc e8 a3 5b ab ff e9 8c fe ff ff e8 79 2e 52 ff 90 <0f> 0b 4c 89 f7 e8 be 5b ab ff e9 c2 fe ff ff e8 b4 5b ab ff e9 dd
RSP: 0018:ffffc9000356f918 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff82391eb7
RDX: ffff888024bda400 RSI: ffffffff82392067 RDI: 0000000000000007
RBP: ffffffff8b245580 R08: 0000000000000007 R09: 0000000000000fff
R10: 0000000000000000 R11: 0000000000000003 R12: 0000000000000328
R13: 0000000000000009 R14: 0000000000000012 R15: 0000000000000004
FS:  00007f9d6b85a6c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d6b839d58 CR3: 0000000026a3e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.