syzbot


INFO: task hung in gfs2_gl_hash_clear

Status: upstream: reported on 2025/07/29 17:31
Reported-by: syzbot+b4867545efb9c6e2b0e6@syzkaller.appspotmail.com
First crash: 32d, last: 13d
Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_gl_hash_clear gfs2 1 156 1760d 1765d 0/29 auto-closed as invalid on 2021/02/02 22:47
upstream INFO: task hung in gfs2_gl_hash_clear (2) gfs2 1 1 1181d 1180d 0/29 auto-closed as invalid on 2022/09/04 20:20
linux-5.15 INFO: task hung in gfs2_gl_hash_clear origin:lts-only 1 C inconclusive 2895 4d19h 761d 0/3 upstream: reported C repro on 2023/08/01 02:35
linux-6.1 INFO: task hung in gfs2_gl_hash_clear missing-backport origin:lts-only 1 C done 1594 110d 749d 0/3 upstream: reported C repro on 2023/08/13 12:57
upstream INFO: task hung in gfs2_gl_hash_clear (4) gfs2 1 1 413d 413d 0/29 auto-obsoleted due to no activity on 2024/10/11 16:48
linux-4.19 INFO: task hung in gfs2_gl_hash_clear gfs2 1 1 970d 970d 0/1 upstream: reported on 2023/01/04 01:01
upstream INFO: task can't die in gfs2_gl_hash_clear (2) gfs2 1 3 1592d 1686d 0/29 auto-closed as invalid on 2021/07/21 03:15
upstream INFO: task hung in gfs2_gl_hash_clear (3) gfs2 1 C error done 80 617d 1006d 25/29 fixed on 2024/01/30 15:47

Sample crash report:
INFO: task syz-executor:5786 blocked for more than 143 seconds.
      Not tainted 6.6.102-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:20112 pid:5786  ppid:1      flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2167
 gfs2_gl_hash_clear+0x1a2/0x430 fs/gfs2/glock.c:2240
 gfs2_put_super+0x8bb/0x930 fs/gfs2/super.c:650
 generic_shutdown_super+0x134/0x2b0 fs/super.c:693
 kill_block_super+0x44/0x90 fs/super.c:1660
 deactivate_locked_super+0x97/0x100 fs/super.c:481
 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc6e8b8ff17
RSP: 002b:00007ffcd7d52c68 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000064 RCX: 00007fc6e8b8ff17
RDX: 0000000000000200 RSI: 0000000000000009 RDI: 00007ffcd7d53e10
RBP: 00007fc6e8c11c05 R08: 000055555ca91643 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffcd7d53e10
R13: 00007fc6e8c11c05 R14: 000055555ca764a8 R15: 00007ffcd7d54ee0
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u4:0/11:
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x20ee/0x44d0 kernel/sched/core.c:6694
1 lock held by khungtaskd/29:
 #0: ffffffff8cd2fbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8cd2fbe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8cd2fbe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
2 locks held by getty/5550:
 #0: ffff888031fa20a0 (&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-executor/5786:
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: deactivate_super+0xa4/0xe0 fs/super.c:513
2 locks held by kworker/1:5/6522:
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc900034a7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc900034a7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
1 lock held by syz.9.742/8827:
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: super_lock+0x167/0x360 fs/super.c:117
1 lock held by syz.1.888/9364:
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff88802edcc0e0 (&type->s_umount_key#72){++++}-{3:3}, at: super_lock+0x167/0x360 fs/super.c:117
6 locks held by syz.6.985/9867:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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: 12 Comm: kworker/u4:1 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:lockdep_hardirqs_on_prepare+0x16a/0x760 kernel/locking/lockdep.c:4356
Code: 0f 85 f8 03 00 00 48 89 5c 24 18 65 48 8b 05 7d f1 9c 7e 48 89 44 24 10 48 8d b8 d0 0a 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 <74> 0f e8 af 09 76 00 48 ba 00 00 00 00 00 fc ff df 48 8b 44 24 10
RSP: 0018:ffffc90000117720 EFLAGS: 00000046
RAX: 1ffff110037c8c9a RBX: 1ffff92000022ee8 RCX: ffffffff96eaa403
RDX: dffffc0000000000 RSI: ffffffff8afc66a0 RDI: ffff88801be464d0
RBP: ffffc900001177c8 R08: ffffffff8e4a882f R09: 1ffffffff1c95105
R10: dffffc0000000000 R11: fffffbfff1c95106 R12: ffffffff81dbf396
R13: dffffc0000000000 R14: 1ffff92000022f0c R15: 0000000000000200
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4dd9972020 CR3: 000000000cb30000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61
 __text_poke+0x871/0xb20 arch/x86/kernel/alternative.c:2096
 text_poke arch/x86/kernel/alternative.c:2121 [inline]
 text_poke_bp_batch+0x768/0x930 arch/x86/kernel/alternative.c:2510
 text_poke_flush arch/x86/kernel/alternative.c:2623 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2630
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x123/0x240 kernel/jump_label.c:207
 static_key_enable+0x1a/0x20 kernel/jump_label.c:220
 toggle_allocation_gate+0xaa/0x250 mm/kfence/core.c:831
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 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>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/18 00:42 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/11 13:09 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/10 18:03 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/10 17:56 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/10 17:44 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/10 17:42 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/06 20:00 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/08/06 19:46 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/07/30 12:53 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/07/30 11:56 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
2025/07/29 17:31 linux-6.6.y dbcb8d8e4163 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in gfs2_gl_hash_clear
* Struck through repros no longer work on HEAD.