syzbot


INFO: task hung in gfs2_statfs_init

Status: upstream: reported C repro on 2025/08/26 05:27
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+9e1baec56c90d4d3d54f@syzkaller.appspotmail.com
First crash: 4d09h, last: 1d09h
Bug presence (2)
Date Name Commit Repro Result
2025/08/29 linux-5.15.y (ToT) 01879f56bdde C [report] INFO: task hung in gfs2_statfs_init
2025/08/29 upstream (ToT) 07d9df80082b C Didn't crash

Sample crash report:
INFO: task syz.0.17:4323 blocked for more than 143 seconds.
      Not tainted 5.15.189-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.17        state:D stack:23392 pid: 4323 ppid:  4305 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x11b8/0x43b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1e0 kernel/sched/core.c:6459
 bit_wait+0xd/0xc0 kernel/sched/wait_bit.c:199
 __wait_on_bit kernel/sched/wait_bit.c:49 [inline]
 out_of_line_wait_on_bit+0x15e/0x200 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 gfs2_glock_wait+0xd9/0x1c0 fs/gfs2/glock.c:1282
 gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
 gfs2_statfs_init+0xf9/0x490 fs/gfs2/super.c:190
 gfs2_fill_super+0x1749/0x1f50 fs/gfs2/ops_fstype.c:1257
 get_tree_bdev+0x3f1/0x610 fs/super.c:1325
 gfs2_get_tree+0x4d/0x1e0 fs/gfs2/ops_fstype.c:1332
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3014
 do_mount fs/namespace.c:3357 [inline]
 __do_sys_mount fs/namespace.c:3565 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f579b33b38a
RSP: 002b:00007fffc49f6d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffc49f6db0 RCX: 00007f579b33b38a
RDX: 0000200000000400 RSI: 0000200000012500 RDI: 00007fffc49f6d70
RBP: 0000200000000400 R08: 00007fffc49f6db0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000012500
R13: 00007fffc49f6d70 R14: 00000000000125e1 R15: 00002000000000c0
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8c11c360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3950:
 #0: ffff88802b9e4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc900026562e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ba/0x1a30 drivers/tty/n_tty.c:2158
1 lock held by syz.0.17/4323:
 #0: ffff88802973c0e0 (&type->s_umount_key#53/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.1.208/4548:

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xe0f/0xe50 kernel/hung_task.c:369
 kthread+0x436/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 449 Comm: kworker/u4:3 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__lock_acquire+0x235/0x7c60 kernel/locking/lockdep.c:-1
Code: 4f 8d 3c a4 41 83 fc 30 0f 87 77 65 00 00 4f 8d 74 fe f8 4c 89 f0 48 c1 e8 03 42 0f b6 04 00 84 c0 0f 85 e7 65 00 00 4c 89 e0 <48> 83 7d 10 00 0f 84 fe 00 00 00 45 8b 3e 44 89 f9 81 e1 ff 1f 00
RSP: 0018:ffffc90002f7f820 EFLAGS: 00000046
RAX: 0000000000000002 RBX: ffffffff8c11c360 RCX: ffffffff960bdf03
RDX: 0000000000000015 RSI: 0000000000000000 RDI: ffffffff8c11c360
RBP: ffffc90002f7fa70 R08: dffffc0000000000 R09: 0000000000000000
R10: fffffbfff1ad2dd6 R11: 1ffffffff1ad2dd5 R12: 0000000000000002
R13: 0000000000000000 R14: ffff88801e4728f8 R15: 000000000000000a
FS:  0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5f9f45f000 CR3: 000000007dd51000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
 batadv_nc_worker+0xc9/0x5c0 net/batman-adv/network-coding.c:723
 process_one_work+0x863/0x1000 kernel/workqueue.c:2310
 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457
 kthread+0x436/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/26 13:43 linux-5.15.y c79648372d02 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
2025/08/26 11:54 linux-5.15.y c79648372d02 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
2025/08/26 10:13 linux-5.15.y c79648372d02 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
2025/08/26 08:37 linux-5.15.y c79648372d02 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
2025/08/26 07:04 linux-5.15.y c79648372d02 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
2025/08/26 05:26 linux-5.15.y c79648372d02 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in gfs2_statfs_init
* Struck through repros no longer work on HEAD.