INFO: task syz-executor.0:16123 blocked for more than 143 seconds. Not tainted 5.15.106-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:20600 pid:16123 ppid: 3629 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x4590 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 xlog_grant_head_wait+0x381/0x900 fs/xfs/xfs_log.c:256 xlog_grant_head_check+0x295/0x480 xfs_log_reserve+0x3b8/0xb10 fs/xfs/xfs_log.c:464 xfs_trans_reserve+0x23d/0x690 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x420/0x7f0 fs/xfs/xfs_trans.c:288 xfs_trans_alloc_inode+0x129/0x450 fs/xfs/xfs_trans.c:1047 xfs_attr_set+0x848/0x1460 fs/xfs/libxfs/xfs_attr.c:772 xfs_xattr_set+0x227/0x3a0 fs/xfs/xfs_xattr.c:59 __vfs_setxattr+0x3e7/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 vfs_setxattr+0x21d/0x420 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x27e/0x2e0 fs/xattr.c:611 path_setxattr+0x1bc/0x2a0 fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f06ec596169 RSP: 002b:00007f06eab08168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f06ec6b5f80 RCX: 00007f06ec596169 RDX: 0000000020000240 RSI: 0000000020000800 RDI: 00000000200005c0 RBP: 00007f06ec5f1ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000ff7f R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd2941b35f R14: 00007f06eab08300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91b920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:1/144: 2 locks held by kworker/1:2/1065: #0: ffff8880b3111538 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2279 #1: ffffc90004557d20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2281 2 locks held by getty/3267: #0: ffff88814ab3b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147 4 locks held by syz-executor.5/3621: 3 locks held by syz-executor.0/16123: #0: ffff888085aa4460 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888084701980 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff888084701980 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: vfs_setxattr+0x1dd/0x420 fs/xattr.c:302 #2: ffff888085aa4650 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0x129/0x450 fs/xfs/xfs_trans.c:1047 3 locks held by syz-executor.4/18148: 2 locks held by syz-executor.1/18154: 2 locks held by syz-executor.2/18162: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 5.15.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: 0x0 (phy13) RIP: 0010:check_preemption_disabled+0x2e/0x110 Code: 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 65 8b 1d 10 1a eb 75 65 8b 05 81 74 eb 75 a9 ff ff ff 7f 74 22 <65> 48 8b 04 25 28 00 00 00 48 3b 44 24 08 0f 85 c7 00 00 00 89 d8 RSP: 0018:ffffc90000ce7ba0 EFLAGS: 00000002 RAX: 0000000080000001 RBX: 0000000000000000 RCX: ffff88813fe90000 RDX: ffff88813fe90000 RSI: ffffffff8a8b0380 RDI: ffffffff8ad85140 RBP: 0000000000000001 R08: ffffffff815336cf R09: ffff888011db8f10 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000046 R13: ffff88813fe90000 R14: 00000000ffffffff R15: ffff888011c69818 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1bc15ac000 CR3: 000000002f462000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:436 [inline] lock_is_held_type+0xfd/0x180 kernel/locking/lockdep.c:5666 lock_is_held include/linux/lockdep.h:287 [inline] put_pwq kernel/workqueue.c:1130 [inline] pwq_dec_nr_in_flight+0x19a/0x460 kernel/workqueue.c:1229 process_one_work+0xb87/0x10c0 kernel/workqueue.c:2349 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298