INFO: task hung in nfsd4_write_time (2)

Status: upstream: reported on 2026/11/23 19:07
Reported-by: syzbot+95b21c8a93404f749611@syzkaller.appspotmail.com
First crash: 3d14h, last: 3d14h
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 INFO: task hung in nfsd4_write_time 1 3 108d 114d 0/2 auto-obsoleted due to no activity on 2026/11/18 20:38
linux-6.1 INFO: task hung in nfsd4_write_time 1 10 31d 112d 0/3 upstream: reported on 2026/08/06 17:17

Sample crash report:
INFO: task syz.5.1453:12446 blocked for more than 144 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.1453      state:D stack:27880 pid:12446 ppid:8666   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
 nfsd4_write_time+0xae/0x740 fs/nfsd/nfsctl.c:988
 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:0x7f2b9e5a9519
RSP: 002b:00007f2b9c7d5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 0000000000000000 RBX: 00007f2b9e836090 RCX: 00007f2b9e5a9519
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f2b9e639136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2b9e836128 R14: 00007f2b9e836090 R15: 00007ffc07907108
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:0/9:
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
5 locks held by syslogd/5136:
 #0: ffff8880b8c3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x9c/0x130 kernel/sched/core.c:578
 #1: ffff8880b8c289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #1: ffff8880b8c289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x21fc/0x4720 kernel/sched/core.c:6717
 #2: ffff8880b8c3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x9c/0x130 kernel/sched/core.c:578
 #3: ffff8880b8c3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x9c/0x130 kernel/sched/core.c:578
 #4: ffff8880b8c289c0 (psi_seq){-.-.}-{0:0}, at: psi_enqueue kernel/sched/stats.h:143 [inline]
 #4: ffff8880b8c289c0 (psi_seq){-.-.}-{0:0}, at: enqueue_task+0x23b/0x280 kernel/sched/core.c:2109
2 locks held by kworker/0:7/7337:
 #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: ffffc9000501fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc9000501fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
1 lock held by syz.3.764/8829:
 #0: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #0: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x306/0x880 kernel/rcu/tree_exp.h:1004
7 locks held by kworker/1:7/10637:
 #0: ffff888018c70d38 ((wq_completion)events#2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff888018c70d38 ((wq_completion)events#2){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc900043d7d00 (free_ipc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc900043d7d00 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffff8880b8d3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:570
 #3: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #3: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x21fc/0x4720 kernel/sched/core.c:6717
 #4: ffff8880b8d3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:570
 #5: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: psi_enqueue kernel/sched/stats.h:143 [inline]
 #5: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: enqueue_task+0x23b/0x280 kernel/sched/core.c:2109
 #6: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #6: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #6: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: __pte_offset_map+0x2c/0x280 mm/pgtable-generic.c:287
3 locks held by kworker/u4:18/12213:
1 lock held by syz.5.1453/12446:
 #0: ffff88807b0e0e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:521 [inline]
 #0: ffff88807b0e0e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x22a/0x520 net/bluetooth/hci_core.c:2723
8 locks held by syz-executor/13935:
 #0: 
ffff88802e4bc418
 (
sb_writers
#8){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
 #1: ffff88807b43ac88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1dc/0x520 fs/kernfs/file.c:343
 #2: ffff88802589b9b8 (kn->active#53){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
 #2: ffff88802589b9b8 (kn->active#53){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x236/0x520 fs/kernfs/file.c:344
 #3: ffffffff8ecaf1c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd7/0x370 drivers/net/netdevsim/bus.c:209
 #4: 
ffff88807d35d130 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1114 [inline]
ffff88807d35d130 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1057 [inline]
ffff88807d35d130 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa9/0x7a0 drivers/base/dd.c:1387
 #5: ffff88807d35e250 (&devlink->lock_key#3){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x170 drivers/net/netdevsim/dev.c:1676
 #6: ffffffff8f3ece48 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3f/0x180 drivers/net/netdevsim/netdev.c:417
 #7: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #7: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004
2 locks held by getty/14014:
2 locks held by syz.0.1721/14036:
1 lock held by rm/14076:

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

NMI backtrace for cpu 1
CPU: 1 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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 12213 Comm: kworker/u4:18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker
RIP: 0010:_find_first_zero_bit+0xb9/0x100 lib/find_bit.c:125
Code: 49 39 df 73 33 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 a6 94 b1 fd 4c 8b 65 00 49 83 fc ff 75 1d e8 17 60 58 fd <49> 83 c6 08 48 83 c5 08 49 83 c7 40 eb bd e8 04 60 58 fd 48 89 d8
RSP: 0018:ffffc900045cea00 EFLAGS: 00000093
RAX: ffffffff842fbdb9 RBX: 0000000000100000 RCX: ffff888028e5da00
RDX: 0000000000000000 RSI: 0000000000100000 RDI: 0000000000005000
RBP: ffffffff91d75dc0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520008b9d38 R12: ffffffffffffffff
R13: dffffc0000000000 R14: ffffffff91d75dc0 R15: 0000000000005000
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b13c022138 CR3: 000000006c710000 CR4: 00000000003506f0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 find_first_zero_bit include/linux/find.h:366 [inline]
 alloc_lock_chain kernel/locking/lockdep.c:3707 [inline]
 add_chain_cache kernel/locking/lockdep.c:3739 [inline]
 lookup_chain_cache_add kernel/locking/lockdep.c:3844 [inline]
 validate_chain kernel/locking/lockdep.c:3865 [inline]
 __lock_acquire+0x2425/0x7eb0 kernel/locking/lockdep.c:5171
 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790
 console_lock_spinning_enable kernel/printk/printk.c:1871 [inline]
 console_emit_next_record kernel/printk/printk.c:2938 [inline]
 console_flush_all+0x676/0xcf0 kernel/printk/printk.c:3000
 console_unlock+0xad/0x350 kernel/printk/printk.c:3069
 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341
 _printk+0xde/0x130 kernel/printk/printk.c:2366
 __dynamic_pr_debug+0x1a3/0x260 lib/dynamic_debug.c:879
 nf_nat_inet_fn+0xb17/0xb20 net/netfilter/nf_nat_core.c:970
 nf_nat_ipv6_fn+0x227/0x2e0 net/netfilter/nf_nat_proto.c:937
 nf_nat_ipv6_local_fn+0x2e/0x3b0 net/netfilter/nf_nat_proto.c:1001
 nf_hook_entry_hookfn include/linux/netfilter.h:156 [inline]
 nf_hook_slow+0xb9/0x210 net/netfilter/core.c:626
 nf_hook include/linux/netfilter.h:271 [inline]
 __ip6_local_out+0x788/0x8b0 net/ipv6/output_core.c:138
 ip6_local_out+0x2a/0x130 net/ipv6/output_core.c:148
 ip6tunnel_xmit include/net/ip6_tunnel.h:171 [inline]
 udp_tunnel6_xmit_skb+0x5dc/0xb20 net/ipv6/ip6_udp_tunnel.c:110
 send6+0x608/0x950 drivers/net/wireguard/socket.c:152
 wg_socket_send_skb_to_peer+0x111/0x1c0 drivers/net/wireguard/socket.c:178
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0x207/0x360 drivers/net/wireguard/send.c:51
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 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>
wireguard: wg0: Sending keepalive packet to peer 32 ([::1]:20003/0%0)
wireguard: wg2: Receiving keepalive packet from peer 35 ([::1]:20001/0%0)

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