INFO: task syz.6.1504:15073 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.1504      state:D stack:24408 pid:15073 tgid:15072 ppid:13727  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
 super_lock+0x25c/0x3b0
 user_get_super+0xc8/0x120
 __se_sys_quotactl+0x4da/0x950
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8c3ad8ebe9
RSP: 002b:00007f8c3bc16038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f8c3afc5fa0 RCX: 00007f8c3ad8ebe9
RDX: 0000000000000000 RSI: 0000200000000200 RDI: ffffffff80000202
RBP: 00007f8c3ae11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8c3afc6038 R14: 00007f8c3afc5fa0 R15: 00007ffe1463f138
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/0:2/793:
 #0: ffff88803d39e948 ((wq_completion)bcachefs_write_ref#4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90004f97bc0 ((work_completion)(&ca->discard_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88803eae41b0 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x1030/0x2310
 #3: ffff888041604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
2 locks held by kworker/u9:5/3561:
 #0: ffff8881000e3148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900229efbc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u9:7/3642:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90022bafbc0 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by getty/5678:
 #0: ffff888028d510a0 (&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
2 locks held by kworker/u8:3/5879:
2 locks held by syz-executor/5990:
3 locks held by syz-executor/9765:
4 locks held by kworker/0:4H/11454:
 #0: ffff888117640148 ((wq_completion)bcachefs_btree_write_complete#4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000295fbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888133c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #3: ffff8880330cc1b0 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
1 lock held by syz-executor/13006:
 #0: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
3 locks held by kworker/0:9/13186:
1 lock held by syz.6.1504/15073:
 #0: ffff88801ea100e0 (&type->s_umount_key#61){++++}-{4:4}, at: super_lock+0x25c/0x3b0
1 lock held by syz.9.1588/15578:
 #0: ffff88801ea100e0 (&type->s_umount_key#61){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.3.1608/15702:
 #0: ffff88801ea100e0 (&type->s_umount_key#61){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz-executor/15916:
 #0: ffff88811979e0e0 (&type->s_umount_key#68){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
4 locks held by kworker/u9:2/16795:
4 locks held by syz.0.1785/17133:
 #0: ffff888133c4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #1: ffff888133c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #2: ffff88803f17c1b0 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #3: ffff888133c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x105/0xd30
5 locks held by syz.4.1788/17155:
1 lock held by bch-reclaim/loo/17163:
 #0: ffff888133c4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0

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

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: 5879 Comm: kworker/u8:3 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:mark_lock+0xa0/0x190
Code: c7 c7 b2 78 ba 8d 48 c7 c6 aa c7 a9 8d e8 78 bc e5 ff 90 0f 0b 90 90 90 31 c9 4c 89 fe 4c 89 f7 b8 01 00 00 00 85 69 60 74 10 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 d1 7d df 09 cc 49 89 fe 49 89 f7
RSP: 0018:ffffc900036df808 EFLAGS: 00000006
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffffffff934f4e48
RDX: 0000000000000008 RSI: ffff888023afa800 RDI: ffff888023af9cc0
RBP: 0000000000000100 R08: 0000000000000000 R09: ffffffff8b4816d7
R10: dffffc0000000000 R11: fffffbfff1f47407 R12: 00000000ffffff05
R13: 0000000000000003 R14: ffff888023afa800 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881a3c15000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557ce175c8 CR3: 0000000105f42000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __lock_acquire+0x6a8/0xd20
 lock_acquire+0x120/0x360
 _raw_spin_lock_bh+0x36/0x50
 batadv_nc_purge_paths+0xe7/0x3b0
 batadv_nc_worker+0x369/0x610
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
