INFO: task syz.4.1430:9626 blocked for more than 143 seconds. Not tainted 5.15.180-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.1430 state:D stack:24640 pid: 9626 ppid: 4164 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x11b8/0x43b0 kernel/sched/core.c:6376 schedule+0x11b/0x1e0 kernel/sched/core.c:6459 xlog_grant_head_wait+0x359/0x810 fs/xfs/xfs_log.c:256 xlog_grant_head_check+0x25e/0x380 include/linux/spinlock.h:-1 xfs_log_reserve+0x32d/0x970 fs/xfs/xfs_log.c:464 xfs_trans_reserve+0x222/0x690 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x3fc/0x780 fs/xfs/xfs_trans.c:288 xfs_trans_alloc_inode+0xad/0x340 fs/xfs/xfs_trans.c:1047 xfs_attr_set+0x778/0x1290 fs/xfs/libxfs/xfs_attr.c:772 xfs_xattr_set+0x115/0x210 fs/xfs/xfs_xattr.c:59 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x168/0x2f0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x2da/0x300 fs/xattr.c:611 path_setxattr+0x142/0x280 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:649 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa40fe65969 RSP: 002b:00007fa40dccd038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fa41008cfa0 RCX: 00007fa40fe65969 RDX: 0000200000000040 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007fa40fee7ab1 R08: 0000000000000001 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa41008cfa0 R15: 00007ffd5e3c4fa8 INFO: task syz.4.1430:9641 blocked for more than 144 seconds. Not tainted 5.15.180-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.1430 state:D stack:28712 pid: 9641 ppid: 4164 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x11b8/0x43b0 kernel/sched/core.c:6376 schedule+0x11b/0x1e0 kernel/sched/core.c:6459 rwsem_down_write_slowpath+0xc46/0x11f0 kernel/locking/rwsem.c:1165 inode_lock include/linux/fs.h:787 [inline] vfs_setxattr+0x141/0x2f0 fs/xattr.c:302 do_setxattr fs/xattr.c:588 [inline] setxattr+0x2da/0x300 fs/xattr.c:611 path_setxattr+0x142/0x280 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+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa40fe65969 RSP: 002b:00007fa40dcac038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fa41008d080 RCX: 00007fa40fe65969 RDX: 0000000000000000 RSI: 00002000000005c0 RDI: 0000200000000580 RBP: 00007fa40fee7ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa41008d080 R15: 00007ffd5e3c4fa8 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c11d9e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3924: #0: ffff88814ce89098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc900025c62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ba/0x1a30 drivers/tty/n_tty.c:2158 3 locks held by syz-executor/4169: 3 locks held by kworker/0:6/4333: #0: ffff888016870938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffffc9000300fd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285 #2: ffffffff8c122468 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #2: ffffffff8c122468 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x347/0x6b0 kernel/rcu/tree_exp.h:845 2 locks held by kworker/0:13/5358: #0: ffff888016872138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffffc9000365fd00 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285 2 locks held by kworker/1:21/6861: #0: ffff888060471138 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffffc90003397d00 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285 3 locks held by syz.4.1430/9626: #0: ffff88807adac460 (sb_writers#26){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:377 #1: ffff888070a7f380 (&sb->s_type->i_mutex_key#39){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff888070a7f380 (&sb->s_type->i_mutex_key#39){++++}-{3:3}, at: vfs_setxattr+0x141/0x2f0 fs/xattr.c:302 #2: ffff88807adac650 (sb_internal#4){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0xad/0x340 fs/xfs/xfs_trans.c:1047 2 locks held by syz.4.1430/9641: #0: ffff88807adac460 (sb_writers#26){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:377 #1: ffff888070a7f380 (&sb->s_type->i_mutex_key#39){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff888070a7f380 (&sb->s_type->i_mutex_key#39){++++}-{3:3}, at: vfs_setxattr+0x141/0x2f0 fs/xattr.c:302 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xe0f/0xe50 kernel/hung_task.c:369 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4260 Comm: kworker/u4:7 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: bat_events batadv_nc_worker RIP: 0010:mark_lock+0x1/0x320 kernel/locking/lockdep.c:4552 Code: c1 7c 90 48 c7 c7 c8 eb 68 8d e8 8a 93 60 00 4c 89 f7 41 89 d9 e9 79 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 <41> 57 41 56 41 55 41 54 53 50 89 d5 49 89 f6 48 89 fb 49 bd 00 00 RSP: 0018:ffffc90003e4f890 EFLAGS: 00000002 RAX: 0000000000000000 RBX: ffff888027620ad0 RCX: dffffc0000000000 RDX: 0000000000000006 RSI: ffff888027620af0 RDI: ffff888027620000 RBP: ffffc90003e4faf0 R08: dffffc0000000000 R09: fffffbfff1ff3436 R10: fffffbfff1ff3436 R11: 1ffffffff1ff3435 R12: ffff888027620b10 R13: ffff888027620000 R14: 0000000000000000 R15: ffff888027620af0 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f11c69e1000 CR3: 0000000073a53000 CR4: 00000000003526e0 DR0: 0000040000000000 DR1: 000000000000064f DR2: 0000000000000006 DR3: 0000000000000006 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xd38/0x7c60 kernel/locking/lockdep.c:4966 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 process_one_work+0x79f/0x1000 kernel/workqueue.c:2285 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287