================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.2.207/6763 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888057bd0ca8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff888057bd0ca8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff888057bd0ca8 (&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_csum_init+0x45c/0x7e0 net/sched/act_csum.c:104 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: 956 hardirqs last enabled at (956): [] irqentry_exit+0x74/0x90 kernel/entry/common.c:200 hardirqs last disabled at (955): [] sysvec_apic_timer_interrupt+0xe/0xc0 arch/x86/kernel/apic/apic.c:1050 softirqs last enabled at (752): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (752): [] fpregs_lock arch/x86/include/asm/fpu/api.h:69 [inline] softirqs last enabled at (752): [] fpu_clone+0x35c/0xbb0 arch/x86/kernel/fpu/core.c:688 softirqs last disabled at (927): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (927): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (927): [] __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 *** 6 locks held by syz.2.207/6763: #0: ffff888031e6ea88 (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: ___pte_offset_map+0x29/0x250 mm/pgtable-generic.c:286 #2: ffff8880332902b8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff8880332902b8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0x13e/0x210 mm/pgtable-generic.c:401 #3: ffff8880b8732fb8 (lock#4){+.+.}-{3:3}, at: local_lock_acquire include/linux/local_lock_internal.h:38 [inline] #3: ffff8880b8732fb8 (lock#4){+.+.}-{3:3}, at: __folio_batch_add_and_move+0x20a/0xd20 mm/swap.c:192 #4: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #4: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #4: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1155 [inline] #4: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xa5/0x2390 arch/x86/kernel/unwind_orc.c:479 #5: ffffc90000a08be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 1 UID: 0 PID: 6763 Comm: syz.2.207 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:unwind_next_frame+0xc98/0x2390 arch/x86/kernel/unwind_orc.c:-1 Code: 8b 5c 24 70 4c 8b 6c 24 50 4c 8b 64 24 10 74 08 48 89 df e8 aa 4f b0 00 4c 89 23 ba 10 00 00 00 4c 89 ef 31 f6 e8 78 51 b0 00 <48> 8b 14 24 e9 c5 04 00 00 4c 89 7c 24 28 48 89 5c 24 78 4d 8d 66 RSP: 0000:ffffc9000c94f318 EFLAGS: 00000246 RAX: ffffc9000c94f438 RBX: ffffc9000c94f420 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000c94f448 RBP: dffffc0000000000 R08: ffffc9000c94f447 R09: 0000000000000000 R10: ffffc9000c94f438 R11: fffff52001929e89 R12: ffffc9000c94fc00 R13: ffffc9000c94f438 R14: ffffc9000c94f3e8 R15: ffffc9000c94f430 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 save_stack+0xf5/0x1f0 mm/page_owner.c:156 __reset_page_owner+0x71/0x1f0 mm/page_owner.c:308 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xdbd/0x1520 mm/page_alloc.c:2952 folios_put_refs+0x559/0x640 mm/swap.c:997 folios_put include/linux/mm.h:1419 [inline] folio_batch_move_lru+0x319/0x3a0 mm/swap.c:175 __folio_batch_add_and_move+0x5ad/0xd20 mm/swap.c:196 wp_page_copy mm/memory.c:3620 [inline] do_wp_page+0x1c09/0x5800 mm/memory.c:4013 handle_pte_fault mm/memory.c:6068 [inline] __handle_mm_fault+0x1033/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:0x7ffb8744da2c Code: 23 83 c0 01 44 39 d0 75 dc 48 89 f0 25 ff 1f 00 00 49 89 34 c1 41 88 3c 00 31 c0 c3 66 90 41 38 3c 10 74 0b 41 88 3c 10 31 c0 <49> 89 34 d1 c3 b8 01 00 00 00 c3 66 0f 1f 84 00 00 00 00 00 48 83 RSP: 002b:00007ffc12a9ce48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007ffb882f5720 RCX: 0000000000000000 RDX: 000000000000005b RSI: ffffffff8233205b RDI: 0000000000000000 RBP: ffffffff8233205b R08: 00007ffb877b0000 R09: 00007ffb877b2000 R10: 000000008233205f R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff82332c12 R15: 0000000000000002 ---------------- Code disassembly (best guess): 0: 8b 5c 24 70 mov 0x70(%rsp),%ebx 4: 4c 8b 6c 24 50 mov 0x50(%rsp),%r13 9: 4c 8b 64 24 10 mov 0x10(%rsp),%r12 e: 74 08 je 0x18 10: 48 89 df mov %rbx,%rdi 13: e8 aa 4f b0 00 call 0xb04fc2 18: 4c 89 23 mov %r12,(%rbx) 1b: ba 10 00 00 00 mov $0x10,%edx 20: 4c 89 ef mov %r13,%rdi 23: 31 f6 xor %esi,%esi 25: e8 78 51 b0 00 call 0xb051a2 * 2a: 48 8b 14 24 mov (%rsp),%rdx <-- trapping instruction 2e: e9 c5 04 00 00 jmp 0x4f8 33: 4c 89 7c 24 28 mov %r15,0x28(%rsp) 38: 48 89 5c 24 78 mov %rbx,0x78(%rsp) 3d: 4d rex.WRB 3e: 8d .byte 0x8d 3f: 66 data16