F2FS-fs (loop9): inject inconsistent footer in f2fs_sanity_check_node_footer of f2fs_write_end_io+0x95c/0x17a0 fs/f2fs/data.c:396 F2FS-fs (loop9): inconsistent node block, node_type:0, nid:3, node_footer[nid:3,ino:3,ofs:0,cpver:10241045589465957861,blkaddr:4102] ================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u8:7/1025 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88805afee290 (&sb->s_type->i_lock_key#37){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff88805afee290 (&sb->s_type->i_lock_key#37){+.?.}-{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: 4633760 hardirqs last enabled at (4633760): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (4633760): [] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:198 hardirqs last disabled at (4633759): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (4633759): [] _raw_spin_lock_irqsave+0x1a/0x60 kernel/locking/spinlock.c:166 softirqs last enabled at (4633694): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (4633694): [] batadv_tt_roam_purge net/batman-adv/translation-table.c:3395 [inline] softirqs last enabled at (4633694): [] batadv_tt_purge+0x97a/0x9e0 net/batman-adv/translation-table.c:3512 softirqs last disabled at (4633723): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (4633723): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (4633723): [] __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#37); lock(&sb->s_type->i_lock_key#37); *** DEADLOCK *** 3 locks held by kworker/u8:7/1025: #0: ffff88801ae8c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3277 [inline] #0: ffff88801ae8c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa35/0x1860 kernel/workqueue.c:3385 #1: ffffc9000508fc40 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3278 [inline] #1: ffffc9000508fc40 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa70/0x1860 kernel/workqueue.c:3385 #2: ffff888096f30780 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: class_wiphy_constructor include/net/cfg80211.h:6645 [inline] #2: ffff888096f30780 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xb4/0x460 net/wireless/core.c:499 stack backtrace: CPU: 1 UID: 0 PID: 1025 Comm: kworker/u8:7 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: events_unbound cfg80211_wiphy_work 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_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:98 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:115 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:140 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:172 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:191 [inline] RIP: 0010:kasan_check_range+0x97/0x2c0 mm/kasan/generic.c:200 Code: 00 fc ff df 4d 8d 34 19 4d 89 f4 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 3d 01 00 00 4c 89 cb 48 f7 d3 4c 01 fb 41 80 3b 00 <0f> 85 9e 01 00 00 49 ff c3 48 ff c3 75 ee e9 1d 01 00 00 44 89 dd RSP: 0018:ffffc9000508f9d8 EFLAGS: 00000246 RAX: ffffffff8b1fac01 RBX: ffffffffffffffff RCX: ffffffff8b1facd1 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888096f32a48 RBP: dffffc0000000000 R08: ffff888096f32a4f R09: 1ffff11012de6549 R10: dffffc0000000000 R11: ffffed1012de6549 R12: 0000000000000001 R13: ffff888096f306c0 R14: ffffed1012de654a R15: 1ffff11012de6549 instrument_atomic_read include/linux/instrumented.h:82 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] ieee80211_iface_work+0xa1/0x1380 net/mac80211/iface.c:1798 cfg80211_wiphy_work+0x2cf/0x460 net/wireless/core.c:513 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 ---------------- Code disassembly (best guess): 0: 00 fc add %bh,%ah 2: ff lcall (bad) 3: df 4d 8d fisttps -0x73(%rbp) 6: 34 19 xor $0x19,%al 8: 4d 89 f4 mov %r14,%r12 b: 4d 29 dc sub %r11,%r12 e: 49 83 fc 10 cmp $0x10,%r12 12: 7f 29 jg 0x3d 14: 4d 85 e4 test %r12,%r12 17: 0f 84 3d 01 00 00 je 0x15a 1d: 4c 89 cb mov %r9,%rbx 20: 48 f7 d3 not %rbx 23: 4c 01 fb add %r15,%rbx 26: 41 80 3b 00 cmpb $0x0,(%r11) * 2a: 0f 85 9e 01 00 00 jne 0x1ce <-- trapping instruction 30: 49 ff c3 inc %r11 33: 48 ff c3 inc %rbx 36: 75 ee jne 0x26 38: e9 1d 01 00 00 jmp 0x15a 3d: 44 89 dd mov %r11d,%ebp