INFO: task syz.0.17:4536 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.17 state:D stack:0 pid:4536 ppid:4447 flags:0x00000001 Call trace: __switch_to+0x2f4/0x550 arch/arm64/kernel/process.c:555 context_switch kernel/sched/core.c:5245 [inline] __schedule+0xdd0/0x1b0c kernel/sched/core.c:6562 schedule+0xc4/0x170 kernel/sched/core.c:6638 xlog_grant_head_wait+0x3a8/0xa88 fs/xfs/xfs_log.c:307 xlog_grant_head_check+0x1b4/0x320 fs/xfs/xfs_log.c:-1 xfs_log_reserve+0x344/0xbb0 fs/xfs/xfs_log.c:486 xfs_trans_reserve+0x1f0/0x5d4 fs/xfs/xfs_trans.c:194 xfs_trans_alloc+0x420/0x91c fs/xfs/xfs_trans.c:283 xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 xfs_attr_set+0x82c/0x1280 fs/xfs/libxfs/xfs_attr.c:1024 xfs_attr_change fs/xfs/xfs_xattr.c:106 [inline] xfs_xattr_set+0x104/0x1ec fs/xfs/xfs_xattr.c:151 __vfs_setxattr+0x384/0x3a0 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x258/0x2d8 fs/xattr.c:617 path_setxattr+0x130/0x260 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 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: 1 lock held by rcu_tasks_kthre/12: #0: ffff8000153e7c30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517 1 lock held by rcu_tasks_trace/13: #0: ffff8000153e8450 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517 2 locks held by kworker/0:1/14: #0: ffff0000cb70d538 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff80001ca07c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 2 locks held by ksoftirqd/1/21: #0: ffff00019f578198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:538 [inline] #0: ffff00019f578198 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1362 [inline] #0: ffff00019f578198 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1652 [inline] #0: ffff00019f578198 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2b8/0x1b0c kernel/sched/core.c:6478 #1: ffff00019f564bc8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x380/0x608 kernel/sched/psi.c:999 1 lock held by khungtaskd/28: #0: ffff8000153e72c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349 2 locks held by kworker/1:3/3897: #0: ffff0000d1ec8538 ((wq_completion)xfs-sync/loop5){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800023bf7c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 2 locks held by getty/4077: #0: ffff0000d6bfc098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80001cfe62f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2ec/0xfa0 drivers/tty/n_tty.c:2198 2 locks held by kworker/1:8/4405: #0: ffff0000d4946538 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020947c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 2 locks held by kworker/1:9/4407: #0: ffff0000da366538 ((wq_completion)xfs-sync/loop7){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020727c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 3 locks held by kworker/1:10/4408: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff8000208f7c20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 #2: ffff0000c2e93240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d0/0x27cc drivers/net/netdevsim/fib.c:1491 2 locks held by kworker/1:12/4410: #0: ffff0000d1479538 ((wq_completion)xfs-sync/loop3){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020957c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 2 locks held by kworker/1:13/4411: #0: ffff0000feec8d38 ((wq_completion)xfs-sync/loop6){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020b47c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 3 locks held by syz.0.17/4536: #0: ffff0000ddc66460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e53c9a78 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e53c9a78 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000ddc66650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 2 locks held by kworker/0:7/4548: #0: ffff0000cc781538 ((wq_completion)xfs-sync/loop2){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020f37c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 2 locks held by kworker/0:10/4551: #0: ffff0000ef8bf538 ((wq_completion)xfs-sync/loop1){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff800020f67c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6fc/0x13a4 kernel/workqueue.c:2267 3 locks held by syz.1.18/4566: #0: ffff0000c3988460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e0635878 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e0635878 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000c3988650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.2.19/4589: #0: ffff0000d09ca460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e53cc8f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e53cc8f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000d09ca650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.3.20/4612: #0: ffff0000da1d2460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e5271a78 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e5271a78 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000da1d2650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.4.21/4650: #0: ffff0000dae1e460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e52767f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e52767f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000dae1e650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 2 locks held by kworker/u4:7/4660: #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x6b8/0x13a4 kernel/workqueue.c:2265 #1: ffff00019f543bc8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x380/0x608 kernel/sched/psi.c:999 3 locks held by syz.5.22/4685: #0: ffff0000fa488460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e06350b8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e06350b8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000fa488650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.6.23/4718: #0: ffff0000fefd2460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000f00929f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000f00929f8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000fefd2650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.7.24/4751: #0: ffff0001036b8460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000f012d878 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000f012d878 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0001036b8650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.8.25/4789: #0: ffff0000ef018460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e50e8af8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e50e8af8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000ef018650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 3 locks held by syz.9.26/4822: #0: ffff0000ff0ba460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000e50eb978 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000e50eb978 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac fs/xattr.c:308 #2: ffff0000ff0ba650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xac/0x330 fs/xfs/xfs_trans.c:1190 =============================================