================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. modprobe/14076 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88805a3c64a8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88805a3c64a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff88805a3c64a8 (&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: 3904 hardirqs last enabled at (3904): [] irqentry_exit+0x74/0x90 kernel/entry/common.c:200 hardirqs last disabled at (3903): [] sysvec_reschedule_ipi+0xe/0xc0 arch/x86/kernel/smp.c:248 softirqs last enabled at (3242): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last enabled at (3242): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last enabled at (3242): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 softirqs last disabled at (3899): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (3899): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (3899): [] __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 *** 7 locks held by modprobe/14076: #0: ffff8880747cb6c8 (vm_lock){++++}-{0:0}, at: lock_vma_under_rcu+0x19f/0x3d0 mm/mmap_lock.c:147 #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: do_fault_around mm/memory.c:5530 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: do_read_fault mm/memory.c:5564 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: do_fault mm/memory.c:5707 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: do_pte_missing mm/memory.c:4234 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: handle_pte_fault mm/memory.c:6052 [inline] #1: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: __handle_mm_fault+0x27b7/0x5440 mm/memory.c:6195 #2: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #2: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #2: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: filemap_map_pages+0x150/0x1740 mm/filemap.c:3747 #3: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #3: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: ___pte_offset_map+0x29/0x250 mm/pgtable-generic.c:286 #4: ffff8880271989d8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff8880271989d8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0x13e/0x210 mm/pgtable-generic.c:401 #5: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #5: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #5: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: page_table_check_set+0x18d/0x730 mm/page_table_check.c:112 #6: ffffc90000007be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 0 UID: 0 PID: 14076 Comm: modprobe 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:lock_acquire+0x175/0x360 kernel/locking/lockdep.c:5872 Code: 00 00 00 00 9c 8f 44 24 30 f7 44 24 30 00 02 00 00 0f 85 cd 00 00 00 f7 44 24 08 00 02 00 00 74 01 fb 65 48 8b 05 3b 44 03 11 <48> 3b 44 24 58 0f 85 f2 00 00 00 48 83 c4 60 5b 41 5c 41 5d 41 5e RSP: 0000:ffffc9001b82f8b8 EFLAGS: 00000206 RAX: 3ef5f58b8f441800 RBX: 0000000000000000 RCX: 3ef5f58b8f441800 RDX: 0000000000000000 RSI: ffffffff8dba8903 RDI: ffffffff8be33800 RBP: ffffffff822e559d R08: 0000000000000000 R09: ffffffff822e559d R10: dffffc0000000000 R11: fffff940009ff7a9 R12: 0000000000000002 R13: ffffffff8e139ee0 R14: 0000000000000000 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:841 [inline] page_table_check_set+0x1aa/0x730 mm/page_table_check.c:112 page_table_check_ptes_set include/linux/page_table_check.h:76 [inline] set_ptes include/linux/pgtable.h:292 [inline] set_pte_range+0x6a5/0x700 mm/memory.c:5313 filemap_map_order0_folio mm/filemap.c:3725 [inline] filemap_map_pages+0xf32/0x1740 mm/filemap.c:3780 do_fault_around mm/memory.c:5531 [inline] do_read_fault mm/memory.c:5564 [inline] do_fault mm/memory.c:5707 [inline] do_pte_missing mm/memory.c:4234 [inline] handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x34a9/0x5440 mm/memory.c:6195 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6364 do_user_addr_fault+0xa81/0x1390 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f74fa58dce0 Code: Unable to access opcode bytes at 0x7f74fa58dcb6. RSP: 002b:00007ffcbc2c5fa8 EFLAGS: 00010206 RAX: 0000000000800000 RBX: 0000000000000001 RCX: 0000000000001180 RDX: fffffffffffff000 RSI: 0000000000001000 RDI: 0000000000800000 RBP: 00007ffcbc2c6280 R08: 0000000000000040 R09: 000000000000000e R10: 00007ffcbc2c5fb0 R11: 0000000000000246 R12: fffffffffffffff8 R13: 000000ce01416826 R14: 0000000000000000 R15: 00007f74fa7e3310 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 9c pushf 5: 8f 44 24 30 pop 0x30(%rsp) 9: f7 44 24 30 00 02 00 testl $0x200,0x30(%rsp) 10: 00 11: 0f 85 cd 00 00 00 jne 0xe4 17: f7 44 24 08 00 02 00 testl $0x200,0x8(%rsp) 1e: 00 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 3b 44 03 mov %gs:0x1103443b(%rip),%rax # 0x11034465 29: 11 * 2a: 48 3b 44 24 58 cmp 0x58(%rsp),%rax <-- trapping instruction 2f: 0f 85 f2 00 00 00 jne 0x127 35: 48 83 c4 60 add $0x60,%rsp 39: 5b pop %rbx 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14