F2FS-fs (loop2): inject inconsistent footer in f2fs_sanity_check_node_footer of f2fs_write_end_io+0x95c/0x17a0 fs/f2fs/data.c:396 F2FS-fs (loop2): inconsistent node block, node_type:0, nid:12, node_footer[nid:12,ino:3,ofs:5099,cpver:10241045589465957861,blkaddr:4101] ================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/6117 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888055e6d0c0 (&sb->s_type->i_lock_key#50){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff888055e6d0c0 (&sb->s_type->i_lock_key#50){+.?.}-{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: 523544 hardirqs last enabled at (523544): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (523544): [] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:198 hardirqs last disabled at (523543): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (523543): [] _raw_spin_lock_irqsave+0x1a/0x60 kernel/locking/spinlock.c:166 softirqs last enabled at (523494): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (523494): [] __alloc_skb+0x186/0x7d0 net/core/skbuff.c:695 softirqs last disabled at (523505): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (523505): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (523505): [] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sb->s_type->i_lock_key#50); lock(&sb->s_type->i_lock_key#50); *** DEADLOCK *** no locks held by udevd/6117. stack backtrace: CPU: 1 UID: 0 PID: 6117 Comm: udevd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 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_file_metadata include/linux/fserror.h:61 [inline] f2fs_sanity_check_node_footer+0x637/0x960 fs/f2fs/node.c:1562 f2fs_write_end_io+0x95c/0x17a0 fs/f2fs/data.c:396 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 kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline] sysvec_irq_work+0xa3/0xc0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:733 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:37 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:139 [inline] RIP: 0010:wrmsrq arch/x86/include/asm/msr.h:199 [inline] RIP: 0010:native_apic_msr_write+0x39/0x50 arch/x86/include/asm/apic.h:208 Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 e9 c0 9f 3c 0a cc 89 f6 31 d2 e9 76 39 77 03 66 0f 1f 44 00 RSP: 0018:ffffc9000530f288 EFLAGS: 00000246 RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f RBP: ffffc9000530f360 R08: ffffc9000530f2e7 R09: 1ffff92000a61e5c R10: dffffc0000000000 R11: fffff52000a61e5d R12: ffffffff8ea9f001 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880b8731f30 __apic_send_IPI_self arch/x86/include/asm/apic.h:455 [inline] arch_irq_work_raise+0x6d/0x80 arch/x86/kernel/irq_work.c:31 irq_work_raise kernel/irq_work.c:84 [inline] __irq_work_queue_local+0x1eb/0x4c0 kernel/irq_work.c:112 irq_work_queue+0x99/0x140 kernel/irq_work.c:124 __kfence_alloc+0x2b6/0x3e0 mm/kfence/core.c:1192 kfence_alloc include/linux/kfence.h:129 [inline] slab_alloc_node mm/slub.c:4879 [inline] __do_kmalloc_node mm/slub.c:5291 [inline] __kmalloc_node_track_caller_noprof+0x205/0x7b0 mm/slub.c:5400 kmalloc_reserve net/core/skbuff.c:635 [inline] __alloc_skb+0x2c1/0x7d0 net/core/skbuff.c:713 alloc_skb include/linux/skbuff.h:1383 [inline] alloc_skb_with_frags+0xc8/0x760 net/core/skbuff.c:6752 sock_alloc_send_pskb+0x878/0x990 net/core/sock.c:2995 unix_dgram_sendmsg+0x460/0x18e0 net/unix/af_unix.c:2131 sock_sendmsg_nosec net/socket.c:786 [inline] __sock_sendmsg net/socket.c:801 [inline] sock_write_iter+0x49b/0x4f0 net/socket.c:1253 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 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 RIP: 0033:0x7f73d60a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe56497570 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f73d6806880 RCX: 00007f73d60a7407 RDX: 0000000000000000 RSI: 00007ffe56497617 RDI: 000000000000000a RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007f73d68066e8 R13: 0000000000000000 R14: 0000000000000000 R15: 0000564effcb5100 ---------------- Code disassembly (best guess): 0: 74 2a je 0x2c 2: 83 ff 30 cmp $0x30,%edi 5: 74 25 je 0x2c 7: eb 10 jmp 0x19 9: 81 ff d0 00 00 00 cmp $0xd0,%edi f: 74 1b je 0x2c 11: 81 ff e0 00 00 00 cmp $0xe0,%edi 17: 74 13 je 0x2c 19: c1 ef 04 shr $0x4,%edi 1c: 81 c7 00 08 00 00 add $0x800,%edi 22: 89 f9 mov %edi,%ecx 24: 89 f0 mov %esi,%eax 26: 31 d2 xor %edx,%edx 28: 0f 30 wrmsr * 2a: 66 90 xchg %ax,%ax <-- trapping instruction 2c: e9 c0 9f 3c 0a jmp 0xa3c9ff1 31: cc int3 32: 89 f6 mov %esi,%esi 34: 31 d2 xor %edx,%edx 36: e9 76 39 77 03 jmp 0x37739b1 3b: 66 data16 3c: 0f .byte 0xf 3d: 1f (bad) 3e: 44 rex.R