syzbot


INFO: task hung in gfs2_make_fs_ro (3)

Status: auto-obsoleted due to no activity on 2023/02/14 04:47
Subsystems: gfs2
[Documentation on labels]
First crash: 557d, last: 548d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_make_fs_ro gfs2 1 1037d 1037d 0/26 auto-closed as invalid on 2021/10/02 10:38
upstream INFO: task hung in gfs2_make_fs_ro (2) gfs2 1 908d 908d 0/26 closed as invalid on 2022/02/08 09:40

Sample crash report:
INFO: task syz-executor.5:8380 blocked for more than 145 seconds.
      Not tainted 6.1.0-rc3-syzkaller-00239-g10d916c86eca #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:24264 pid:8380  ppid:3639   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x8fc/0xda0 kernel/sched/core.c:6503
 schedule+0xcb/0x190 kernel/sched/core.c:6579
 schedule_timeout+0xac/0x300 kernel/time/timer.c:1911
 do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x46/0x60 kernel/sched/completion.c:138
 kthread_stop+0x10c/0x210 kernel/kthread.c:709
 gfs2_make_fs_ro+0x13c/0x630 fs/gfs2/super.c:529
 signal_our_withdraw fs/gfs2/util.c:166 [inline]
 gfs2_withdraw+0x5e8/0x14e0 fs/gfs2/util.c:351
 gfs2_meta_check_ii+0x70/0x80 fs/gfs2/util.c:509
 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline]
 gfs2_quota_init+0xd93/0x1100 fs/gfs2/quota.c:1395
 gfs2_make_fs_rw+0x49f/0x5a0 fs/gfs2/super.c:153
 gfs2_fill_super+0x239d/0x2710 fs/gfs2/ops_fstype.c:1274
 get_tree_bdev+0x400/0x620 fs/super.c:1324
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1330
 vfs_get_tree+0x88/0x270 fs/super.c:1531
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f790a68cada
RSP: 002b:00007f790b367f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f790a68cada
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f790b367fe0
RBP: 00007f790b368020 R08: 00007f790b368020 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f790b367fe0 R15: 000000002000ddc0
 </TASK>
INFO: task gfs2_quotad:8392 blocked for more than 150 seconds.
      Not tainted 6.1.0-rc3-syzkaller-00239-g10d916c86eca #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:gfs2_quotad     state:D stack:27480 pid:8392  ppid:2      flags:0x00024000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x8fc/0xda0 kernel/sched/core.c:6503
 schedule+0xcb/0x190 kernel/sched/core.c:6579
 bit_wait+0xe/0xc0 kernel/sched/wait_bit.c:199
 __wait_on_bit+0xb5/0x170 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x1d4/0x250 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 __gfs2_glock_dq+0x78b/0xb00 fs/gfs2/glock.c:1646
 gfs2_glock_dq+0x1ad/0x1c0 fs/gfs2/glock.c:1718
 gfs2_glock_dq_uninit+0x24/0xe0 fs/gfs2/glock.c:1738
 gfs2_statfs_sync+0x81e/0x8a0 fs/gfs2/super.c:306
 quotad_check_timeo fs/gfs2/quota.c:1508 [inline]
 gfs2_quotad+0x4a0/0xa80 fs/gfs2/quota.c:1550
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/u4:1/11:
 #0: ffff8880121c3138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
 #1: ffffc90000107d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
 #2: ffffffff8cd24840 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:3953
 #3: ffff8880b9a39d98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xc6/0x110 kernel/sched/core.c:545
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cd1f5b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cd1fdb0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: ffffffff8cd1f3e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3290:
 #0: ffff88814aeb5098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177
2 locks held by kworker/1:7/3696:
 #0: ffff888012066538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
 #1: ffffc900047ffd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
5 locks held by kworker/u4:6/3852:
 #0: ffff888012069138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
 #1: ffffc90004d27d00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
 #2: ffffffff8cbbd450 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_enable+0xe/0x20 kernel/jump_label.c:189
 #3: ffffffff8cdba108 (jump_label_mutex){+.+.}-{3:3}, at: jump_label_lock kernel/jump_label.c:27 [inline]
 #3: ffffffff8cdba108 (jump_label_mutex){+.+.}-{3:3}, at: static_key_enable_cpuslocked+0xcc/0x250 kernel/jump_label.c:174
 #4: ffffffff8cbd1d28 (text_mutex){+.+.}-{3:3}, at: arch_jump_label_transform_queue+0x3f/0xd0 arch/x86/kernel/jump_label.c:136
