INFO: task syz-executor:5856 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:18024 pid:5856  tgid:5856  ppid:1      task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_timeout+0x12b/0x270
 __closure_sync_timeout+0x282/0x3a0
 __bch2_wait_on_allocator+0x112/0x240
 bch2_btree_update_start+0x18dc/0x1de0
 bch2_btree_split_leaf+0x14b/0x8e0
 bch2_trans_commit_error+0x1b7/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_write_buffer_flush_locked+0x451f/0x4dd0
 btree_write_buffer_flush_seq+0x18c7/0x1a40
 bch2_btree_write_buffer_journal_flush+0x69/0xb0
 journal_flush_pins+0x8e3/0xe90
 journal_flush_done+0x112/0x810
 bch2_journal_flush_pins+0x1b5/0x250
 __bch2_fs_read_only+0x144/0x5b0
 bch2_fs_read_only+0x42a/0xb00
 __bch2_fs_stop+0x100/0x900
 generic_shutdown_super+0x135/0x2c0
 bch2_kill_sb+0x41/0x50
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x425/0x4c0
 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:0x7f82b3d8ff57
RSP: 002b:00007ffc2b195b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f82b3e11c2d RCX: 00007f82b3d8ff57
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc2b195c40
RBP: 00007ffc2b195c40 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc2b196cd0
R13: 00007f82b3e11c2d R14: 0000000000013086 R15: 00007ffc2b196d10
 </TASK>
INFO: task bch-reclaim/loo:6147 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:22696 pid:6147  tgid:6147  ppid:2      task_flags:0x200040 flags:0x00004000
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1350
 bch2_journal_reclaim_thread+0x16b/0x4f0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.2.40:6238 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.40        state:D stack:23576 pid:6238  tgid:6237  ppid:5858   task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 super_lock+0x2a9/0x3b0
 __iterate_supers+0x126/0x290
 __se_sys_quotactl+0x353/0x950
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e8478ec29
RSP: 002b:00007f1e8557e038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f1e849d5fa0 RCX: 00007f1e8478ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff80000102
RBP: 00007f1e84811e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1e849d6038 R14: 00007f1e849d5fa0 R15: 00007ffc5df088d8
 </TASK>
INFO: task syz.0.63:6467 blocked for more than 144 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.63        state:D stack:24648 pid:6467  tgid:6466  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
 super_lock+0x2a9/0x3b0
 __iterate_supers+0x126/0x290
 __se_sys_quotactl+0x353/0x950
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1b5838ec29
RSP: 002b:00007f1b59261038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f1b585d5fa0 RCX: 00007f1b5838ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff80000102
RBP: 00007f1b58411e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1b585d6038 R14: 00007f1b585d5fa0 R15: 00007fff82a08e78
 </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/5678:
 #0: ffff88810d6f60a0 (&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
6 locks held by syz-executor/5856:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888036300278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff88803634af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff888036304398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff888036304740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40
 #5: ffff888036326710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by bch-reclaim/loo/6147:
 #0: ffff88803634af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
1 lock held by syz.2.40/6238:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.0.63/6467:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
5 locks held by kworker/1:5/6528:
1 lock held by syz.6.178/7622:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.2.237/7967:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.1.252/8019:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.1.252/8020:
 #0: ffff88802926a0e0 (&type->s_umount_key#65){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz-executor/8023:
1 lock held by udevd/8025:

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

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+0x439/0x7d0
 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: 27 Comm: kworker/u10:0 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: events_unbound toggle_allocation_gate
RIP: 0010:use_temporary_mm+0x143/0x220
Code: 35 92 bc 2d 11 65 48 8b 14 25 08 d0 a0 92 48 89 de e8 41 ef ff ff 48 c7 c7 e0 78 88 8b e8 35 d1 05 0a 65 48 8b 05 cd 5d 2c 11 <a8> aa 74 16 b8 00 04 00 00 0f 23 f8 31 c0 0f 23 c0 0f 23 c8 0f 23
RSP: 0018:ffffc9000060f600 EFLAGS: 00000086
RAX: 0000000000000000 RBX: ffff88801a478000 RCX: 82fe6f5b1be9e400
RDX: 0000000000000000 RSI: ffffffff8b8878e0 RDI: ffffffff8be33f80
RBP: ffffc9000060f6b0 R08: ffff88801a4788b3 R09: 1ffff1100348f116
R10: dffffc0000000000 R11: ffffed100348f117 R12: 1ffff920000c1ec0
R13: 0000000000000002 R14: ffffffff8e2421c0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881a3c13000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555804c5608 CR3: 000000001a472000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __text_poke+0x60f/0xa10
 smp_text_poke_batch_finish+0x90a/0x1130
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_disable_cpuslocked+0xc5/0x1b0
 static_key_disable+0x1a/0x20
 toggle_allocation_gate+0x1a1/0x240
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
