syzbot


INFO: task hung in gfs2_recover_journal

Status: auto-obsoleted due to no activity on 2024/06/09 15:26
Reported-by: syzbot+515c30bd436200da1f0a@syzkaller.appspotmail.com
First crash: 264d, last: 264d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_recover_journal (3) gfs2 1 254d 254d 0/28 auto-obsoleted due to no activity on 2024/06/09 17:03
upstream INFO: task hung in gfs2_recover_journal (2) gfs2 2 364d 375d 0/28 auto-obsoleted due to no activity on 2024/02/21 00:05
upstream INFO: task hung in gfs2_recover_journal gfs2 5 549d 724d 0/28 auto-obsoleted due to no activity on 2023/08/20 05:04

Sample crash report:
INFO: task syz-executor.2:8142 blocked for more than 144 seconds.
      Not tainted 6.1.80-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:0     pid:8142  ppid:4259   flags:0x0000000d
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0xee4/0x1c98 kernel/sched/core.c:6558
 schedule+0xc4/0x170 kernel/sched/core.c:6634
 bit_wait+0x1c/0xac kernel/sched/wait_bit.c:199
 __wait_on_bit kernel/sched/wait_bit.c:49 [inline]
 out_of_line_wait_on_bit+0x208/0x334 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 gfs2_recover_journal+0xd8/0x150 fs/gfs2/recovery.c:577
 init_journal+0x14ac/0x2054 fs/gfs2/ops_fstype.c:835
 init_inodes+0xe0/0x2d8 fs/gfs2/ops_fstype.c:889
 gfs2_fill_super+0x1608/0x1f9c fs/gfs2/ops_fstype.c:1247
 get_tree_bdev+0x360/0x54c fs/super.c:1355
 gfs2_get_tree+0x54/0x1b4 fs/gfs2/ops_fstype.c:1330
 vfs_get_tree+0x90/0x274 fs/super.c:1562
 do_new_mount+0x278/0x8fc fs/namespace.c:3051
 path_mount+0x590/0xe5c fs/namespace.c:3381
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount fs/namespace.c:3579 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3579
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
INFO: task kworker/0:9:8143 blocked for more than 144 seconds.
      Not tainted 6.1.80-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:9     state:D stack:0     pid:8143  ppid:2      flags:0x00000008
Workqueue: gfs_recovery gfs2_recover_func
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0xee4/0x1c98 kernel/sched/core.c:6558
 schedule+0xc4/0x170 kernel/sched/core.c:6634
 io_schedule+0x8c/0x188 kernel/sched/core.c:8786
 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1296
 folio_wait_bit+0x30/0x40 mm/filemap.c:1440
 folio_wait_locked include/linux/pagemap.h:1057 [inline]
 gfs2_jhead_process_page+0x150/0x5c0 fs/gfs2/lops.c:476
 gfs2_find_jhead+0xa58/0xbe0 fs/gfs2/lops.c:594
 gfs2_recover_func+0x550/0x18f0 fs/gfs2/recovery.c:460
 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292
 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439
 kthread+0x250/0x2d8 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff8000159f4df0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000159f55f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by khungtaskd/28:
 #0: ffff8000159f4c20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:318
2 locks held by getty/3984:
 #0: ffff0000d7750098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001bc902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188
4 locks held by kworker/u4:10/4643:
 #0: ffff0001b4394198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
 #0: ffff0001b4394198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
 #0: ffff0001b4394198 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline]
 #0: ffff0001b4394198 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2c4/0x1c98 kernel/sched/core.c:6475
 #1: ffff0001b4380b88 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3c0/0x618 kernel/sched/psi.c:1000
 #2: ffff0000de0d4d40 (&wdev->mtx){+.+.}-{3:3}, at: sdata_lock net/mac80211/ieee80211_i.h:1114 [inline]
 #2: ffff0000de0d4d40 (&wdev->mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0xa0/0x1230 net/mac80211/ibss.c:1680
 #3: ffff0001190497a0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_ibss_sta_expire net/mac80211/ibss.c:1256 [inline]
 #3: ffff0001190497a0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_sta_merge_ibss net/mac80211/ibss.c:1299 [inline]
 #3: ffff0001190497a0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0x494/0x1230 net/mac80211/ibss.c:1708
1 lock held by syz-executor.2/8142:
 #0: ffff00010ecb20e0 (&type->s_umount_key#67/1){+.+.}-{3:3}, at: alloc_super+0x1b4/0x824 fs/super.c:228
2 locks held by kworker/0:9/8143:
 #0: ffff0000c80ee138 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265
 #1: ffff80001faa7c20 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/01 15:26 linux-6.1.y a3eb3a74aa8c 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in gfs2_recover_journal
* Struck through repros no longer work on HEAD.