INFO: task syz.2.6616:25706 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.6616      state:D stack:26056 pid:25706 tgid:25704 ppid:23672  task_flags:0x400140 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_setxattr+0x144/0x2f0
 filename_setxattr+0x274/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_setxattr+0xbc/0xe0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa557b8eba9
RSP: 002b:00007fa558a7b038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007fa557dd6090 RCX: 00007fa557b8eba9
RDX: 00002000000013c0 RSI: 0000200000000140 RDI: 0000200000000100
RBP: 00007fa557c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa557dd6128 R14: 00007fa557dd6090 R15: 00007ffd3de68268
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e13a0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5673:
 #0: ffff88801ffd00a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900028fb2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
4 locks held by syz.2.6616/25705:
 #0: ffff888123816428 (sb_writers#31){++++}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88802c63db30 (&sb->s_type->i_mutex_key#44){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888123816618 (sb_internal#2){++++}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
 #3: ffff88802c63d918 (&xfs_nondir_ilock_class){++++}-{4:4}, at: xfs_trans_alloc_inode+0x161/0x4a0
2 locks held by syz.2.6616/25706:
 #0: ffff888123816428 (sb_writers#31){++++}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88802c63db30 (&sb->s_type->i_mutex_key#44){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
2 locks held by syz.0.7029/28192:
2 locks held by syz.4.7032/28190:
 #0: ffff888032954a08 (&sb->s_type->i_mutex_key#11){+.+.}-{4:4}, at: sock_close+0x9b/0x240
 #1: ffffffff8e13fb78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
1 lock held by syz.4.7032/28191:
2 locks held by syz.5.7033/28197:
 #0: ffff888012900920 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_open+0x11e5/0x2600
 #1: ffff8880129049d8 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x117/0x1a0

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

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+0x439/0x7d0
 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: 28192 Comm: syz.0.7029 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:__lock_acquire+0x5ff/0xd20
Code: 24 85 c0 74 0d 83 3d 53 5f 06 0e 00 0f 84 1a 05 00 00 83 7c 24 0c 00 0f 84 a9 00 00 00 41 8b 46 20 66 85 c0 0f 88 8d 00 00 00 <65> 8b 0d c6 75 03 11 a9 00 00 03 00 74 38 85 c9 74 1d 48 8b 3c 24
RSP: 0018:ffffc90006d9f0b0 EFLAGS: 00000002
RAX: 00000000000c02da RBX: 0000000000000001 RCX: 0000000000000001
RDX: 0000000000000003 RSI: 0000000000000005 RDI: ffff888109518000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff81f61d2c
R10: dffffc0000000000 R11: fffffbfff1f474a7 R12: 0000000000000003
R13: 0000000000000003 R14: ffff888109518b18 R15: ffff888109518b38
FS:  00007efe4ab926c0(0000) GS:ffff8880b8615000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f479ab733a0 CR3: 000000001fa2c000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x120/0x360
 _raw_spin_lock_irq+0xa2/0xf0
 filemap_remove_folio+0xdc/0x1f0
 truncate_inode_folio+0x5d/0x70
 shmem_undo_range+0x3a9/0x14b0
 shmem_evict_inode+0x272/0xa70
 evict+0x504/0x9c0
 __dentry_kill+0x209/0x660
 dput+0x19f/0x2b0
 __fput+0x68e/0xa70
 task_work_run+0x1d4/0x260
 do_exit+0x6b5/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efe49d8eba9
Code: Unable to access opcode bytes at 0x7efe49d8eb7f.
RSP: 002b:00007efe4ab920e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007efe49fd6098 RCX: 00007efe49d8eba9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007efe49fd6098
RBP: 00007efe49fd6090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efe49fd6128 R14: 00007ffe455566f0 R15: 00007ffe455567d8
 </TASK>
