================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/1:10/6999 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff8880285018a8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff8880285018a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff8880285018a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_timer+0xd4/0x9f0 net/core/gen_estimator.c:83 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] tcf_skbedit_init+0xaf4/0xff0 net/sched/act_skbedit.c:264 tcf_action_init_1+0x460/0x6d0 net/sched/act_api.c:1431 tcf_action_init+0x2cf/0xab0 net/sched/act_api.c:1506 tcf_action_add net/sched/act_api.c:2100 [inline] tc_ctl_action+0x430/0xbd0 net/sched/act_api.c:2157 rtnetlink_rcv_msg+0x779/0xb70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82c/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmsg net/socket.c:2700 [inline] __do_sys_sendmsg net/socket.c:2705 [inline] __se_sys_sendmsg net/socket.c:2703 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2703 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 1168480 hardirqs last enabled at (1168480): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (1168480): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (1168479): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (1168479): [] _raw_spin_lock_irq+0x7d/0xf0 kernel/locking/spinlock.c:170 softirqs last enabled at (1167408): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (1167408): [] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] softirqs last enabled at (1167408): [] wg_packet_decrypt_worker+0xc6f/0xd10 drivers/net/wireguard/receive.c:499 softirqs last disabled at (1168477): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (1168477): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (1168477): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&p->tcfa_lock); lock(&p->tcfa_lock); *** DEADLOCK *** 3 locks held by kworker/1:10/6999: #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3211 [inline] #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3319 #1: ffffc9001b43fbc0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3212 [inline] #1: ffffc9001b43fbc0 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3319 #2: ffffc90000a08be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 1 UID: 0 PID: 6999 Comm: kworker/1:10 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: events nfc_urelease_event_work Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_usage_bug+0x297/0x2e0 kernel/locking/lockdep.c:4042 valid_state+0xc3/0xf0 kernel/locking/lockdep.c:4056 mark_lock_irq+0x36/0x390 kernel/locking/lockdep.c:4267 mark_lock+0x11b/0x190 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x680/0xd20 kernel/locking/lockdep.c:5191 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] est_fetch_counters net/core/gen_estimator.c:67 [inline] est_timer+0xd4/0x9f0 net/core/gen_estimator.c:83 call_timer_fn+0x17e/0x5f0 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403 handle_softirqs+0x283/0x870 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:find_stack lib/stackdepot.c:602 [inline] RIP: 0010:stack_depot_save_flags+0x1ab/0x860 lib/stackdepot.c:668 Code: 02 00 00 31 f6 4c 89 54 24 18 e8 a0 2b c9 ff 4c 8b 54 24 18 8b 74 24 04 85 db 75 5d 4d 8b 3f 4d 39 e7 74 52 41 39 6f 10 75 f2 <45> 39 57 14 75 ec 31 c0 49 8b 0c c6 49 3b 4c c7 20 75 df 48 ff c0 RSP: 0018:ffffc9001b43f668 EFLAGS: 00000246 RAX: ffff88823ae00000 RBX: 0000000000000000 RCX: 0000000000bfc330 RDX: 0000000091efb438 RSI: 0000000000000001 RDI: 00000000b11d00b6 RBP: 00000000223bfc33 R08: 000000003cb8e439 R09: 0000000023316ccd R10: 000000000000000a R11: ffffffff81ac3820 R12: ffff88823b9fc330 R13: 000000000000000a R14: ffffc9001b43f6d0 R15: ffff8880338fbdd0 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x4f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x18e/0x440 mm/slub.c:4879 nfc_urelease_event_work+0x245/0x300 net/nfc/netlink.c:1864 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 00 31 add %dh,(%rcx) 4: f6 4c 89 54 24 testb $0x24,0x54(%rcx,%rcx,4) 9: 18 e8 sbb %ch,%al b: a0 2b c9 ff 4c 8b 54 movabs 0x1824548b4cffc92b,%al 12: 24 18 14: 8b 74 24 04 mov 0x4(%rsp),%esi 18: 85 db test %ebx,%ebx 1a: 75 5d jne 0x79 1c: 4d 8b 3f mov (%r15),%r15 1f: 4d 39 e7 cmp %r12,%r15 22: 74 52 je 0x76 24: 41 39 6f 10 cmp %ebp,0x10(%r15) 28: 75 f2 jne 0x1c * 2a: 45 39 57 14 cmp %r10d,0x14(%r15) <-- trapping instruction 2e: 75 ec jne 0x1c 30: 31 c0 xor %eax,%eax 32: 49 8b 0c c6 mov (%r14,%rax,8),%rcx 36: 49 3b 4c c7 20 cmp 0x20(%r15,%rax,8),%rcx 3b: 75 df jne 0x1c 3d: 48 ff c0 inc %rax