INFO: task syz.4.1419:13877 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1419      state:D stack:24312 pid:13877 tgid:13876 ppid:12160  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/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe059b8ebe9
RSP: 002b:00007fe05aa94038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fe059dc5fa0 RCX: 00007fe059b8ebe9
RDX: 00002000000000c0 RSI: 0000200000000080 RDI: 0000200000000300
RBP: 00007fe059c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fd3f R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe059dc6038 R14: 00007fe059dc5fa0 R15: 00007ffc57c392c8
 </TASK>
INFO: task syz.4.1419:13907 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1419      state:D stack:27992 pid:13907 tgid:13876 ppid:12160  task_flags:0x400040 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
 lookup_slow+0x46/0x70
 walk_component+0x2d2/0x400
 path_lookupat+0x163/0x430
 filename_lookup+0x212/0x570
 filename_setxattr+0xb6/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_lsetxattr+0xbf/0xe0
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe059b8ebe9
RSP: 002b:00007fe05aa73038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fe059dc6090 RCX: 00007fe059b8ebe9
RDX: 00002000000000c0 RSI: 0000200000000080 RDI: 0000200000000300
RBP: 00007fe059c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fd3f R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe059dc6128 R14: 00007fe059dc6090 R15: 00007ffc57c392c8
 </TASK>
INFO: task syz.4.1419:13908 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1419      state:D stack:28344 pid:13908 tgid:13876 ppid:12160  task_flags:0x400040 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
 lookup_slow+0x46/0x70
 walk_component+0x2d2/0x400
 path_lookupat+0x163/0x430
 filename_lookup+0x212/0x570
 filename_setxattr+0xb6/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_lsetxattr+0xbf/0xe0
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe059b8ebe9
RSP: 002b:00007fe05aa52038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fe059dc6180 RCX: 00007fe059b8ebe9
RDX: 0000000000000000 RSI: 0000200000000040 RDI: 0000200000000000
RBP: 00007fe059c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe059dc6218 R14: 00007fe059dc6180 R15: 00007ffc57c392c8
 </TASK>
INFO: task syz.4.1419:13909 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1419      state:D stack:28792 pid:13909 tgid:13876 ppid:12160  task_flags:0x400040 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
 lookup_slow+0x46/0x70
 walk_component+0x2d2/0x400
 path_lookupat+0x163/0x430
 filename_lookup+0x212/0x570
 path_listxattrat+0x112/0x3a0
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe059b8ebe9
RSP: 002b:00007fe05aa31038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2
RAX: ffffffffffffffda RBX: 00007fe059dc6270 RCX: 00007fe059b8ebe9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000000c0
RBP: 00007fe059c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe059dc6308 R14: 00007fe059dc6270 R15: 00007ffc57c392c8
 </TASK>
INFO: task syz.4.1419:13912 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1419      state:D stack:28904 pid:13912 tgid:13876 ppid:12160  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_nested+0x1b5/0x200
 do_unlinkat+0x1c7/0x560
 __x64_sys_unlink+0x47/0x50
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe059b8ebe9
RSP: 002b:00007fe05aa10038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007fe059dc6360 RCX: 00007fe059b8ebe9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000100
RBP: 00007fe059c11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe059dc63f8 R14: 00007fe059dc6360 R15: 00007ffc57c392c8
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/1:0/24:
 #0: ffff88811f243148 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001c7ba0 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
1 lock held by khungtaskd/34:
 #0: ffffffff8e33cda0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u9:6/1092:
2 locks held by getty/5675:
 #0: ffff888029fe20a0 (&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
1 lock held by syz-executor/5834:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
1 lock held by udevd/5851:
 #0: ffff888021036358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xe0/0xd30
3 locks held by syz.4.1419/13877:
 #0: ffff888000aca428 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888119e3ce30 (&inode->i_sb->s_type->i_mutex_dir_key#2){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888000aca618 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x980
1 lock held by syz.4.1419/13907:
 #0: ffff888119e3ce30 (&inode->i_sb->s_type->i_mutex_dir_key#2){++++}-{4:4}, at: lookup_slow+0x46/0x70
1 lock held by syz.4.1419/13908:
 #0: ffff888119e3ce30 (&inode->i_sb->s_type->i_mutex_dir_key#2){++++}-{4:4}, at: lookup_slow+0x46/0x70
1 lock held by syz.4.1419/13909:
 #0: ffff888119e3ce30 (&inode->i_sb->s_type->i_mutex_dir_key#2){++++}-{4:4}, at: lookup_slow+0x46/0x70
2 locks held by syz.4.1419/13912:
 #0: ffff888000aca428 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888119e3ce30 (&inode->i_sb->s_type->i_mutex_dir_key/1){+.+.}-{4:4}, at: do_unlinkat+0x1c7/0x560
2 locks held by kworker/u8:0/14192:
 #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

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

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+0xf60/0xfa0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 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: 5866 Comm: kworker/u8:2 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
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__lock_acquire+0x2df/0xd20
Code: f3 27 24 11 31 f6 85 d2 40 0f 95 c6 31 d2 83 bf d4 0a 00 00 00 0f 95 c2 c1 e2 0d c1 e6 0e 09 d6 8b 54 24 1c c1 e2 0f 0f b7 d2 <09> f2 41 83 e4 03 41 c1 e4 10 41 09 d4 8b 54 24 0c 83 e2 01 c1 e2
RSP: 0018:ffffc9000451f8d0 EFLAGS: 00000046
RAX: 000000000000000a RBX: ffffffff8e33cda0 RCX: 0000000000000007
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888022050000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8b4c1ed2
R10: dffffc0000000000 R11: fffffbfff1f87d67 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000000000000 R15: ffff888022050af0
FS:  0000000000000000(0000) GS:ffff8880b83fa000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9c19f6aff0 CR3: 000000010d94a000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x120/0x360
 batadv_nc_worker+0xef/0x610
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 ret_from_fork_asm+0x1a/0x30
 </TASK>
