INFO: task hung in nfsd_nrthreads

Status: upstream: reported on 2026/10/06 11:09
Reported-by: syzbot+d472117062d99399a4d0@syzkaller.appspotmail.com
First crash: 6d22h, last: 6d22h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in nfsd_nrthreads 1 11 12d 76d 0/3 upstream: reported on 2026/07/28 20:58
upstream INFO: task hung in nfsd_nrthreads prio:low nfs 1 C 66 4d23h 46d 0/29 upstream: reported C repro on 2026/08/27 23:06
linux-5.15 INFO: task hung in nfsd_nrthreads 1 1 2d06h 2d06h 0/3 upstream: reported on 2026/10/11 03:33

Sample crash report:
INFO: task syz.4.346:7601 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.346       state:D stack:27016 pid:7601  ppid:5949   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 schedule+0xbd/0x170 kernel/sched/core.c:6775
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6834
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x673/0xc80 kernel/locking/mutex.c:747
 nfsd_nrthreads+0x4c/0xf0 fs/nfsd/nfssvc.c:280
 write_threads+0x1f3/0x510 fs/nfsd/nfsctl.c:421
 nfsctl_transaction_write+0x10c/0x150 fs/nfsd/nfsctl.c:113
 vfs_write+0x299/0x9a0 fs/read_write.c:582
 ksys_write+0x151/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd407f9e199
RSP: 002b:00007fd408ef3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd408226090 RCX: 00007fd407f9e199
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007fd4080358e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd408226128 R14: 00007fd408226090 R15: 00007ffe2c7964e8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
5 locks held by kworker/0:2/787:
 #0: ffff88801a6e0138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88801a6e0138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90003b87d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90003b87d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffff888024fc01d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #2: ffff888024fc01d8 (&dev->mutex){....}-{3:3}, at: hub_event+0x188/0x4a80 drivers/usb/core/hub.c:5866
 #3: ffff888030c0b1d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #3: ffff888030c0b1d8 (&dev->mutex){....}-{3:3}, at: usb_disconnect+0xfc/0x8a0 drivers/usb/core/hub.c:2311
 #4: ffff888030c0c1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #4: ffff888030c0c1a8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1174 [inline]
 #4: ffff888030c0c1a8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa7/0x6f0 drivers/base/dd.c:1371
2 locks held by getty/5533:
 #0: ffff88814cf270a0 (&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+0x428/0x1370 drivers/tty/n_tty.c:2217
1 lock held by syz-executor/5764:
6 locks held by kworker/1:3/5779:
 #0: ffff88801a6e0138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88801a6e0138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90004837d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90004837d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffff88814377f1d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #2: ffff88814377f1d8 (&dev->mutex){....}-{3:3}, at: hub_event+0x188/0x4a80 drivers/usb/core/hub.c:5866
 #3: ffff88802d26d1d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #3: ffff88802d26d1d8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x89/0x420 drivers/base/dd.c:1084
 #4: ffff88807dbc31a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
 #4: ffff88807dbc31a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x89/0x420 drivers/base/dd.c:1084
 #5: ffffffff8cfdc7d0 (umhelper_sem){++++}-{3:3}, at: usermodehelper_read_trylock+0xfd/0x2b0 kernel/umh.c:215
2 locks held by kworker/1:4/5816:
 #0: ffff888017c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff888017c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90004a17d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90004a17d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
1 lock held by syz-executor/6494:
 #0: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #0: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x306/0x880 kernel/rcu/tree_exp.h:1004
3 locks held by syz.4.346/7598:
 #0: ffff88801e2614c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
 #1: ffff88802102a418 (sb_writers#19){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
 #2: ffffffff8d3e1c88 (nfsd_mutex){+.+.}-{3:3}, at: write_ports+0xb7/0xfa0 fs/nfsd/nfsctl.c:843
3 locks held by syz.4.346/7601:
 #0: ffff8880273a0348 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
 #1: ffff88802102a418 (sb_writers#19){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
 #2: ffffffff8d3e1c88 (nfsd_mutex){+.+.}-{3:3}, at: nfsd_nrthreads+0x4c/0xf0 fs/nfsd/nfssvc.c:280
3 locks held by kworker/u4:24/8661:
5 locks held by kworker/u4:29/8666:
1 lock held by cxacru/9702:
 #0: ffffffff8cfdc7d0 (umhelper_sem){++++}-{3:3}, at: usermodehelper_read_trylock+0xfd/0x2b0 kernel/umh.c:215
1 lock held by syz.0.1123/10451:
 #0: ffffffff8d137980 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4089
2 locks held by dhcpcd/10477:
 #0: ffff88807aed6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline]
 #0: ffff88807aed6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x33/0xd40 net/packet/af_packet.c:3288
 #1: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #1: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a6/0x3e0 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+0xf59/0xfa0 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: 0 Comm: swapper/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:pv_native_safe_halt+0xf/0x10 arch/x86/kernel/paravirt.c:148
Code: 69 17 02 c3 cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d 13 96 35 00 fb f4 <c3> 66 0f 1f 00 55 41 57 41 56 41 54 53 50 8b 2f eb 2c 89 cb 80 f9
RSP: 0018:ffffc90000187de0 EFLAGS: 000002c6
RAX: 39aef0daf674f500 RBX: ffffffff81631f44 RCX: 39aef0daf674f500
RDX: 0000000000000001 RSI: ffffffff8acacce0 RDI: ffffffff8b1d4020
RBP: ffffc90000187f20 R08: ffff8880b8f36b6b R09: 1ffff110171e6d6d
R10: dffffc0000000000 R11: ffffed10171e6d6e R12: 1ffff92000030fc8
R13: dffffc0000000000 R14: 1ffff1100384a780 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa6c91f0c38 CR3: 0000000025b38000 CR4: 00000000003526e0
Call Trace:
 <TASK>
 arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:753
 default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
 cpuidle_idle_call kernel/sched/idle.c:178 [inline]
 do_idle+0x334/0x5c0 kernel/sched/idle.c:302
 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:401
 start_secondary+0xee/0xf0 arch/x86/kernel/smpboot.c:323
 secondary_startup_64_no_verify+0x179/0x17b
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/06 11:09 linux-6.6.y a91a6aa9253c f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in nfsd_nrthreads
* Struck through repros no longer work on HEAD.