================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. modprobe/9025 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff8880558ef0a8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff8880558ef0a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff8880558ef0a8 (&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: 3100 hardirqs last enabled at (3100): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (3100): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (3099): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (3099): [] _raw_spin_lock_irq+0x7d/0xf0 kernel/locking/spinlock.c:170 softirqs last enabled at (2894): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last enabled at (2894): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last enabled at (2894): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 softirqs last disabled at (3091): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (3091): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (3091): [] __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 *** 2 locks held by modprobe/9025: #0: ffff888028482220 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:415 [inline] #0: ffff888028482220 (&mm->mmap_lock){++++}-{4:4}, at: do_mprotect_pkey+0x217/0xce0 mm/mprotect.c:892 #1: ffffc90000007be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 0 UID: 0 PID: 9025 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:check_kcov_mode kernel/kcov.c:194 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x70 kernel/kcov.c:217 Code: 08 c0 a0 92 65 8b 15 88 14 e1 10 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 3c 16 00 00 00 74 2c 8b 91 18 16 00 00 <83> fa 02 75 21 48 8b 91 20 16 00 00 48 8b 32 48 8d 7e 01 8b 89 1c RSP: 0018:ffffc9001c5d74f8 EFLAGS: 00000246 RAX: ffffffff8b731cea RBX: 0000000000000001 RCX: ffff88807d9dda00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 RBP: ffffc9001c5d76d0 R08: ffff88807d9dda00 R09: 0000000000000003 R10: 0000000000000003 R11: 0000000000000000 R12: ffff8880701a9400 R13: dffffc0000000000 R14: ffff8880701a8800 R15: 0000000000000001 mas_data_end lib/maple_tree.c:1468 [inline] mt_validate_nulls lib/maple_tree.c:7567 [inline] mt_validate+0x3f6a/0x4380 lib/maple_tree.c:7615 validate_mm+0xb6/0x4b0 mm/vma.c:651 __split_vma+0x8bd/0xa00 mm/vma.c:569 split_vma mm/vma.c:598 [inline] vma_modify+0x13b3/0x1970 mm/vma.c:1631 vma_modify_flags+0x1e8/0x230 mm/vma.c:1649 mprotect_fixup+0x407/0x9c0 mm/mprotect.c:816 do_mprotect_pkey+0x8cd/0xce0 mm/mprotect.c:990 __do_sys_mprotect mm/mprotect.c:1011 [inline] __se_sys_mprotect mm/mprotect.c:1008 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:1008 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 RIP: 0033:0x7f03a71f12c7 Code: 89 3d fd 3f 01 00 eb 90 0f 1f 00 f7 d8 89 05 f0 3f 01 00 48 c7 c0 ff ff ff ff eb 91 0f 1f 80 00 00 00 00 b8 0a 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d c9 3f 01 00 f7 d8 89 01 48 83 RSP: 002b:00007ffd9111d948 EFLAGS: 00000206 ORIG_RAX: 000000000000000a RAX: ffffffffffffffda RBX: 00007f03a71c50c0 RCX: 00007f03a71f12c7 RDX: 0000000000000001 RSI: 0000000000003000 RDI: 00007f03a71c1000 RBP: 00007ffd9111dc10 R08: 0000000000000000 R09: 00007f03a7142bf7 R10: 00007f03a71c50c0 R11: 0000000000000206 R12: 0000000000000008 R13: 000000589ee1b940 R14: 0000000000000000 R15: 00007f03a7205310 ---------------- Code disassembly (best guess): 0: 08 c0 or %al,%al 2: a0 92 65 8b 15 88 14 movabs 0x10e11488158b6592,%al 9: e1 10 b: 81 e2 00 01 ff 00 and $0xff0100,%edx 11: 74 11 je 0x24 13: 81 fa 00 01 00 00 cmp $0x100,%edx 19: 75 35 jne 0x50 1b: 83 b9 3c 16 00 00 00 cmpl $0x0,0x163c(%rcx) 22: 74 2c je 0x50 24: 8b 91 18 16 00 00 mov 0x1618(%rcx),%edx * 2a: 83 fa 02 cmp $0x2,%edx <-- trapping instruction 2d: 75 21 jne 0x50 2f: 48 8b 91 20 16 00 00 mov 0x1620(%rcx),%rdx 36: 48 8b 32 mov (%rdx),%rsi 39: 48 8d 7e 01 lea 0x1(%rsi),%rdi 3d: 8b .byte 0x8b 3e: 89 .byte 0x89 3f: 1c .byte 0x1c