syzbot


INFO: task hung in gfs2_withdraw

Status: upstream: reported on 2025/01/22 02:01
Reported-by: syzbot+fe56f38467063990bcb7@syzkaller.appspotmail.com
First crash: 10h49m, last: 10h49m

Sample crash report:
INFO: task syz.0.228:5265 blocked for more than 143 seconds.
      Not tainted 6.1.126-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.228       state:D stack:23856 pid:5265  ppid:4251   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0xac/0x300 kernel/time/timer.c:1941
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x350/0x610 kernel/sched/completion.c:138
 kthread_stop+0x1ab/0x690 kernel/kthread.c:711
 signal_our_withdraw fs/gfs2/util.c:159 [inline]
 gfs2_withdraw+0x5c1/0x1550 fs/gfs2/util.c:354
 gfs2_metatype_check_ii+0x75/0x90 fs/gfs2/util.c:533
 gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
 gfs2_quota_init+0xe06/0x1110 fs/gfs2/quota.c:1406
 gfs2_make_fs_rw+0x436/0x5b0 fs/gfs2/super.c:155
 gfs2_fill_super+0x2327/0x2680 fs/gfs2/ops_fstype.c:1271
 get_tree_bdev+0x3fe/0x620 fs/super.c:1366
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1327
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3056
 do_mount fs/namespace.c:3399 [inline]
 __do_sys_mount fs/namespace.c:3607 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f609df874ca
RSP: 002b:00007f609ed33e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f609ed33ef0 RCX: 00007f609df874ca
RDX: 0000000020000400 RSI: 0000000020000040 RDI: 00007f609ed33eb0
RBP: 0000000020000400 R08: 00007f609ed33ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000040
R13: 00007f609ed33eb0 R14: 00000000000125bb R15: 0000000020000380
 </TASK>
INFO: task gfs2_quotad:5272 blocked for more than 146 seconds.
      Not tainted 6.1.126-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:gfs2_quotad     state:D stack:26936 pid:5272  ppid:2      flags:0x00024000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 bit_wait+0xe/0xc0 kernel/sched/wait_bit.c:199
 __wait_on_bit+0xa8/0x2e0 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x1d0/0x250 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 __gfs2_glock_dq+0x700/0xa90 fs/gfs2/glock.c:1641
 gfs2_glock_dq+0x1b5/0x1d0 fs/gfs2/glock.c:1713
 gfs2_glock_dq_uninit+0x24/0xe0 fs/gfs2/glock.c:1733
 gfs2_statfs_sync+0x7d9/0x860 fs/gfs2/super.c:310
 quotad_check_timeo fs/gfs2/quota.c:1519 [inline]
 gfs2_quotad+0x37b/0x670 fs/gfs2/quota.c:1561
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d32b290 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d32ba90 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/28:
 #0: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #0: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #0: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6510
6 locks held by kworker/0:2/126:
 #0: ffff888144684138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
 #1: ffffc90002da7d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
 #2: ffff88823bc58190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
 #2: ffff88823bc58190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5730 drivers/usb/core/hub.c:5803
 #3: ffff8881463494f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3161 [inline]
 #3: ffff8881463494f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5375 [inline]
 #3: ffff8881463494f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5619 [inline]
 #3: ffff8881463494f8 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5775 [inline]
 #3: ffff8881463494f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2471/0x5730 drivers/usb/core/hub.c:5857
 #4: ffff888027ae8f68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5376 [inline]
 #4: ffff888027ae8f68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5619 [inline]
 #4: ffff888027ae8f68 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5775 [inline]
 #4: ffff888027ae8f68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x249e/0x5730 drivers/usb/core/hub.c:5857
 #5: ffffffff8de5ad90 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x1f4/0x1f00 drivers/usb/core/hub.c:3018
2 locks held by getty/4005:
 #0: ffff88803092d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000325e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198
2 locks held by syz.0.228/5265:
 #0: ffff888027b340e0 (&type->s_umount_key#87/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228
 #1: ffff8880192a1248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:155 [inline]
 #1: ffff8880192a1248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x55c/0x1550 fs/gfs2/util.c:354

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.126-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ae/0x3f0 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+0xf88/0xfd0 kernel/hung_task.c:377
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6005 Comm: kworker/u4:21 Not tainted 6.1.126-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_acquire+0xa/0x5a0 kernel/locking/lockdep.c:5630
Code: 8e e8 aa 8d 77 00 e9 a2 fd ff ff 0f 1f 44 00 00 65 8b 05 21 ce 97 7e a9 00 ff ff 00 0f 95 c0 c3 55 48 89 e5 41 57 41 56 41 55 <41> 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 28 4c 89 44
RSP: 0018:ffffc9000daffbc8 EFLAGS: 00000246
RAX: ffffffff8a834767 RBX: ffff8880587ea9c0 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8d32b0c0
RBP: ffffc9000daffbe0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888076d68c80
R13: 000000000000006b R14: ffff8880587ea9c0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa5d0b48178 CR3: 000000001d327000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0xe8/0x610 net/batman-adv/network-coding.c:719
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/22 02:00 linux-6.1.y f4f677285b38 da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in gfs2_withdraw
* Struck through repros no longer work on HEAD.