INFO: task syz.6.2917:20536 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.2917      state:D stack:24128 pid:20536 tgid:20535 ppid:19155  task_flags:0x440140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 xlog_grant_head_wait+0x453/0xa20
 xlog_grant_head_check+0x286/0x420
 xfs_log_reserve+0x2cc/0x780
 xfs_trans_alloc+0x29c/0x980
 xfs_trans_alloc_inode+0x13c/0x4a0
 xfs_attr_set+0x7fa/0x1210
 xfs_xattr_set+0x14d/0x250
 __vfs_setxattr+0x43c/0x480
 __vfs_setxattr_noperm+0x12d/0x660
 vfs_setxattr+0x16b/0x2f0
 filename_setxattr+0x274/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_lsetxattr+0xbf/0xe0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa18df8ebe9
RSP: 002b:00007fa18eec5038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fa18e1c5fa0 RCX: 00007fa18df8ebe9
RDX: 00002000000002c0 RSI: 00002000000000c0 RDI: 0000200000000100
RBP: 00007fa18e011e19 R08: 0000000000000002 R09: 0000000000000000
R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa18e1c6038 R14: 00007fa18e1c5fa0 R15: 00007ffeb849a758
 </TASK>
INFO: task syz.6.2917:20549 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.2917      state:D stack:28936 pid:20549 tgid:20535 ppid:19155  task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x872/0xfe0
 down_write+0x1ab/0x1f0
 vfs_unlink+0xf2/0x650
 do_unlinkat+0x345/0x560
 __x64_sys_unlinkat+0xd3/0xf0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa18df8ebe9
RSP: 002b:00007fa18eea4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007fa18e1c6090 RCX: 00007fa18df8ebe9
RDX: 0000000000000000 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fa18e011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa18e1c6128 R14: 00007fa18e1c6090 R15: 00007ffeb849a758
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u9:1/29:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff88804b024008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff888020dea0e0 (&lo->lo_work_lock){..-.}-{3:3}, at: loop_process_work+0xb41/0xf90
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/0:3/2291:
 #0: ffff888020ccad48 ((wq_completion)xfs-sync/loop6){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000ae17bc0 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by getty/5678:
 #0: ffff8880260a00a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029032f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by syz.6.2917/20536:
 #0: ffff888134398428 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88801de05330 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888134398618 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
3 locks held by syz.6.2917/20549:
 #0: ffff888134398428 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88801de00b30 (&inode->i_sb->s_type->i_mutex_dir_key/1){+.+.}-{4:4}, at: do_unlinkat+0x1c7/0x560
 #2: ffff88801de05330 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: vfs_unlink+0xf2/0x650
2 locks held by syz.8.3502/23459:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 23237 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:preempt_count_sub+0x37/0x170
Code: fc ff df 48 c7 c0 20 d3 ab 99 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 d1 00 00 00 83 3d 82 d5 1b 18 00 75 25 65 8b 05 89 82 10 11 <89> c1 81 e1 ff ff ff 7f 39 cf 7f 2a 81 ff ff 00 00 00 0f 93 c1 84
RSP: 0018:ffffc9000304f368 EFLAGS: 00000246
RAX: 0000000080000001 RBX: dffffc0000000000 RCX: ffffffff99abd303
RDX: 0000000000000000 RSI: ffffffff8d9b8241 RDI: 0000000000000001
RBP: ffffc9000304f410 R08: ffffffff8fa39037 R09: 1ffffffff1f47206
R10: dffffc0000000000 R11: fffffbfff1f47207 R12: dffffc0000000000
R13: ffff88804ae18000 R14: ffffffff99d7b890 R15: 1ffff92000609e70
FS:  000055557494b500(0000) GS:ffff8880b8618000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff786fdf88 CR3: 000000012a1d0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 _raw_spin_unlock_irqrestore+0xad/0x110
 debug_check_no_obj_freed+0x451/0x470
 free_unref_folios+0x4da/0x1520
 folios_put_refs+0x559/0x640
 shmem_undo_range+0x49e/0x14b0
 shmem_evict_inode+0x272/0xa70
 evict+0x504/0x9c0
 __dentry_kill+0x209/0x660
 dput+0x19f/0x2b0
 __fput+0x68e/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd65bd8d84a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 43 91 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 a3 91 02 00 8b 44 24
RSP: 002b:00007ffcfa7c8c60 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007fd65bd8d84a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffcfa7c8cbc R08: 0000000000000000 R09: 00007ffcfa7c89c7
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000000b
R13: 00000000000927c0 R14: 00000000000e2f0e R15: 00007ffcfa7c8d10
 </TASK>