3 locks held by kworker/0:11/6121:
 #0: ffff888012064d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
 #1: ffffc900066e7d00 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
 #2: ffffffff8cd24840 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:3953
1 lock held by syz-executor.5/8380:
 #0: ffff888074e8e0e0 (&type->s_umount_key#87/1){+.+.}-{3:3}, at: alloc_super+0x212/0x920 fs/super.c:228
1 lock held by syz-executor.4/10467:
4 locks held by syz-executor.4/10468:
4 locks held by syz-executor.3/10483:
 #0: ffff88803c293e10 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #0: ffff88803c293e10 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: __sock_release net/socket.c:649 [inline]
 #0: ffff88803c293e10 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: sock_close+0x93/0x260 net/socket.c:1365
 #1: ffffffff8de3fc10 ((netlink_chain).rwsem){++++}-{3:3}, at: blocking_notifier_call_chain+0x5e/0x1b0 kernel/notifier.c:381
 #2: ffff888023639ea8 (&nft_net->commit_mutex){+.+.}-{3:3}, at: nft_rcv_nl_event+0x100/0x580 net/netfilter/nf_tables_api.c:10032
 #3: ffffffff8cd24978 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #3: ffffffff8cd24978 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46f/0x890 kernel/rcu/tree_exp.h:946
3 locks held by syz-executor.2/10488:
5 locks held by syz-executor.2/10497:
3 locks held by syz-executor.0/10492:
2 locks held by syz-executor.0/10495:
 #0: ffff8880b9a39d98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xc6/0x110 kernel/sched/core.c:545
 #1: ffff8880b9a27748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x682/0xa30 kernel/sched/psi.c:909
4 locks held by syz-executor.1/10494:
1 lock held by syz-executor.5/10500:

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc3-syzkaller-00239-g10d916c86eca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xcf5/0xd40 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3852 Comm: kworker/u4:6 Not tainted 6.1.0-rc3-syzkaller-00239-g10d916c86eca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: phy3 ieee80211_iface_work
RIP: 0010:preempt_count_add+0x2f/0x180 kernel/sched/core.c:5647
Code: 89 fb 48 c7 c0 40 ff 7c 91 48 c1 e8 03 49 bf 00 00 00 00 00 fc ff df 42 8a 04 38 84 c0 0f 85 e3 00 00 00 83 3d d1 1f 20 10 00 <75> 07 65 8b 05 90 8f a5 7e 65 01 1d 89 8f a5 7e 48 c7 c0 40 ff 7c
RSP: 0018:ffffc90004d27180 EFLAGS: 00000246
RAX: 1ffffffff22f9f04 RBX: 0000000000000001 RCX: ffffffff917cff03
RDX: dffffc0000000000 RSI: ffffffff8159308c RDI: 0000000000000001
RBP: 1ffff920009a4e50 R08: 0000000000000006 R09: ffffc90004d27370
R10: fffff520009a4e5c R11: 1ffff920009a4e5a R12: ffffc90004d272b8
R13: ffffc90004d272c8 R14: ffffffff8159308c R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000202f8000 CR3: 000000007e0c0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unwind_next_frame+0xc3/0x24c0 arch/x86/kernel/unwind_orc.c:433
 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4c/0x70 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:371 [inline]
 __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380
 kasan_kmalloc include/linux/kasan.h:211 [inline]
 __do_kmalloc_node mm/slab_common.c:955 [inline]
 __kmalloc+0xaf/0x1a0 mm/slab_common.c:968
 kmalloc include/linux/slab.h:581 [inline]
 kzalloc include/linux/slab.h:712 [inline]
 ieee802_11_parse_elems_full+0xc4/0x1480 net/mac80211/util.c:1511
 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2241 [inline]
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2248 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1605 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x4e7/0x2cd0 net/mac80211/ibss.c:1638
 ieee80211_iface_process_skb net/mac80211/iface.c:1630 [inline]
 ieee80211_iface_work+0x773/0xcf0 net/mac80211/iface.c:1684
 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/05 02:53 upstream 10d916c86eca 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in gfs2_make_fs_ro
2022/11/03 01:36 upstream b229b6ca5abb 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in gfs2_make_fs_ro
2022/10/27 10:22 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in gfs2_make_fs_ro
2022/10/27 09:54 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in gfs2_make_fs_ro
2022/10/27 10:18 linux-next 4d48f589d294 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root INFO: task hung in gfs2_make_fs_ro
2022/11/03 15:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 7a2ebf95 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 INFO: task hung in gfs2_make_fs_ro
* Struck through repros no longer work on HEAD.