INFO: task hung in nfsd4_write_time

Status: upstream: reported on 2026/08/06 17:17
Reported-by: syzbot+d4b0d555b9afa7942416@syzkaller.appspotmail.com
First crash: 2d03h, last: 1d05h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 INFO: task hung in nfsd4_write_time 1 2 1d05h 4d10h 0/2 upstream: reported on 2026/08/04 09:59

Sample crash report:
INFO: task syz.1.1988:11210 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.1988      state:D stack:27088 pid:11210 ppid:4275   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5246 [inline]
 __schedule+0x107f/0x4030 kernel/sched/core.c:6563
 schedule+0xb9/0x180 kernel/sched/core.c:6639
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6698
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x548/0xae0 kernel/locking/mutex.c:747
 nfsd4_write_time+0xa4/0x330 fs/nfsd/nfsctl.c:980
 nfsctl_transaction_write+0x105/0x150 fs/nfsd/nfsctl.c:114
 vfs_write+0x2dc/0x9a0 fs/read_write.c:582
 ksys_write+0x14d/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f032419e0d9
RSP: 002b:00007f0324ff6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f0324426090 RCX: 00007f032419e0d9
RDX: 0000000000000002 RSI: 0000200000000140 RDI: 0000000000000004
RBP: 00007f0324235024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0324426128 R14: 00007f0324426090 R15: 00007ffe48e111b8
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cb2e4f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xef0 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cb2ed10 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xef0 kernel/rcu/tasks.h:517
2 locks held by ksoftirqd/0/15:
3 locks held by kworker/1:0/22:
 #0: ffff888017470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc900001c7d00 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:104
1 lock held by khungtaskd/27:
 #0: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #0: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #0: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6527
2 locks held by kworker/u4:3/47:
2 locks held by dhcpcd/3932:
 #0: ffffffff8dd41828 (vlan_ioctl_mutex){+.+.}-{3:3}, at: sock_ioctl+0x21b/0x700 net/socket.c:1283
 #1: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: vlan_ioctl_handler+0xef/0x5c0 net/8021q/vlan.c:580
2 locks held by getty/4032:
 #0: ffff88807e620098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41e/0x1360 drivers/tty/n_tty.c:2198
4 locks held by kworker/u4:14/4409:
 #0: ffff88801761e938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90004477d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8dd4ead0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x148/0xba0 net/core/net_namespace.c:594
 #3: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: wg_destruct+0x21/0x300 drivers/net/wireguard/device.c:246
3 locks held by kworker/u4:30/4445:
 #0: ffff888017479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90004a3fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:263
2 locks held by kworker/1:11/10002:
 #0: ffff888017472138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90004f27d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
3 locks held by kworker/u4:10/10840:
3 locks held by syz.1.1988/11207:
 #0: ffff88807a0c5c68 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2ae/0x360 fs/file.c:1038
 #1: ffff888024992460 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580
 #2: ffffffff8cdcce08 (nfsd_mutex){+.+.}-{3:3}, at: write_ports+0xb3/0xb80 fs/nfsd/nfsctl.c:846
3 locks held by syz.1.1988/11210:
 #0: ffff888071960d68 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2ae/0x360 fs/file.c:1038
 #1: ffff888024992460 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580
 #2: ffffffff8cdcce08 (nfsd_mutex){+.+.}-{3:3}, at: nfsd4_write_time+0xa4/0x330 fs/nfsd/nfsctl.c:980
3 locks held by kworker/0:0/12072:
 #0: ffff88802f566538 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90019a4fd00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xc4/0x1500 net/ipv6/addrconf.c:4138
8 locks held by syz-executor/13397:
 #0: ffff88807dc40460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580
 #1: ffff888056f60488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1d8/0x520 fs/kernfs/file.c:343
 #2: ffff888027854660 (kn->active#53){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
 #2: ffff888027854660 (kn->active#53){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x232/0x520 fs/kernfs/file.c:344
 #3: ffffffff8d66a3a8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd3/0x370 drivers/net/netdevsim/bus.c:209
 #4: ffff8880278780e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:885 [inline]
 #4: ffff8880278780e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1099 [inline]
 #4: ffff8880278780e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xb1/0x7c0 drivers/base/dd.c:1302
 #5: ffff88805649d2f8 (&devlink->lock_key#2){+.+.}-{3:3}, at: nsim_drv_remove+0x54/0x170 drivers/net/netdevsim/dev.c:1678
 #6: ffffffff8dd5b968 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3b/0x150 drivers/net/netdevsim/netdev.c:381
 #7: ffffffff8cb33838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
 #7: ffffffff8cb33838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2ec/0x890 kernel/rcu/tree_exp.h:962
