syzbot


INFO: task hung in jbd2_complete_transaction (2)

Status: auto-obsoleted due to no activity on 2024/08/19 14:59
Subsystems: ext4
[Documentation on labels]
First crash: 355d, last: 355d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in jbd2_complete_transaction ext4 1 2517d 2516d 0/28 auto-closed as invalid on 2019/02/22 10:22
upstream INFO: task hung in jbd2_complete_transaction (3) ext4 1 172d 172d 0/28 auto-obsoleted due to no activity on 2025/02/18 06:44

Sample crash report:
INFO: task syz-executor.3:13615 blocked for more than 143 seconds.
      Not tainted 6.9.0-syzkaller-10323-g8f6a15f095a6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:26472 pid:13615 tgid:13608 ppid:5130   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6837
 jbd2_log_wait_commit+0x2ef/0x460 fs/jbd2/journal.c:697
 jbd2_complete_transaction+0x18f/0x200 fs/jbd2/journal.c:833
 ext4_fc_commit+0x87f/0x1850 fs/ext4/fast_commit.c:1199
 ext4_fsync_journal fs/ext4/fsync.c:115 [inline]
 ext4_sync_file+0x455/0xf30 fs/ext4/fsync.c:167
 vfs_fsync_range+0x141/0x230 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2806 [inline]
 iomap_dio_complete+0x85f/0xa30 fs/iomap/direct-io.c:126
 iomap_dio_rw+0x73/0xa0 fs/iomap/direct-io.c:753
 ext4_dio_write_iter fs/ext4/file.c:577 [inline]
 ext4_file_write_iter+0x136b/0x1a40 fs/ext4/file.c:696
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x6b6/0x1140 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+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5528e7cee9
RSP: 002b:00007f5529c590c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5528fac120 RCX: 00007f5528e7cee9
RDX: 0000000000043400 RSI: 0000000020000200 RDI: 0000000000000009
RBP: 00007f5528ec949e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f5528fac120 R15: 00007ffc1f0b6ab8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffffffff8dbb1760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff8dbb1760 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
 #0: ffffffff8dbb1760 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614
2 locks held by getty/4836:
 #0: ffff88802ad790a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2201
3 locks held by syz-fuzzer/5081:
 #0: ffff88802f148420 (sb_writers#5){.+.+}-{0:0}, at: do_unlinkat+0x1d3/0x750 fs/namei.c:4390
 #1: ffff88805e02ca00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:826 [inline]
 #1: ffff88805e02ca00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x288/0x750 fs/namei.c:4394
 #2: ffff88805c93a200 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline]
 #2: ffff88805c93a200 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: vfs_unlink+0xd3/0x9b0 fs/namei.c:4332
5 locks held by kworker/1:6/5258:
1 lock held by syz-executor.0/13583:
3 locks held by syz-executor.3/13615:
 #0: ffff88802bcfd4c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xeb/0x180 fs/file.c:1191
 #1: ffff88802f148420 (sb_writers#5){.+.+}-{0:0}, at: ksys_write+0x12f/0x260 fs/read_write.c:643
 #2: ffff88805c93a200 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline]
 #2: ffff88805c93a200 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:530 [inline]
 #2: ffff88805c93a200 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_file_write_iter+0xd22/0x1a40 fs/ext4/file.c:696

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

NMI backtrace for cpu 0
CPU: 0 PID: 31 Comm: khungtaskd Not tainted 6.9.0-syzkaller-10323-g8f6a15f095a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xf86/0x1240 kernel/hung_task.c:379
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 13581 Comm: syz-executor.0 Not tainted 6.9.0-syzkaller-10323-g8f6a15f095a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:pid_task+0x46/0x170 kernel/pid.c:414
Code: 70 3f 34 00 83 fd 03 41 89 ec 0f 87 21 01 00 00 4a 8d 7c e3 58 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 f7 00 00 00 49 8d 44 24 0a 48 8b 6c c3 08 e8 55 bf 8f 09 31
RSP: 0018:ffffc90000a18d00 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff888065a24500 RCX: ffffffff81545364
RDX: 1ffff1100cb448ac RSI: ffffffff8159ace0 RDI: ffff888065a24560
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000001 R14: 1ffff920001431aa R15: 0000000000000001
FS:  00007f80b3ffb6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f80b3ffaf00 CR3: 000000005b20e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 send_sigqueue+0x13d/0x850 kernel/signal.c:1992
 posix_timer_event kernel/time/posix-timers.c:298 [inline]
 posix_timer_fn+0x181/0x3e0 kernel/time/posix-timers.c:324
 __run_hrtimer kernel/time/hrtimer.c:1687 [inline]
 __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1751
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 90 f3 0f 1e fa 53 48 8b 74 24 08 48 89 fb 48 83 c7 18 e8 0a bc 7e f6 48 89 df e8 f2 38 7f f6 e8 8d 29 a8 f6 fb bf 01 00 00 00 <e8> e2 78 70 f6 65 8b 05 53 c5 16 75 85 c0 74 06 5b c3 cc cc cc cc
RSP: 0018:ffffc90003a37cf0 EFLAGS: 00000206
RAX: 0000000006064b27 RBX: ffff88802263a500 RCX: 1ffffffff1fc8069
RDX: 0000000000000000 RSI: ffffffff8b2cab60 RDI: 0000000000000001
RBP: ffff88802263a900 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8fe445d7 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000021 R14: ffff88802263a500 R15: ffff88802263a500
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 get_signal+0x1e3e/0x2710 kernel/signal.c:2914
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x14a/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xdc/0x260 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f80b327cee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007f80b3ffb0c8 EFLAGS: 00000246
RAX: 000000000000000b RBX: 00007f80b33abf80 RCX: 00007f80b327cee9
RDX: 0000000000000651 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007f80b32c949e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f80b33abf80 R15: 00007ffc1606b498
 </TASK>
vkms_vblank_simulate: vblank timer overrun

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/21 14:55 upstream 8f6a15f095a6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in jbd2_complete_transaction
* Struck through repros no longer work on HEAD.