F2FS-fs (loop0): inject write IO error in f2fs_write_end_io of blk_update_request+0x57e/0xe60
================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
ksoftirqd/0/15 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff8881106fad98 (&sb->s_type->i_lock_key#38){+.?.}-{3:3}, at: igrab+0x2d/0x1e0
{SOFTIRQ-ON-W} state was registered at:
  lock_acquire+0x106/0x350
  _raw_spin_lock+0x2e/0x40
  iget_locked+0x397/0x6a0
  f2fs_iget+0x56/0x5f30
  f2fs_fill_super+0x4419/0x78f0
  get_tree_bdev_flags+0x431/0x4f0
  vfs_get_tree+0x92/0x2a0
  do_new_mount+0x341/0xd30
  __se_sys_mount+0x31d/0x420
  do_syscall_64+0x15f/0xf80
  entry_SYSCALL_64_after_hwframe+0x77/0x7f
irq event stamp: 3983546
hardirqs last  enabled at (3983546): [<ffffffff8bb1f830>] _raw_spin_unlock_irqrestore+0x30/0x80
hardirqs last disabled at (3983545): [<ffffffff8bb1f68a>] _raw_spin_lock_irqsave+0x1a/0x60
softirqs last  enabled at (3983524): [<ffffffff81889e86>] run_ksoftirqd+0x36/0x60
softirqs last disabled at (3983529): [<ffffffff81889e86>] run_ksoftirqd+0x36/0x60

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&sb->s_type->i_lock_key#38);
  <Interrupt>
    lock(&sb->s_type->i_lock_key#38);

 *** DEADLOCK ***

no locks held by ksoftirqd/0/15.

stack backtrace:
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_usage_bug+0x28b/0x2e0
 mark_lock_irq+0x410/0x420
 mark_lock+0x115/0x190
 __lock_acquire+0x689/0x2cf0
 lock_acquire+0x106/0x350
 _raw_spin_lock+0x2e/0x40
 igrab+0x2d/0x1e0
 fserror_report+0x3c5/0x740
 f2fs_write_end_io+0x12c1/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 f2fs_stop_checkpoint+0x3c7/0x590
 f2fs_write_end_io+0x12e5/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop0): Stopped filesystem due to reason: 3
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 f2fs_stop_checkpoint+0x3c7/0x590
 f2fs_write_end_io+0x12e5/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop0): Stopped filesystem due to reason: 3
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 f2fs_stop_checkpoint+0x3c7/0x590
 f2fs_write_end_io+0x12e5/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop0): Stopped filesystem due to reason: 3
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 f2fs_stop_checkpoint+0x3c7/0x590
 f2fs_write_end_io+0x12e5/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop0): Stopped filesystem due to reason: 3
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/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
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 f2fs_stop_checkpoint+0x3c7/0x590
 f2fs_write_end_io+0x12e5/0x17a0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x22a/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x541/0xa50
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop0): Stopped filesystem due to reason: 3
