INFO: task syz.1.140:6662 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.140       state:D stack:26016 pid:6662  tgid:6647  ppid:5850   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_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:0x7fc7c5f8ebe9
RSP: 002b:00007fc7c6d1c038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fc7c61b6090 RCX: 00007fc7c5f8ebe9
RDX: 0000200000000080 RSI: 00002000000000c0 RDI: 0000200000000100
RBP: 00007fc7c6011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc7c61b6128 R14: 00007fc7c61b6090 R15: 00007ffc0a1f0ae8
 </TASK>
INFO: task syz.1.140:6669 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.140       state:D stack:28936 pid:6669  tgid:6647  ppid:5850   task_flags:0x440040 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_dir+0xc0/0x620
 xfs_remove+0x491/0x960
 xfs_vn_unlink+0xfb/0x210
 vfs_rmdir+0x3ba/0x520
 do_rmdir+0x25f/0x550
 __x64_sys_unlinkat+0xc2/0xf0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc7c5f8ebe9
RSP: 002b:00007fc7c41f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007fc7c61b6180 RCX: 00007fc7c5f8ebe9
RDX: 0000000000000200 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fc7c6011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc7c61b6218 R14: 00007fc7c61b6180 R15: 00007ffc0a1f0ae8
 </TASK>
INFO: task syz.1.140:6672 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.140       state:D stack:28328 pid:6672  tgid:6647  ppid:5850   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 path_openat+0x8cb/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:0x7fc7c5f8ebe9
RSP: 002b:00007fc7c3dd3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fc7c61b6270 RCX: 00007fc7c5f8ebe9
RDX: 0000000000101201 RSI: 0000200000000080 RDI: ffffffffffffff9c
RBP: 00007fc7c6011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc7c61b6308 R14: 00007fc7c61b6270 R15: 00007ffc0a1f0ae8
 </TASK>

Showing all locks held in the system:
1 lock held by ksoftirqd/1/23:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5674:
 #0: ffff88802618e0a0 (&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.1.140/6662:
 #0: ffff888031656428 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888108bc6330 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888031656618 (sb_internal#5){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
4 locks held by syz.1.140/6669:
 #0: ffff888031656428 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88802aa5d330 (&inode->i_sb->s_type->i_mutex_dir_key/1){+.+.}-{4:4}, at: do_rmdir+0x1b2/0x550
 #2: ffff888108bc0330 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{4:4}, at: vfs_rmdir+0xf7/0x520
 #3: ffff888031656618 (sb_internal#5){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
2 locks held by syz.1.140/6672:
 #0: ffff888031656428 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888108bc0330 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{4:4}, at: path_openat+0x8cb/0x3830
1 lock held by syz-executor/8639:

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

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: 8639 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:debug_check_no_obj_freed+0x205/0x470
Code: 00 ff c3 48 8b 44 24 18 49 89 c7 48 85 c0 0f 84 45 02 00 00 4d 89 fe 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df 41 80 3c 06 00 <74> 08 4c 89 ff e8 71 c8 52 fd 49 8b 07 48 89 44 24 18 4d 8d 67 18
RSP: 0018:ffffc9000368f420 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: 0000000000000006 RCX: dffffc0000000001
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc9000368f300
RBP: ffff888021a0e228 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520006d1e60 R12: ffff8880217ad328
R13: ffff88803af11000 R14: 1ffff11004199b42 R15: ffff888020ccda10
FS:  000055557b5ea500(0000) GS:ffff8881a3c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556cc3d608 CR3: 0000000023cc6000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 free_unref_folios+0x4da/0x1520
 folios_put_refs+0x56a/0x650
 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:0x7ff2f238d84a
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:00007ffd3e203c80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007ff2f238d84a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffd3e203cdc R08: 0000000000000000 R09: 00007ffd3e2039e7
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000040
R13: 00000000000927c0 R14: 000000000003fd76 R15: 00007ffd3e203d30
 </TASK>
