syzbot


WARNING in __jbd2_log_wait_for_space

Status: upstream: reported C repro on 2025/01/03 03:46
Subsystems: ext4 ocfs2
[Documentation on labels]
Reported-by: syzbot+04ae2c9e709a347f1a81@syzkaller.appspotmail.com
First crash: 6d04h, last: 13h16m
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in __jbd2_log_wait_for_space (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] [ocfs2?] WARNING in __jbd2_log_wait_for_space 0 (1) 2025/01/03 03:46

Sample crash report:
__jbd2_log_wait_for_space: needed 5461 blocks and only had 1246 space available
__jbd2_log_wait_for_space: no way to get more journal space in loop0-75
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5817 at fs/jbd2/checkpoint.c:115 __jbd2_log_wait_for_space+0x3d5/0x490 fs/jbd2/checkpoint.c:115
Modules linked in:
CPU: 0 UID: 0 PID: 5817 Comm: syz-executor398 Not tainted 6.13.0-rc5-syzkaller-00161-g63676eefb7a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__jbd2_log_wait_for_space+0x3d5/0x490 fs/jbd2/checkpoint.c:115
Code: eb 8c 08 8e 48 8b 54 24 20 44 89 f1 e8 94 88 99 fe 48 c7 c7 20 d0 1e 8c 48 c7 c6 eb 8c 08 8e 48 8b 54 24 50 e8 7c 88 99 fe 90 <0f> 0b 90 4c 89 e7 be fb ff ff ff e8 bb 2d 01 00 e9 31 ff ff ff 89
RSP: 0018:ffffc90003d8f420 EFLAGS: 00010246
RAX: 0000000000000047 RBX: 0000000000000001 RCX: efcf8edf72869d00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff817f0a2c R09: 1ffff110170c519a
R10: dffffc0000000000 R11: ffffed10170c519b R12: ffff888023c96000
R13: dffffc0000000000 R14: 00000000000004de R15: ffff888023c96690
FS:  000055555c971380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd62004f88 CR3: 0000000032006000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 add_transaction_credits fs/jbd2/transaction.c:283 [inline]
 start_this_handle+0x10d1/0x2110 fs/jbd2/transaction.c:407
 jbd2__journal_start+0x2da/0x5d0 fs/jbd2/transaction.c:505
 jbd2_journal_start+0x29/0x40 fs/jbd2/transaction.c:544
 ocfs2_start_trans+0x3c9/0x700 fs/ocfs2/journal.c:352
 ocfs2_shutdown_local_alloc+0x218/0xa90 fs/ocfs2/localalloc.c:417
 ocfs2_dismount_volume+0x202/0x910 fs/ocfs2/super.c:1877
 generic_shutdown_super+0x139/0x2d0 fs/super.c:642
 kill_block_super+0x44/0x90 fs/super.c:1710
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
 task_work_run+0x24f/0x310 kernel/task_work.c:239
 ptrace_notify+0x2d2/0x380 kernel/signal.c:2503
 ptrace_report_syscall include/linux/ptrace.h:415 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline]
 syscall_exit_work+0xc7/0x1d0 kernel/entry/common.c:173
 syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline]
 syscall_exit_to_user_mode+0x24a/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f747d7b1347
Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd620051e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f747d7b1347
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd620052a0
RBP: 00007ffd620052a0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffd62006300
R13: 000055555c9726c0 R14: 0000000000000001 R15: 431bde82d7b634db
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/04 18:32 upstream 63676eefb7a0 f3558dbf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __jbd2_log_wait_for_space
2024/12/30 05:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 573067a5a685 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in __jbd2_log_wait_for_space
2024/12/30 04:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 573067a5a685 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in __jbd2_log_wait_for_space
2024/12/30 04:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 573067a5a685 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in __jbd2_log_wait_for_space
2024/12/30 03:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 573067a5a685 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __jbd2_log_wait_for_space
* Struck through repros no longer work on HEAD.