F2FS-fs (loop7): inject write IO error in f2fs_write_end_io of blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 ================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u8:0/12 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807f256290 (&sb->s_type->i_lock_key#45){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff88807f256290 (&sb->s_type->i_lock_key#45){+.?.}-{3:3}, at: igrab+0x2d/0x1e0 fs/inode.c:1577 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:158 spin_lock include/linux/spinlock.h:342 [inline] iget_locked+0x397/0x6a0 fs/inode.c:1483 f2fs_iget+0x56/0x5f30 fs/f2fs/inode.c:577 f2fs_fill_super+0x4419/0x78f0 fs/f2fs/super.c:5118 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4399 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4376 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 2501524 hardirqs last enabled at (2501524): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (2501524): [] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:198 hardirqs last disabled at (2501523): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (2501523): [] _raw_spin_lock_irqsave+0x1a/0x60 kernel/locking/spinlock.c:166 softirqs last enabled at (2501508): [] local_bh_enable include/linux/bottom_half.h:33 [inline] softirqs last enabled at (2501508): [] fpregs_unlock arch/x86/include/asm/fpu/api.h:77 [inline] softirqs last enabled at (2501508): [] kernel_fpu_end+0x62/0x80 arch/x86/kernel/fpu/core.c:506 softirqs last disabled at (2501509): [] do_softirq+0x76/0xd0 kernel/softirq.c:523 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sb->s_type->i_lock_key#45); lock(&sb->s_type->i_lock_key#45); *** DEADLOCK *** 4 locks held by kworker/u8:0/12: #0: ffff888053b09140 ((wq_completion)wg-kex-wg0#7){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3277 [inline] #0: ffff888053b09140 ((wq_completion)wg-kex-wg0#7){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860 kernel/workqueue.c:3385 #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3278 [inline] #1: ffffc90000117c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860 kernel/workqueue.c:3385 #2: ffff888033a9d380 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x12f/0x830 drivers/net/wireguard/noise.c:529 #3: ffff888056400d18 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x140/0x830 drivers/net/wireguard/noise.c:530 stack backtrace: CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28b/0x2e0 kernel/locking/lockdep.c:4042 valid_state kernel/locking/lockdep.c:4056 [inline] mark_lock_irq+0x410/0x420 kernel/locking/lockdep.c:-1 mark_lock+0x115/0x190 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x689/0x2cf0 kernel/locking/lockdep.c:5191 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:158 spin_lock include/linux/spinlock.h:342 [inline] igrab+0x2d/0x1e0 fs/inode.c:1577 fserror_report+0x3c5/0x740 fs/fserror.c:159 fserror_report_io include/linux/fserror.h:48 [inline] f2fs_write_end_io+0x12c1/0x17a0 fs/f2fs/data.c:386 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 f2fs_handle_critical_error fs/f2fs/super.c:4719 [inline] f2fs_stop_checkpoint+0x3c7/0x590 fs/f2fs/super.c:4748 f2fs_write_end_io+0x12e5/0x17a0 fs/f2fs/data.c:390 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 F2FS-fs (loop7): Stopped filesystem due to reason: 3 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 f2fs_handle_critical_error fs/f2fs/super.c:4719 [inline] f2fs_stop_checkpoint+0x3c7/0x590 fs/f2fs/super.c:4748 f2fs_write_end_io+0x12e5/0x17a0 fs/f2fs/data.c:390 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 F2FS-fs (loop7): Stopped filesystem due to reason: 3 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 f2fs_handle_critical_error fs/f2fs/super.c:4719 [inline] f2fs_stop_checkpoint+0x3c7/0x590 fs/f2fs/super.c:4748 f2fs_write_end_io+0x12e5/0x17a0 fs/f2fs/data.c:390 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 F2FS-fs (loop7): Stopped filesystem due to reason: 3 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 f2fs_handle_critical_error fs/f2fs/super.c:4719 [inline] f2fs_stop_checkpoint+0x3c7/0x590 fs/f2fs/super.c:4748 f2fs_write_end_io+0x12e5/0x17a0 fs/f2fs/data.c:390 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 F2FS-fs (loop7): Stopped filesystem due to reason: 3 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 f2fs_handle_critical_error fs/f2fs/super.c:4719 [inline] f2fs_stop_checkpoint+0x3c7/0x590 fs/f2fs/super.c:4748 f2fs_write_end_io+0x12e5/0x17a0 fs/f2fs/data.c:390 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 blk_complete_reqs block/blk-mq.c:1253 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1258 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 blake2s_compress+0xf9/0x1eb0 lib/crypto/x86/blake2s.h:42 blake2s_final+0x116/0x270 lib/crypto/blake2s.c:142 mix_hash drivers/net/wireguard/noise.c:439 [inline] handshake_init+0x182/0x1f0 drivers/net/wireguard/noise.c:460 wg_noise_handshake_create_initiation+0x1cc/0x830 drivers/net/wireguard/noise.c:537 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline] wg_packet_handshake_send_worker+0x18d/0x350 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 F2FS-fs (loop7): Stopped filesystem due to reason: 3