syzbot
INFO: task hung in nfsd_nrthreads
Status:
upstream: reported on 2026/10/06 11:09
Reported-by: syzbot+d472117062d99399a4d0@syzkaller.appspotmail.com
First crash: 53d, last: 2d19h
Sample crash report:
INFO: task syz.7.10527:6159 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.7.10527 state:D stack:27016 pid:6159 ppid:1437 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5393 [inline]
__schedule+0x156f/0x4720 kernel/sched/core.c:6722
schedule+0xbd/0x170 kernel/sched/core.c:6796
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6855
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0x689/0xce0 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 fs/nfsd/nfsctl.c:113 [inline]
nfsctl_transaction_read+0x16c/0x1b0 fs/nfsd/nfsctl.c:128
vfs_read+0x298/0x990 fs/read_write.c:468
ksys_read+0x151/0x260 fs/read_write.c:613
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:0x7f39b5ba9a99
RSP: 002b:00007f39b69f8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f39b5e35fa0 RCX: 00007f39b5ba9a99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f39b5c3918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f39b5e36038 R14: 00007f39b5e35fa0 R15: 00007ffccb309208
</TASK>
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
#0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
#0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
1 lock held by dhcpcd/5447:
1 lock held by dhcpcd/5448:
2 locks held by getty/5536:
#0: ffff88814c8510a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000328b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217
1 lock held by udevd/5776:
#0: ffff888022e6b4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x11b/0x610 block/bdev.c:801
2 locks held by kworker/1:4/17556:
#0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#1: ffffc90003317d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#1: ffffc90003317d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
3 locks held by syz.0.9891/4491:
#0: ffff8880695f45c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
#1: ffff88802c734418 (sb_writers#44){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
#2: ffffffff8e3e2d88 (nfsd_mutex){+.+.}-{3:3}, at: nfsd_svc+0x62/0xa00 fs/nfsd/nfssvc.c:788
2 locks held by syz.7.10527/6159:
#0: ffff88801cb65248 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
#1: ffffffff8e3e2d88 (nfsd_mutex){+.+.}-{3:3}, at: nfsd_nrthreads+0x4c/0xf0 fs/nfsd/nfssvc.c:280
3 locks held by syz.8.10792/6849:
#0: ffff888044ce0ac8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
#1: ffff88802dbd2418 (sb_writers#44){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
#2: ffffffff8e3e2d88 (nfsd_mutex){+.+.}-{3:3}, at: nfsd4_write_time+0xae/0x740 fs/nfsd/nfsctl.c:988
3 locks held by syz.3.10809/6887:
#0: ffff88807f370848 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
#1: ffff88805b272418 (sb_writers#44){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
#2: ffffffff8e3e2d88 (nfsd_mutex){+.+.}-{3:3}, at: write_versions+0x96/0xe00 fs/nfsd/nfsctl.c:680
2 locks held by kworker/u4:2/6993:
#0: ffff8880b8d3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:570
#1: ffffc900032a7d00 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#1: ffffc900032a7d00 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
3 locks held by syz.2.11023/7448:
#0: ffff88802738b9c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
#1: ffff888052588418 (sb_writers#44){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:932 [inline]
#1: ffff888052588418 (sb_writers#44){.+.+}-{0:0}, at: do_writev+0x261/0x480 fs/read_write.c:976
#2: ffffffff8e3e2d88 (nfsd_mutex){+.+.}-{3:3}, at: nfsd4_write_time+0xae/0x740 fs/nfsd/nfsctl.c:988
2 locks held by syz.9.11274/8082:
#0: ffffffff8f3dfc10 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x347/0x530 net/core/net_namespace.c:520
#1: ffffffff8e137fc0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4057
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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: 5448 Comm: dhcpcd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0x4/0x16
Code: 41 51 41 52 41 53 e8 8b 08 00 00 41 5b 41 5a 41 59 41 58 5f 5e 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa <52> b8 01 00 00 00 31 d2 f0 0f b0 17 3c 01 75 02 5a c3 56 0f b6 f0
RSP: 0018:ffffc90000a08c80 EFLAGS: 00000086
RAX: 1ffffffff1bf3f48 RBX: ffffffff98525d18 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff98525d18
RBP: 1ffffffff30a4ba4 R08: ffffffff98525d1b R09: 1ffffffff30a4ba3
R10: dffffc0000000000 R11: fffffbfff30a4ba4 R12: dffffc0000000000
R13: 1ffffffff30a4ba5 R14: ffffffff98525d28 R15: ffffffff98525d20
FS: 00007f1c0f29f740(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4c48ffc2f8 CR3: 0000000032aed000 CR4: 00000000003506e0
Call Trace:
<IRQ>
pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:591 [inline]
queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
do_raw_spin_unlock+0x121/0x230 kernel/locking/spinlock_debug.c:141
__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline]
_raw_spin_unlock_irqrestore+0x79/0x120 kernel/locking/spinlock.c:194
debug_hrtimer_deactivate kernel/time/hrtimer.c:455 [inline]
__run_hrtimer kernel/time/hrtimer.c:1722 [inline]
__hrtimer_run_queues+0x2cc/0xc10 kernel/time/hrtimer.c:1818
hrtimer_interrupt+0x39d/0x980 kernel/time/hrtimer.c:1880
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1077 [inline]
__sysvec_apic_timer_interrupt+0xfb/0x3b0 arch/x86/kernel/apic/apic.c:1094
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1088
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:__skb_try_recv_datagram+0xc1/0x500 net/core/datagram.c:-1
Code: 02 00 00 49 8d ad 34 02 00 00 31 c0 8b 74 24 0c 83 e6 40 48 c7 c1 c0 c2 83 88 48 0f 45 c8 48 89 4c 24 28 31 ff e8 2f bc 00 f9 <49> 8d 85 f5 03 00 00 49 8d 8d f6 03 00 00 48 8d 53 08 49 c1 ef 03
RSP: 0018:ffffc90003787990 EFLAGS: 00000293
RAX: ffffffff88876561 RBX: ffff88802e5019b8 RCX: 0000000000000000
RDX: ffff888029758000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffff88802e501a34 R08: ffffc90003787b50 R09: ffffc90003787b00
R10: dffffc0000000000 R11: fffffbfff1f1c5ee R12: dffffc0000000000
R13: ffff88802e501800 R14: ffffc90003787b00 R15: ffff88802e501a30
__unix_dgram_recvmsg+0x230/0xd90 net/unix/af_unix.c:2422
sock_recvmsg_nosec net/socket.c:1047 [inline]
sock_recvmsg net/socket.c:1069 [inline]
sock_read_iter+0x2db/0x3f0 net/socket.c:1139
call_read_iter include/linux/fs.h:2015 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x486/0x990 fs/read_write.c:470
ksys_read+0x151/0x260 fs/read_write.c:613
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:0x7f1c0f329407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffe94e930a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1c0f29f740 RCX: 00007f1c0f329407
RDX: 0000000000000408 RSI: 00007ffe94e930f0 RDI: 0000000000000007
RBP: 00007ffe94e93800 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00005566373cd5e0
R13: 000055666bc2dd90 R14: 0000000000000000 R15: 00007ffe94e935b0
</TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.217 msecs
* Struck through repros no longer work on HEAD.