syzbot


kernel BUG in jbd2_cleanup_journal_tail

Status: auto-obsoleted due to no activity on 2025/01/20 17:41
Reported-by: syzbot+08247eaf130b8e3b3363@syzkaller.appspotmail.com
First crash: 127d, last: 100d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/11/11 upstream (ToT) 2d5404caa8c7 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in jbd2_cleanup_journal_tail origin:upstream C done 9 114d 126d 3/3 fixed on 2024/10/28 14:52
upstream kernel BUG in jbd2_cleanup_journal_tail ext4 C 11 115d 151d 0/28 auto-obsoleted due to no activity on 2024/12/06 19:46
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/12 17:14 12m retest repro linux-5.15.y report log
2024/10/12 17:14 12m retest repro linux-5.15.y report log

Sample crash report:
JBD2: Journal too short (blocks 2-1024).
JBD2: recovery failed
(syz.0.97,4048,0):ocfs2_journal_load:1082 ERROR: Failed to load journal!
(syz.0.97,4048,0):ocfs2_check_volume:2429 ERROR: ocfs2 journal load failed! -5
(syz.0.97,4048,0):ocfs2_check_volume:2485 ERROR: status = -5
(syz.0.97,4048,0):ocfs2_mount_volume:1824 ERROR: status = -5
------------[ cut here ]------------
kernel BUG at fs/jbd2/checkpoint.c:333!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4048 Comm: syz.0.97 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:jbd2_cleanup_journal_tail+0x2b6/0x2c0 fs/jbd2/checkpoint.c:333
Code: 4c 24 40 80 e1 07 80 c1 03 38 c1 0f 8c 69 ff ff ff 48 8d 7c 24 40 e8 19 ef 97 ff e9 5a ff ff ff e8 ef 17 02 08 e8 fa 24 4e ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54
RSP: 0018:ffffc90002ea6dc0 EFLAGS: 00010246
RAX: ffffffff82323576 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc900036a9000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90002ea6e90 R08: ffffffff82323403 R09: ffffed100f9f1019
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005d4dbc
R13: ffff88807cf88000 R14: 1ffff920005d4dc2 R15: 1ffff1100f9f1000
FS:  00007f5d3f9cf6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faf094c5160 CR3: 000000005f224000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 jbd2_journal_flush+0x34b/0xc90 fs/jbd2/journal.c:2486
 ocfs2_journal_shutdown+0x423/0xb20 fs/ocfs2/journal.c:1020
 ocfs2_mount_volume+0x1751/0x19e0 fs/ocfs2/super.c:1845
 ocfs2_fill_super+0x34d7/0x58a0 fs/ocfs2/super.c:1083
 mount_bdev+0x2c9/0x3f0 fs/super.c:1398
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1528
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f5d4155879a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5d3f9cee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5d3f9ceef0 RCX: 00007f5d4155879a
RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007f5d3f9ceeb0
RBP: 0000000020000080 R08: 00007f5d3f9ceef0 R09: 00000000000008c0
R10: 00000000000008c0 R11: 0000000000000246 R12: 0000000020000040
R13: 00007f5d3f9ceeb0 R14: 0000000000004436 R15: 00000000200000c0
 </TASK>
Modules linked in:
---[ end trace 6ccfea1de8c3299f ]---
RIP: 0010:jbd2_cleanup_journal_tail+0x2b6/0x2c0 fs/jbd2/checkpoint.c:333
Code: 4c 24 40 80 e1 07 80 c1 03 38 c1 0f 8c 69 ff ff ff 48 8d 7c 24 40 e8 19 ef 97 ff e9 5a ff ff ff e8 ef 17 02 08 e8 fa 24 4e ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54
RSP: 0018:ffffc90002ea6dc0 EFLAGS: 00010246
RAX: ffffffff82323576 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc900036a9000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90002ea6e90 R08: ffffffff82323403 R09: ffffed100f9f1019
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005d4dbc
R13: ffff88807cf88000 R14: 1ffff920005d4dc2 R15: 1ffff1100f9f1000
FS:  00007f5d3f9cf6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe5c67e2f98 CR3: 000000005f224000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/28 05:43 linux-5.15.y 3a5928702e71 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in jbd2_cleanup_journal_tail
2024/09/16 01:03 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in jbd2_cleanup_journal_tail
2024/09/16 01:03 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in jbd2_cleanup_journal_tail
2024/09/27 16:08 linux-5.15.y 3a5928702e71 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
2024/09/27 16:07 linux-5.15.y 3a5928702e71 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
2024/09/16 00:45 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
2024/09/15 23:20 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
2024/09/15 23:08 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
2024/09/15 23:08 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in jbd2_cleanup_journal_tail
* Struck through repros no longer work on HEAD.