I/O error, dev loop3, sector 12252 op 0x0:(READ) flags 0x880700 phys_seg 1 prio class 2 ================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u8:10/4247 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff8880550e3700 (&sb->s_type->i_lock_key#39){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:341 [inline] ffff8880550e3700 (&sb->s_type->i_lock_key#39){+.?.}-{3:3}, at: igrab+0x2a/0x230 fs/inode.c:1583 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:341 [inline] unlock_new_inode+0x7a/0x330 fs/inode.c:1222 xfs_finish_inode_setup fs/xfs/xfs_inode.h:630 [inline] xfs_setup_existing_inode fs/xfs/xfs_inode.h:637 [inline] xfs_iget+0x11d5/0x32c0 fs/xfs/xfs_icache.c:823 xfs_mountfs+0x108c/0x20b0 fs/xfs/xfs_mount.c:1072 xfs_fs_fill_super+0x1541/0x1f80 fs/xfs/xfs_super.c:1938 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1694 vfs_get_tree+0x92/0x320 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3763 [inline] do_new_mount fs/namespace.c:3839 [inline] path_mount+0x7d0/0x23d0 fs/namespace.c:4159 do_mount fs/namespace.c:4172 [inline] __do_sys_mount fs/namespace.c:4361 [inline] __se_sys_mount fs/namespace.c:4338 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4338 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 109758 hardirqs last enabled at (109758): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (109758): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:194 hardirqs last disabled at (109757): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (109757): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (109726): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (109726): [] __alloc_skb+0x5b7/0x710 net/core/skbuff.c:695 softirqs last disabled at (109727): [] do_softirq kernel/softirq.c:523 [inline] softirqs last disabled at (109727): [] do_softirq+0xac/0xe0 kernel/softirq.c:510 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sb->s_type->i_lock_key#39); lock(&sb->s_type->i_lock_key#39); *** DEADLOCK *** 4 locks held by kworker/u8:10/4247: #0: ffff88813fe9c148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x1310/0x19a0 kernel/workqueue.c:3251 #1: ffffc9001023fd08 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x988/0x19a0 kernel/workqueue.c:3252 #2: ffff8880565a2250 (&devlink->lock_key#5){+.+.}-{4:4}, at: nsim_dev_trap_report_work+0x56/0xd10 drivers/net/netdevsim/dev.c:909 #3: ffff8880565944e0 (&nsim_trap_data->trap_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:341 [inline] #3: ffff8880565944e0 (&nsim_trap_data->trap_lock){+.+.}-{3:3}, at: nsim_dev_trap_report drivers/net/netdevsim/dev.c:862 [inline] #3: ffff8880565944e0 (&nsim_trap_data->trap_lock){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x1c7/0xd10 drivers/net/netdevsim/dev.c:922 stack backtrace: CPU: 0 UID: 0 PID: 4247 Comm: kworker/u8:10 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: events_unbound nsim_dev_trap_report_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_usage_bug.part.0+0x257/0x340 kernel/locking/lockdep.c:4042 print_usage_bug kernel/locking/lockdep.c:4010 [inline] valid_state kernel/locking/lockdep.c:4056 [inline] mark_lock_irq kernel/locking/lockdep.c:4267 [inline] mark_lock+0x74a/0xa20 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:4642 [inline] __lock_acquire+0x103a/0x2630 kernel/locking/lockdep.c:5191 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:341 [inline] igrab+0x2a/0x230 fs/inode.c:1583 fserror_report+0x3fd/0x750 fs/fserror.c:159 fserror_report_io include/linux/fserror.h:48 [inline] iomap_finish_folio_read+0x168/0x2c0 fs/iomap/buffered-io.c:415 iomap_read_end_io+0x11a/0x430 fs/iomap/bio.c:17 bio_endio+0x7a3/0x910 block/bio.c:1792 blk_update_request+0x741/0x13a0 block/blk-mq.c:1016 blk_mq_end_request+0x5b/0x420 block/blk-mq.c:1178 lo_complete_rq+0x1d4/0x2a0 drivers/block/loop.c:314 blk_complete_reqs+0xb1/0xf0 block/blk-mq.c:1253 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 do_softirq kernel/softirq.c:523 [inline] do_softirq+0xac/0xe0 kernel/softirq.c:510 __local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x5db/0x710 net/core/skbuff.c:697 alloc_skb include/linux/skbuff.h:1383 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:819 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:876 [inline] nsim_dev_trap_report_work+0x2af/0xd10 drivers/net/netdevsim/dev.c:922 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245