F2FS-fs (loop7): 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.
kworker/u9:0/26 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffff88812016ec98 (&sb->s_type->i_lock_key#41){+.?.}-{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: 1112766
hardirqs last  enabled at (1112766): [<ffffffff8bb1f830>] _raw_spin_unlock_irqrestore+0x30/0x80
hardirqs last disabled at (1112765): [<ffffffff8bb1f68a>] _raw_spin_lock_irqsave+0x1a/0x60
softirqs last  enabled at (1112746): [<ffffffff8974c876>] __alloc_skb+0x186/0x7d0
softirqs last disabled at (1112747): [<ffffffff818872b6>] do_softirq+0x76/0xd0

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

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

 *** DEADLOCK ***

4 locks held by kworker/u9:0/26:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860
 #1: ffffc90000a17c40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860
 #2: ffff888176503258 (&devlink->lock_key#12){+.+.}-{4:4}, at: nsim_dev_trap_report_work+0x57/0xb80
 #3: ffff8880126908e0 (&nsim_trap_data->trap_lock){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x1a9/0xb80

stack backtrace:
CPU: 0 UID: 0 PID: 26 Comm: kworker/u9: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 nsim_dev_trap_report_work
Call Trace:
 <IRQ>
 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
 do_softirq+0x76/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0xf8/0x130
 __alloc_skb+0x1aa/0x7d0
 nsim_dev_trap_report_work+0x29a/0xb80
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
CPU: 0 UID: 0 PID: 26 Comm: kworker/u9: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 nsim_dev_trap_report_work
Call Trace:
 <IRQ>
 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
 do_softirq+0x76/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0xf8/0x130
 __alloc_skb+0x1aa/0x7d0
 nsim_dev_trap_report_work+0x29a/0xb80
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop7): Stopped filesystem due to reason: 3
CPU: 0 UID: 0 PID: 26 Comm: kworker/u9: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 nsim_dev_trap_report_work
Call Trace:
 <IRQ>
 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
 do_softirq+0x76/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0xf8/0x130
 __alloc_skb+0x1aa/0x7d0
 nsim_dev_trap_report_work+0x29a/0xb80
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
F2FS-fs (loop7): Stopped filesystem due to reason: 3
