INFO: task syz.5.424:9052 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.424       state:D stack:20328 pid:9052  tgid:9011  ppid:7796   task_flags:0x440140 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_write+0x31ef/0x3900
 bch2_writepages+0x1658/0x2a10
 do_writepages+0x32e/0x550
 file_write_and_wait_range+0x23e/0x340
 bch2_fsync+0x127/0x330
 bch2_write_iter+0x2822/0x2b90
 vfs_write+0x5c9/0xb30
 __x64_sys_pwrite64+0x193/0x220
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd291d8ebe9
RSP: 002b:00007fd292cb3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007fd291fc6090 RCX: 00007fd291d8ebe9
RDX: 00000000200000c1 RSI: 00002000000000c0 RDI: 0000000000000009
RBP: 00007fd291e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000009000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd291fc6128 R14: 00007fd291fc6090 R15: 00007ffe6055fab8
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:0/9:
1 lock held by khungtaskd/34:
 #0: ffffffff8e33c560 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u9:8/1098:
 #0: ffff88801b7ac148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900072f7ba0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8880202d60e0 (&type->s_umount_key#59){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
6 locks held by kworker/1:2/1271:
 #0: ffff88801bbdf948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007bc7ba0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88810a559198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff88810a55c518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_event+0x21b8/0x4a20
 #4: ffff8881072e2568 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_event+0x21e5/0x4a20
 #5: ffffffff8efe4110 (ehci_cf_port_reset_rwsem){.+.+}-{4:4}, at: hub_port_reset+0x163/0x1750
2 locks held by getty/5669:
 #0: ffff8880227b60a0 (&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
4 locks held by kworker/u8:4/5902:
 #0: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff888136624008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #3: ffffffff99ed3778 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0xbb/0x420
1 lock held by syz.5.424/9052:
 #0: ffff8880202d6420 (sb_writers#14){.+.+}-{0:0}, at: vfs_write+0x211/0xb30

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

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+0xf60/0xfa0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 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: 1271 Comm: kworker/1: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: usb_hub_wq hub_event
RIP: 0010:io_serial_out+0x7c/0xc0
Code: 1a 6d fc 44 89 f9 d3 e5 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 4c 1c d1 fc 41 03 2e 89 d8 89 ea ee <5b> 41 5c 41 5e 41 5f 5d c3 cc cc cc cc cc 44 89 f9 80 e1 07 38 c1
RSP: 0018:ffffc90007bc6e30 EFLAGS: 00000002
RAX: 0000000000000035 RBX: 0000000000000035 RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 000000000000b4b0 RDI: 000000000000b4b1
RBP: 00000000000003f8 R08: ffff8880207a0237 R09: 1ffff110040f4046
R10: dffffc0000000000 R11: ffffffff85529130 R12: dffffc0000000000
R13: ffffffff99d248e5 R14: ffffffff9a037040 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881a39f1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555773d5c8 CR3: 0000000027c18000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 serial8250_console_write+0x1410/0x1ba0
 console_flush_all+0x6f3/0xb10
 console_unlock+0xbb/0x190
 vprintk_emit+0x4c5/0x590
 dev_vprintk_emit+0x337/0x3f0
 dev_printk_emit+0xe0/0x130
 _dev_warn+0x10a/0x160
 hub_port_init+0x1e9e/0x2800
 hub_event+0x2532/0x4a20
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x47f/0x820
 ret_from_fork_asm+0x1a/0x30
 </TASK>
