================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.2445/15472 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888027d950a8 (&p->tcfa_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff888027d950a8 (&p->tcfa_lock){+.?.}-{3:3}, at: est_fetch_counters net/core/gen_estimator.c:67 [inline] ffff888027d950a8 (&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_ctinfo_init+0xa5e/0xe90 net/sched/act_ctinfo.c:261 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: 50922 hardirqs last enabled at (50922): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (50922): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (50921): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (50921): [] _raw_spin_lock_irq+0x7d/0xf0 kernel/locking/spinlock.c:170 softirqs last enabled at (48938): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last enabled at (48938): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last enabled at (48938): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 softirqs last disabled at (50919): [] __do_softirq kernel/softirq.c:613 [inline] softirqs last disabled at (50919): [] invoke_softirq kernel/softirq.c:453 [inline] softirqs last disabled at (50919): [] __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 *** 5 locks held by syz.3.2445/15472: #0: ffff8880481bab78 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x247/0x320 fs/file.c:1232 #1: ffff8880295a4428 (sb_writers#5){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3107 [inline] #1: ffff8880295a4428 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x211/0xb30 fs/read_write.c:682 #2: ffff88805248d128 (&sb->s_type->i_mutex_key#13){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #2: ffff88805248d128 (&sb->s_type->i_mutex_key#13){+.+.}-{4:4}, at: shmem_file_write_iter+0x7f/0x120 mm/shmem.c:3518 #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: filemap_get_entry+0xad/0x2f0 mm/filemap.c:1868 #4: ffffc90000007be0 ((&est->timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 stack backtrace: CPU: 0 UID: 0 PID: 15472 Comm: syz.3.2445 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:xa_entry include/linux/xarray.h:1226 [inline] RIP: 0010:xas_descend lib/xarray.c:208 [inline] RIP: 0010:xas_load+0x19f/0x5b0 lib/xarray.c:246 Code: 48 c1 e8 03 4c 89 eb 42 80 3c 28 00 74 08 4c 89 f7 e8 15 11 ab f6 4d 8b 36 e8 bd 33 02 00 41 89 c5 31 ff 89 c6 e8 a1 a4 47 f6 <45> 85 ed 74 2c 49 83 c4 18 4c 89 e7 be ff ff ff ff e8 ab 2f 02 00 RSP: 0018:ffffc9001b28f870 EFLAGS: 00000297 RAX: ffffffff8b780b2f RBX: dffffc0000000000 RCX: 0000000000000002 RDX: ffff888025371e00 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9001b28f938 R08: 0000000000000000 R09: ffffffff81f6a16d R10: ffffc9001b28f940 R11: fffff52003651f2b R12: ffff88805248d208 R13: 0000000000000001 R14: ffff88806acc4582 R15: 000000000000001e filemap_get_entry+0x168/0x2f0 mm/filemap.c:1871 shmem_get_folio_gfp+0x237/0x1660 mm/shmem.c:2521 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0xf7/0x2b0 mm/shmem.c:3353 generic_perform_write+0x2c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0xf8/0x120 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c6/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 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:0x7f7e5958ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7e577f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7e597c5fa0 RCX: 00007f7e5958ebe9 RDX: 0000000000806000 RSI: 0000200000000200 RDI: 000000000000000c RBP: 00007f7e59611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7e597c6038 R14: 00007f7e597c5fa0 R15: 00007ffd41a45598 IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available IPVS: rr: UDP 224.0.0.2:0 - no destination available ---------------- Code disassembly (best guess): 0: 48 c1 e8 03 shr $0x3,%rax 4: 4c 89 eb mov %r13,%rbx 7: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) c: 74 08 je 0x16 e: 4c 89 f7 mov %r14,%rdi 11: e8 15 11 ab f6 call 0xf6ab112b 16: 4d 8b 36 mov (%r14),%r14 19: e8 bd 33 02 00 call 0x233db 1e: 41 89 c5 mov %eax,%r13d 21: 31 ff xor %edi,%edi 23: 89 c6 mov %eax,%esi 25: e8 a1 a4 47 f6 call 0xf647a4cb * 2a: 45 85 ed test %r13d,%r13d <-- trapping instruction 2d: 74 2c je 0x5b 2f: 49 83 c4 18 add $0x18,%r12 33: 4c 89 e7 mov %r12,%rdi 36: be ff ff ff ff mov $0xffffffff,%esi 3b: e8 ab 2f 02 00 call 0x22feb