INFO: task hung in xfs_icwalk_ag

Status: upstream: reported on 2026/09/16 18:03
Reported-by: syzbot+91e39f0de4095ec5ae0a@syzkaller.appspotmail.com
First crash: 11d, last: 11d

Sample crash report:
INFO: task syz.4.315:5373 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.315       state:D stack:0     pid:5373  ppid:4328   flags:0x00000009
Call trace:
 __switch_to+0x2f4/0x550 arch/arm64/kernel/process.c:555
 context_switch kernel/sched/core.c:5246 [inline]
 __schedule+0xdb4/0x1a6c kernel/sched/core.c:6563
 schedule+0xc4/0x170 kernel/sched/core.c:6639
 io_schedule+0x84/0x154 kernel/sched/core.c:8799
 __xfs_iunpin_wait fs/xfs/xfs_inode.c:2469 [inline]
 xfs_iunpin_wait+0x2c8/0x5f4 fs/xfs/xfs_inode.c:2479
 xfs_reclaim_inode fs/xfs/xfs_icache.c:918 [inline]
 xfs_icwalk_process_inode fs/xfs/xfs_icache.c:1660 [inline]
 xfs_icwalk_ag+0xba0/0x15ec fs/xfs/xfs_icache.c:1742
 xfs_icwalk fs/xfs/xfs_icache.c:1791 [inline]
 xfs_reclaim_inodes+0x154/0x240 fs/xfs/xfs_icache.c:1012
 xfs_unmount_flush_inodes+0xbc/0xf4 fs/xfs/xfs_mount.c:595
 xfs_mountfs+0xb50/0x1740 fs/xfs/xfs_mount.c:1018
 xfs_fs_fill_super+0xdec/0x104c fs/xfs/xfs_super.c:1690
 get_tree_bdev+0x35c/0x54c fs/super.c:1377
 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1737
 vfs_get_tree+0x90/0x278 fs/super.c:1584
 do_new_mount+0x228/0x804 fs/namespace.c:3078
 path_mount+0x5ac/0xe6c fs/namespace.c:3408
 do_mount fs/namespace.c:3421 [inline]
 __do_sys_mount fs/namespace.c:3629 [inline]
 __se_sys_mount fs/namespace.c:3606 [inline]
 __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3606
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
2 locks held by kworker/0:0/7:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015597db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xc48 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000155985d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xc48 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/28:
 #0: ffff800015597440 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
3 locks held by udevd/3939:
2 locks held by getty/4083:
 #0: ffff0000d6c63098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001ea162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2e8/0xfa8 drivers/tty/n_tty.c:2198
2 locks held by kworker/0:5/4376:
 #0: ffff0000c0021938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
 #1: ffff8000216a7c40 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
3 locks held by kworker/u4:10/4454:
 #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
 #1: ffff800021d27c40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
 #2: ffff800017a3ebc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74
4 locks held by kworker/u4:14/5193:
 #0: ffff0000c0845138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
 #1: ffff8000226a7c40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
 #2: ffff800017a32350 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x144/0xa90 net/core/net_namespace.c:594
 #3: ffff800017a3ebc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74
2 locks held by syz.4.315/5373:
 #0: ffff0000e10000e0 (&type->s_umount_key#60/1){+.+.}-{3:3}, at: alloc_super+0x1a0/0x840 fs/super.c:228
 #1: ffff0000e1729858 (&xfs_nondir_ilock_class){++++}-{3:3}, at: mrtryupdate fs/xfs/mrlock.h:49 [inline]
 #1: ffff0000e1729858 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_ilock_nowait+0x25c/0x5bc fs/xfs/xfs_inode.c:254
1 lock held by syz.8.1178/8064:
 #0: ffff0000e10000e0 (&type->s_umount_key#61){++++}-{3:3}, at: iterate_supers+0xa8/0x1d4 fs/super.c:755
2 locks held by udevd/8560:
8 locks held by syz-executor/8804:
 #0: ffff0000d9090460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x254/0x7c8 fs/read_write.c:580
 #1: ffff0000f637ac88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1b8/0x4b4 fs/kernfs/file.c:343
 #2: ffff0000d0772008 (kn->active#50){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
 #2: ffff0000d0772008 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1f8/0x4b4 fs/kernfs/file.c:344
 #3: ffff800016df0348 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xdc/0x330 drivers/net/netdevsim/bus.c:209
 #4: ffff0000f52360e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:885 [inline]
 #4: ffff0000f52360e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1099 [inline]
 #4: ffff0000f52360e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x6e4 drivers/base/dd.c:1302
 #5: ffff0000f52372f8 (&devlink->lock_key#6){+.+.}-{3:3}, at: devl_lock+0x24/0x34 net/devlink/leftover.c:275
 #6: ffff800017a3ebc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74
 #7: ffff80001559d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
 #7: ffff80001559d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2b4/0x780 kernel/rcu/tree_exp.h:962
1 lock held by rm/9044:

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/16 18:02 linux-6.1.y 1a8763b93150 12a0a44a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_icwalk_ag
* Struck through repros no longer work on HEAD.