INFO: task syz.5.11606:15437 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.11606     state:D stack:20840 pid:15437 tgid:15436 ppid:15302  task_flags:0x440140 flags:0x00024004
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:0x7fcbe958ebe9
RSP: 002b:00007fcbea3fa038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fcbe97b5fa0 RCX: 00007fcbe958ebe9
RDX: 0000200000000040 RSI: 00002000000000c0 RDI: 0000200000000100
RBP: 00007fcbe9611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe97b6038 R14: 00007fcbe97b5fa0 R15: 00007fff1d2b0af8
 </TASK>
INFO: task syz.5.11606:15477 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.11606     state:D stack:27880 pid:15477 tgid:15436 ppid:15302  task_flags:0x440140 flags:0x00004006
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_icreate+0x59/0x200
 xfs_create+0x51a/0xad0
 xfs_generic_create+0x3c9/0xad0
 path_openat+0x14f4/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe958ebe9
RSP: 002b:00007fcbea3d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcbe97b6090 RCX: 00007fcbe958ebe9
RDX: 00000000000026e1 RSI: 0000200000000940 RDI: ffffffffffffff9c
RBP: 00007fcbe9611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe97b6128 R14: 00007fcbe97b6090 R15: 00007fff1d2b0af8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/0:2/794:
 #0: ffff88802dbf9548 ((wq_completion)xfs-sync/loop5){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900047dfbc0 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by getty/5673:
 #0: ffff8881106920a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by kworker/u9:1/32692:
 #0: ffff88801cf43948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003c2fbc0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
3 locks held by syz.5.11606/15437:
 #0: ffff88802b5de428 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888129ebd330 (&sb->s_type->i_mutex_key#29){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff88802b5de618 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
3 locks held by syz.5.11606/15477:
 #0: ffff88802b5de428 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888129eb9330 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{4:4}, at: path_openat+0x8da/0x3830
 #2: ffff88802b5de618 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
2 locks held by syz-executor/18762:
 #0: ffff8880224400e0 (&type->s_umount_key#55){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffffffff8e13f840 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570

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

NMI backtrace for cpu 0
CPU: 0 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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 18762 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:unwind_next_frame+0x173f/0x2390
Code: 00 00 e9 f7 01 00 00 48 8b 54 24 08 48 8d 5a 02 48 83 c2 03 48 89 d8 48 c1 e8 03 0f b6 04 28 84 c0 0f 85 19 0b 00 00 48 89 d0 <48> c1 e8 03 0f b6 04 28 84 c0 0f 85 2b 0b 00 00 48 0f bf 03 49 01
RSP: 0018:ffffc9000306f158 EFLAGS: 00000246
RAX: ffffffff9041f367 RBX: ffffffff9041f366 RCX: 0000000000000000
RDX: ffffffff9041f367 RSI: 0000000000000001 RDI: ffffc9000306f288
RBP: dffffc0000000000 R08: ffffc9000306f287 R09: 0000000000000000
R10: ffffc9000306f278 R11: fffff5200060de51 R12: ffffc9000306fe00
R13: ffffc9000306f278 R14: ffffc9000306f228 R15: 1ffffffff2083e6d
FS:  000055557d6c5500(0000) GS:ffff8881a3c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557e5155c8 CR3: 00000000716b0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __reset_page_owner+0x71/0x1f0
 free_unref_folios+0xdbd/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:0x7f54e1d8d84a
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:00007ffc2303cec0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f54e1d8d84a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffc2303cf1c R08: 0000000000000000 R09: 00007ffc2303cc27
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000001e
R13: 00000000000927c0 R14: 0000000000288c38 R15: 00007ffc2303cf70
 </TASK>