4 locks held by khidpd_00070007/13597:
 #0: ffff88805b344428 (&hdev->lock){+.+.}-{3:3}, at: l2cap_unregister_user+0x67/0x1a0 net/bluetooth/l2cap_core.c:1774
 #1: ffffffff8dee4650 (hidp_session_sem){++++}-{3:3}, at: hidp_session_remove+0x28/0x2a0 net/bluetooth/hidp/core.c:1180
 #2: ffffffff8d8466e8 (input_mutex){+.+.}-{3:3}, at: __input_unregister_device+0x2eb/0x5f0 drivers/input/input.c:2293
 #3: ffffffff8cb33838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
 #3: ffffffff8cb33838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3c0/0x890 kernel/rcu/tree_exp.h:962

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 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+0x188/0x24e lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3e6/0x460 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1d4/0x450 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+0xf0e/0xf50 kernel/hung_task.c:377
 kthread+0x29d/0x330 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: 21 Comm: ksoftirqd/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:244 [inline]
RIP: 0010:__sanitizer_cov_trace_cmp8+0x4/0x80 kernel/kcov.c:293
Code: 77 22 89 ff 89 f6 49 ff c0 4c 89 01 48 c7 44 11 08 04 00 00 00 48 89 7c 11 10 48 89 74 11 18 48 89 44 11 20 c3 90 48 8b 04 24 <65> 48 8b 0d 34 3f 80 7e 65 8b 15 35 3f 80 7e 81 e2 00 01 ff 00 74
RSP: 0018:ffffc900001b7028 EFLAGS: 00000203
RAX: ffffffff8139eba7 RBX: 000000003d89b280 RCX: ffff888017759e00
RDX: 0000000000000100 RSI: ffff8880bd89b280 RDI: 000000003d89b280
RBP: ffffc900001b7170 R08: ffff888017759e00 R09: 0000000000000002
R10: 0000000000000001 R11: 0000000000000100 R12: ffff88803d89b280
R13: ffffc900001b71c2 R14: ffff8880bd89b280 R15: ffffffff888dcaa7
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6f455ef2f8 CR3: 0000000075594000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 __phys_addr+0x47/0x170 arch/x86/mm/physaddr.c:28
 virt_to_folio include/linux/mm.h:913 [inline]
 virt_to_slab mm/slab.h:175 [inline]
 kmem_cache_free+0x6f/0x2a0 mm/slub.c:3709
 nft_synproxy_eval_v4+0x367/0x4e0 net/netfilter/nft_synproxy.c:-1
 nft_synproxy_do_eval+0x32e/0x550 net/netfilter/nft_synproxy.c:140
 expr_call_ops_eval net/netfilter/nf_tables_core.c:214 [inline]
 nft_do_chain+0x4b2/0x16d0 net/netfilter/nf_tables_core.c:264
 nft_do_chain_ipv4+0x156/0x220 net/netfilter/nft_chain_filter.c:23
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0xb9/0x200 net/netfilter/core.c:614
 nf_hook include/linux/netfilter.h:257 [inline]
 NF_HOOK+0x219/0x3b0 include/linux/netfilter.h:300
 NF_HOOK+0x329/0x3b0 include/linux/netfilter.h:302
 __netif_receive_skb_one_core net/core/dev.c:5619 [inline]
 __netif_receive_skb+0xcc/0x290 net/core/dev.c:5733
 process_backlog+0x37c/0x710 net/core/dev.c:6061
 __napi_poll+0xbb/0x460 net/core/dev.c:6628
 napi_poll net/core/dev.c:6695 [inline]
 net_rx_action+0x622/0xbc0 net/core/dev.c:6809
 handle_softirqs+0x291/0x910 kernel/softirq.c:596
 run_ksoftirqd+0xa4/0x100 kernel/softirq.c:968
 smpboot_thread_fn+0x667/0xa30 kernel/smpboot.c:164
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/07 15:15 linux-6.1.y e4f7d8be268e e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in nfsd4_write_time
2026/08/07 11:30 linux-6.1.y e4f7d8be268e e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in nfsd4_write_time
2026/08/06 21:54 linux-6.1.y 03f3a99e8e93 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in nfsd4_write_time
2026/08/06 17:16 linux-6.1.y fb28aa725e05 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in nfsd4_write_time
* Struck through repros no longer work on HEAD.