syzbot


INFO: task hung in jbd2_journal_commit_transaction

Status: upstream: reported on 2025/07/11 05:39
Reported-by: syzbot+517b65f50cff6a0ad611@syzkaller.appspotmail.com
First crash: 7d20h, last: 7d20h
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in jbd2_journal_commit_transaction (2) ext4 1 1 1590d 1590d 0/29 auto-closed as invalid on 2021/06/09 10:13
android-44 INFO: task hung in jbd2_journal_commit_transaction 1 C 6 2575d 2289d 0/2 public: reported C repro on 2019/04/13 00:00
android-49 INFO: task hung in jbd2_journal_commit_transaction 1 5 2483d 2628d 0/3 auto-closed as invalid on 2019/03/29 12:13
upstream INFO: task hung in jbd2_journal_commit_transaction (5) ext4 1 C error 2131 10d 429d 0/29 upstream: reported C repro on 2024/05/15 03:54
linux-6.1 INFO: task hung in jbd2_journal_commit_transaction 1 1 778d 778d 0/3 auto-obsoleted due to no activity on 2023/09/09 09:50
linux-6.1 INFO: task hung in jbd2_journal_commit_transaction (2) origin:lts-only 1 syz 1 7d09h 7d09h 0/3 upstream: reported syz repro on 2025/07/11 16:44
upstream INFO: task hung in jbd2_journal_commit_transaction (4) ext4 1 7 722d 870d 0/29 auto-obsoleted due to no activity on 2023/10/25 18:13
upstream INFO: task hung in jbd2_journal_commit_transaction (3) ext4 1 C error error 24 1023d 1308d 0/29 auto-obsoleted due to no activity on 2023/01/27 09:20
upstream INFO: task hung in jbd2_journal_commit_transaction ext4 1 C 52 2470d 2489d 0/29 closed as dup on 2018/10/02 14:53
android-414 INFO: task hung in jbd2_journal_commit_transaction 1 C 31 2474d 2291d 0/1 public: reported C repro on 2019/04/11 00:00

Sample crash report:
INFO: task jbd2/sda1-8:5118 blocked for more than 143 seconds.
      Not tainted 6.6.97-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/sda1-8     state:D stack:23240 pid:5118  ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x14e2/0x4580 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 io_schedule+0x80/0xd0 kernel/sched/core.c:9023
 bit_wait_io+0x11/0xd0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0xac/0x2d0 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x123/0x170 kernel/sched/wait_bit.c:64
 wait_on_buffer include/linux/buffer_head.h:373 [inline]
 journal_wait_on_commit_record fs/jbd2/commit.c:171 [inline]
 jbd2_journal_commit_transaction+0x3695/0x5c30 fs/jbd2/commit.c:888
 kjournald2+0x416/0x810 fs/jbd2/journal.c:201
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8cd2fa60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8cd2fa60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8cd2fa60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
2 locks held by getty/5544:
 #0: ffff88802d6440a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x425/0x1380 drivers/tty/n_tty.c:2217
