syzbot


INFO: task hung in reiserfs_sync_fs

Status: upstream: reported C repro on 2022/12/21 13:12
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+4dadbee41d087d9c6234@syzkaller.appspotmail.com
First crash: 432d, last: 49d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] INFO: task hung in reiserfs_sync_fs 0 (1) 2022/12/21 13:12
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in reiserfs_sync_fs reiserfs C 2 355d 445d 0/1 upstream: reported C repro on 2022/12/05 01:39
linux-4.19 INFO: task hung in reiserfs_sync_fs reiserfs C error 5 354d 421d 0/1 upstream: reported C repro on 2022/12/28 10:53
linux-5.15 INFO: task hung in reiserfs_sync_fs 1 302d 302d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:04
Last patch testing requests (11)
Created Duration User Patch Repo Result
2024/01/19 13:10 36m retest repro upstream OK log
2024/01/19 13:10 25m retest repro upstream OK log
2024/01/18 20:19 1h32m retest repro upstream OK log
2023/12/20 07:32 17m retest repro upstream report log
2023/11/24 23:37 21m retest repro upstream OK log
2023/11/24 23:37 22m retest repro upstream OK log
2023/11/24 21:58 25m retest repro linux-next OK log
2023/10/07 03:31 23m retest repro upstream report log
2023/09/03 12:04 22m retest repro upstream report log
2023/09/03 12:04 16m retest repro upstream report log
2023/01/04 00:31 14m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/11/06 15:10 2h37m bisect fix upstream job log (0) log
2023/07/28 22:26 1h39m bisect fix upstream job log (0) log
2023/03/13 22:47 38m bisect fix upstream job log (0) log

Sample crash report:
INFO: task kworker/1:1:25 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:1     state:D stack:25816 pid:25    ppid:2      flags:0x00004000
Workqueue: events_long flush_old_commits
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
 reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27
 reiserfs_sync_fs+0x81/0x130 fs/reiserfs/super.c:76
 flush_old_commits+0xfb/0x200 fs/reiserfs/super.c:111
 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: 
ffffffff8c795530
 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8c795230 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
4 locks held by kworker/1:1/25:
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline]
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline]
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline]
 #0: ffff888012476538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376
 #1: ffffc90000c1fdb0 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380
 #2: ffff8880197480e0 (&type->s_umount_key#57){++++}-{3:3}, at: flush_old_commits+0x7c/0x200 fs/reiserfs/super.c:97
 #3: ffff88801e3fc090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27
1 lock held by khungtaskd/27:
 #0: 
ffffffff8c796140
 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6559
5 locks held by kworker/u4:5/1068:
2 locks held by getty/4755:
 #0: ffff88814c104098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176
5 locks held by syz-executor670/4999:

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xe16/0x1090 kernel/hung_task.c:379
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4999 Comm: syz-executor670 Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:__seqprop_raw_spinlock_sequence include/linux/seqlock.h:274 [inline]
RIP: 0010:hrtimer_active+0x63/0x1f0 kernel/time/hrtimer.c:1611
Code: 89 44 24 08 48 89 d0 48 c1 e8 03 4c 01 f0 48 89 44 24 10 e8 5f be 10 00 48 8b 44 24 08 80 38 00 0f 85 71 01 00 00 49 8b 6d 30 <48> 8d 45 10 48 89 04 24 48 c1 e8 03 42 0f b6 04 30 84 c0 74 08 3c
RSP: 0018:ffffc900003e8cc0 EFLAGS: 00000046
RAX: ffffed1017327a56 RBX: ffff8880187d0000 RCX: 0000000000000000
RDX: ffff8880187d0000 RSI: ffffffff8172a951 RDI: ffff8880b993d280
RBP: ffff8880b982b8c0 R08: ffff8880b993c7c0 R09: ffffffff8e79d3d7
R10: fffffbfff1cf3a7a R11: 0000000000000000 R12: ffff8880187d0080
R13: ffff8880b993d280 R14: dffffc0000000000 R15: 0000000000000000
FS:  000055555650d300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b0c6dc8008 CR3: 0000000017325000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 entity_tick kernel/sched/fair.c:5185 [inline]
 task_tick_fair+0x6f/0xf80 kernel/sched/fair.c:12071
 scheduler_tick+0x216/0x5e0 kernel/sched/core.c:5621
 update_process_times+0x142/0x1a0 kernel/time/timer.c:2076
 tick_sched_handle+0x8e/0x170 kernel/time/tick-sched.c:243
 tick_sched_timer+0xee/0x110 kernel/time/tick-sched.c:1481
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xbe0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1979 [inline]
RIP: 0010:vprintk_emit+0x3fe/0x600 kernel/printk/printk.c:2306
Code: 9b 1b 00 48 85 db 0f 85 da 01 00 00 e8 5b 9f 1b 00 31 ff 4c 89 f6 e8 91 9b 1b 00 4d 85 f6 74 06 e8 47 9f 1b 00 fb f3 0f 1e fa <e8> 3d 9f 1b 00 45 31 c9 41 b8 01 00 00 00 31 c9 68 6a c8 67 81 ba
RSP: 0018:ffffc900033ef200 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880187d0000 RSI: ffffffff8167c869 RDI: 0000000000000007
RBP: ffffc900033ef238 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000200 R11: 2065636976656428 R12: 0000000000000086
R13: ffff888013a82000 R14: 0000000000000200 R15: ffffc900033ef288

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/20 18:28 upstream 692b7dc87ca6 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/12/25 03:52 upstream 861deac3b092 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/12/21 08:48 upstream 1a44b0073b92 4f9530a3 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/06/24 12:15 upstream 61dabacdad4e 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/01/28 09:18 upstream 83abd4d4c4be 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2022/12/17 13:08 upstream 77856d911a8c 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/11/10 18:35 linux-next e27090b1413f 45e9b83e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2024/01/04 20:18 upstream ac865f00af29 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2024/01/02 11:13 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/12/06 06:44 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/11/28 14:22 upstream df60cee26a2e 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/06/20 14:41 upstream 692b7dc87ca6 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/05/22 20:37 upstream 44c026a73be8 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/04/25 22:27 upstream 173ea743bf7a 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/04/14 17:33 upstream 44149752e998 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/03/25 11:39 upstream 65aca32efdcb fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/02/11 20:24 upstream 47e9aa14ce5a 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in reiserfs_sync_fs
2023/02/06 04:34 upstream 837c07cf68fe be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/01/14 03:09 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/05/05 23:18 linux-next 83e5775d7afd 4cec9341 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/05/03 15:16 linux-next 92e815cf07ed b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in reiserfs_sync_fs
2023/03/25 11:35 linux-next e5dbf24e8b9e fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in reiserfs_sync_fs
* Struck through repros no longer work on HEAD.