================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.83/6241 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807a9a28a8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88807a9a28a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff88807a9a28a8 (&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_ct_init+0x7cc/0x1950 net/sched/act_ct.c:1413 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+0x77c/0xb70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x205/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: 1330 hardirqs last enabled at (1330): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (1330): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (1329): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (1329): [] _raw_spin_lock_irq+0x7d/0xf0 kernel/locking/spinlock.c:170 softirqs last enabled at (1286): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last enabled at (1286): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last enabled at (1286): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 softirqs last disabled at (1327): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (1327): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (1327): [] __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 *** 4 locks held by syz.3.83/6241: #0: ffff888032bf4d20 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock include/linux/mmap_lock.h:453 [inline] #0: ffff888032bf4d20 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x12e/0xb50 mm/mmap.c:1265 #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: ___pte_offset_map+0x29/0x250 mm/pgtable-generic.c:286 #2: ffff88805541b618 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88805541b618 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0x13e/0x210 mm/pgtable-generic.c:401 #3: ffffc90000007be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 0 UID: 0 PID: 6241 Comm: syz.3.83 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 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:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:216 Code: 8b 3d 64 79 fe 0b 48 89 de 5b e9 c3 9f 58 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 08 a0 a0 92 65 8b 15 88 f4 e0 10 81 e2 00 01 ff 00 RSP: 0018:ffffc9000b9d7348 EFLAGS: 00000246 RAX: ffffffff822e499f RBX: 1ffffd400008ced1 RCX: ffff888054fdda00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff822e636a R10: dffffc0000000000 R11: fffff9400008ced1 R12: ffffea0000467648 R13: ffffea0000467680 R14: 0000000000000001 R15: ffffea0000467688 arch_static_branch arch/x86/include/asm/jump_label.h:36 [inline] page_fixed_fake_head include/linux/page-flags.h:210 [inline] _compound_head include/linux/page-flags.h:288 [inline] PageSlab include/linux/page-flags.h:1061 [inline] page_table_check_clear+0xbf/0x700 mm/page_table_check.c:74 ptep_get_and_clear_full arch/x86/include/asm/jump_label.h:-1 [inline] clear_full_ptes include/linux/pgtable.h:785 [inline] zap_present_folio_ptes mm/memory.c:1512 [inline] zap_present_ptes mm/memory.c:1581 [inline] do_zap_pte_range mm/memory.c:1682 [inline] zap_pte_range mm/memory.c:1726 [inline] zap_pmd_range mm/memory.c:1818 [inline] zap_pud_range mm/memory.c:1847 [inline] zap_p4d_range mm/memory.c:1868 [inline] unmap_page_range+0x3460/0x4370 mm/memory.c:1889 unmap_single_vma mm/memory.c:1932 [inline] unmap_vmas+0x399/0x580 mm/memory.c:1976 exit_mmap+0x248/0xb50 mm/mmap.c:1280 __mmput+0x118/0x420 kernel/fork.c:1130 exit_mm+0x1da/0x2c0 kernel/exit.c:582 do_exit+0x648/0x2300 kernel/exit.c:949 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102 get_signal+0x1286/0x1340 kernel/signal.c:3034 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:40 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda58d8ebe9 Code: Unable to access opcode bytes at 0x7fda58d8ebbf. RSP: 002b:00007fda59b4d0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fda58fc5fa8 RCX: 00007fda58d8ebe9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fda58fc5fa8 RBP: 00007fda58fc5fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fda58fc6038 R14: 00007ffc41a16d20 R15: 00007ffc41a16e08 ---------------- Code disassembly (best guess): 0: 8b 3d 64 79 fe 0b mov 0xbfe7964(%rip),%edi # 0xbfe796a 6: 48 89 de mov %rbx,%rsi 9: 5b pop %rbx a: e9 c3 9f 58 00 jmp 0x589fd2 f: cc int3 10: cc int3 11: cc int3 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: f3 0f 1e fa endbr64 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0c 25 08 a0 mov %gs:0xffffffff92a0a008,%rcx <-- trapping instruction 31: a0 92 33: 65 8b 15 88 f4 e0 10 mov %gs:0x10e0f488(%rip),%edx # 0x10e0f4c2 3a: 81 e2 00 01 ff 00 and $0xff0100,%edx