1 lock held by syz.3.4701/24379:

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x39b/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf41/0xf80 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 24379 Comm: syz.3.4701 Not tainted 6.6.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:245 [inline]
RIP: 0010:__sanitizer_cov_trace_cmp8+0x1f/0x80 kernel/kcov.c:293
Code: 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 04 24 65 48 8b 0d 70 21 7e 7e 65 8b 15 71 21 7e 7e 81 e2 00 01 ff 00 74 11 <81> fa 00 01 00 00 75 57 83 b9 1c 16 00 00 00 74 4e 8b 91 f8 15 00
RSP: 0018:ffffc900001f0870 EFLAGS: 00000006
RAX: ffffffff813a9486 RBX: ffffffff81000000 RCX: ffff88801f7c1e00
RDX: 0000000000010000 RSI: ffffffff81000000 RDI: ffffffffa0000693
RBP: ffffc900001f0998 R08: ffffc900001f0a10 R09: 0000000000000012
R10: dffffc0000000000 R11: fffffbfff1c9525e R12: ffffc900001f0948
R13: dffffc0000000000 R14: ffffc900001f097d R15: ffffffffa0000693
FS:  00007ff3c22b86c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007e7a5000 CR4: 00000000003506e0
Call Trace:
 <IRQ>
 orc_find arch/x86/kernel/unwind_orc.c:206 [inline]
 unwind_next_frame+0x1c6/0x2970 arch/x86/kernel/unwind_orc.c:494
 arch_stack_walk+0x144/0x190 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook+0x6e/0x4d0 mm/slab.h:767
 slab_alloc_node mm/slub.c:3485 [inline]
 slab_alloc mm/slub.c:3493 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3500 [inline]
 kmem_cache_alloc+0x11e/0x2e0 mm/slub.c:3509
 __sigqueue_alloc+0x40c/0x520 kernel/signal.c:438
 __send_signal_locked+0x22f/0xe00 kernel/signal.c:1130
 do_send_sig_info kernel/signal.c:1312 [inline]
 group_send_sig_info+0x1fa/0x260 kernel/signal.c:1462
 do_bpf_send_signal+0x7f/0x190 kernel/trace/bpf_trace.c:836
 irq_work_single+0xd5/0x230 kernel/irq_work.c:221
 irq_work_run_list kernel/irq_work.c:252 [inline]
 irq_work_run+0x156/0x2e0 kernel/irq_work.c:261
 __sysvec_irq_work+0x98/0x380 arch/x86/kernel/irq_work.c:22
 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline]
 sysvec_irq_work+0x9c/0xc0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:723
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline]
RIP: 0010:native_apic_msr_write+0x39/0x50 arch/x86/include/asm/apic.h:196
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 f3 0f 1e fa 89 f6 31 d2 e9 07 92 19 03 0f 1f 80 00 00 00
RSP: 0018:ffffc9000e5bfcd8 EFLAGS: 00000246
RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f
RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f
RBP: 0000000000000000 R08: ffffc9000e5bfc47 R09: 1ffff92001cb7f88
R10: dffffc0000000000 R11: fffff52001cb7f89 R12: ffff8880b8f35201
R13: dffffc0000000000 R14: ffff8880b8f35290 R15: 0000000000000020
 __apic_send_IPI_self arch/x86/include/asm/apic.h:454 [inline]
 arch_irq_work_raise+0x68/0x70 arch/x86/kernel/irq_work.c:31
 irq_work_queue+0x99/0x140 kernel/irq_work.c:124
 bpf_send_signal_common+0x2b6/0x420 kernel/trace/bpf_trace.c:875
 ____bpf_send_signal kernel/trace/bpf_trace.c:884 [inline]
 bpf_send_signal+0x19/0x20 kernel/trace/bpf_trace.c:882
 bpf_prog_7ba5217f62dcd359+0x40/0x44
 bpf_dispatcher_nop_func include/linux/bpf.h:1213 [inline]
 __bpf_prog_run include/linux/filter.h:612 [inline]
 bpf_prog_run include/linux/filter.h:619 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2322 [inline]
 bpf_trace_run2+0x1d1/0x3c0 kernel/trace/bpf_trace.c:2361
 trace_sys_enter+0x69/0x80 include/trace/events/syscalls.h:18
 syscall_trace_enter+0xf0/0x150 kernel/entry/common.c:81
 do_syscall_64+0x28/0xb0 arch/x86/entry/common.c:77
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ff3c132ab19
Code: 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 c7 c0 0f 00 00 00 0f 05 <0f> 1f 80 00 00 00 00 48 81 ec 48 01 00 00 49 89 d0 64 48 8b 04 25
RSP: 002b:00007ff3c22b7a80 EFLAGS: 00000246 ORIG_RAX: 000000000000000f
RAX: ffffffffffffffda RBX: 00007ff3c15b5fa0 RCX: 00007ff3c132ab19
RDX: 00007ff3c22b7a80 RSI: 00007ff3c22b7bb0 RDI: 0000000000000011
RBP: 00007ff3c1410b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff3c15b5fa0 R15: 00007ffdd33ce058
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/11 05:38 linux-6.6.y 59a2de10b81a 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in jbd2_journal_commit_transaction
* Struck through repros no longer work on HEAD.