netdevsim netdevsim1 netdevsim2: renamed from eth2 netdevsim netdevsim1 netdevsim3: renamed from eth3 ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz-executor/5029 is trying to acquire lock: ffff8880b9127eb8 (krc.lock){..-.}-{2:2}, at: krc_this_cpu_lock kernel/rcu/tree.c:3203 [inline] ffff8880b9127eb8 (krc.lock){..-.}-{2:2}, at: add_ptr_to_bulk_krc_lock kernel/rcu/tree.c:3510 [inline] ffff8880b9127eb8 (krc.lock){..-.}-{2:2}, at: kvfree_call_rcu+0x18d/0x7d0 kernel/rcu/tree.c:3601 but task is already holding lock: ffff888023130238 (&trie->lock){-.-.}-{2:2}, at: trie_delete_elem+0x90/0x710 kernel/bpf/lpm_trie.c:467 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&trie->lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 trie_delete_elem+0x90/0x710 kernel/bpf/lpm_trie.c:467 bpf_prog_2c29ac5cdc6b1842+0x3a/0x980 bpf_dispatcher_nop_func include/linux/bpf.h:888 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1878 [inline] bpf_trace_run2+0x163/0x2e0 kernel/trace/bpf_trace.c:1915 trace_hrtimer_start include/trace/events/timer.h:199 [inline] debug_activate kernel/time/hrtimer.c:466 [inline] enqueue_hrtimer+0x314/0x370 kernel/time/hrtimer.c:1069 __hrtimer_start_range_ns kernel/time/hrtimer.c:1244 [inline] hrtimer_start_range_ns+0xa7e/0xc20 kernel/time/hrtimer.c:1286 hrtimer_start_expires include/linux/hrtimer.h:434 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1947 [inline] schedule_hrtimeout_range_clock+0x3ba/0x590 kernel/time/hrtimer.c:2290 ep_poll+0x178b/0x1a20 fs/eventpoll.c:1919 do_epoll_wait+0x1a1/0x210 fs/eventpoll.c:2328 __do_sys_epoll_wait fs/eventpoll.c:2340 [inline] __se_sys_epoll_wait fs/eventpoll.c:2335 [inline] __x64_sys_epoll_wait+0x1d4/0x220 fs/eventpoll.c:2335 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #1 (hrtimer_bases.lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 lock_hrtimer_base kernel/time/hrtimer.c:168 [inline] hrtimer_start_range_ns+0xff/0xc20 kernel/time/hrtimer.c:1284 hrtimer_start include/linux/hrtimer.h:420 [inline] run_page_cache_worker kernel/rcu/tree.c:3492 [inline] kvfree_call_rcu+0x61b/0x7d0 kernel/rcu/tree.c:3603 rtnl_register_internal+0x489/0x590 net/core/rtnetlink.c:225 rtnl_register+0x2e/0x70 net/core/rtnetlink.c:275 ip_rt_init+0x2e0/0x3a0 net/ipv4/route.c:3803 ip_init+0xa/0x20 net/ipv4/ip_output.c:1756 inet_init+0x28b/0x3a0 net/ipv4/af_inet.c:2007 do_one_initcall+0x272/0x730 init/main.c:1316 do_initcall_level+0x137/0x1f0 init/main.c:1389 do_initcalls+0x4b/0x90 init/main.c:1405 kernel_init_freeable+0x3e9/0x570 init/main.c:1629 kernel_init+0x19/0x1b0 init/main.c:1520 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 -> #0 (krc.lock){..-.}-{2:2}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c42/0x7d10 kernel/locking/lockdep.c:5012 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 krc_this_cpu_lock kernel/rcu/tree.c:3203 [inline] add_ptr_to_bulk_krc_lock kernel/rcu/tree.c:3510 [inline] kvfree_call_rcu+0x18d/0x7d0 kernel/rcu/tree.c:3601 trie_delete_elem+0x58c/0x710 kernel/bpf/lpm_trie.c:-1 bpf_prog_8c8ab8634bca3061+0x3a/0xe48 bpf_dispatcher_nop_func include/linux/bpf.h:888 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1878 [inline] bpf_trace_run2+0x163/0x2e0 kernel/trace/bpf_trace.c:1915 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x25f/0x2a0 mm/slub.c:4554 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6b8/0x800 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] consume_skb+0xa2/0x100 net/core/skbuff.c:914 netlink_broadcast_filtered+0x107a/0x1170 net/netlink/af_netlink.c:1534 netlink_broadcast net/netlink/af_netlink.c:1556 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xec/0x1a0 net/netlink/af_netlink.c:2550 fib6_add_rt2node net/ipv6/ip6_fib.c:1255 [inline] fib6_add+0x1d4d/0x3d40 net/ipv6/ip6_fib.c:1484 __ip6_ins_rt net/ipv6/route.c:1305 [inline] ip6_route_add+0x86/0x130 net/ipv6/route.c:3869 addrconf_prefix_route+0x249/0x320 net/ipv6/addrconf.c:2446 inet6_addr_add+0x4ff/0x9c0 net/ipv6/addrconf.c:3001 inet6_rtm_newaddr+0x64c/0x8f0 net/ipv6/addrconf.c:4951 rtnetlink_rcv_msg+0x844/0xf30 net/core/rtnetlink.c:5684 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x46d/0x620 net/socket.c:2072 __do_sys_sendto net/socket.c:2084 [inline] __se_sys_sendto net/socket.c:2080 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2080 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Chain exists of: krc.lock --> hrtimer_bases.lock --> &trie->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&trie->lock); lock(hrtimer_bases.lock); lock(&trie->lock); lock(krc.lock); *** DEADLOCK *** 4 locks held by syz-executor/5029: #0: ffffffff8d43cb48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d43cb48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7ee/0xf30 net/core/rtnetlink.c:5681 #1: ffff888149b93830 (&tb->tb6_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:369 [inline] #1: ffff888149b93830 (&tb->tb6_lock){+...}-{2:2}, at: __ip6_ins_rt net/ipv6/route.c:1304 [inline] #1: ffff888149b93830 (&tb->tb6_lock){+...}-{2:2}, at: ip6_route_add+0x71/0x130 net/ipv6/route.c:3869 #2: ffffffff8c31eaa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:312 #3: ffff888023130238 (&trie->lock){-.-.}-{2:2}, at: trie_delete_elem+0x90/0x710 kernel/bpf/lpm_trie.c:467 stack backtrace: CPU: 1 PID: 5029 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 check_noncircular+0x296/0x330 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c42/0x7d10 kernel/locking/lockdep.c:5012 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 krc_this_cpu_lock kernel/rcu/tree.c:3203 [inline] add_ptr_to_bulk_krc_lock kernel/rcu/tree.c:3510 [inline] kvfree_call_rcu+0x18d/0x7d0 kernel/rcu/tree.c:3601 trie_delete_elem+0x58c/0x710 kernel/bpf/lpm_trie.c:-1 bpf_prog_8c8ab8634bca3061+0x3a/0xe48 bpf_dispatcher_nop_func include/linux/bpf.h:888 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1878 [inline] bpf_trace_run2+0x163/0x2e0 kernel/trace/bpf_trace.c:1915 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x25f/0x2a0 mm/slub.c:4554 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x6b8/0x800 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] consume_skb+0xa2/0x100 net/core/skbuff.c:914 netlink_broadcast_filtered+0x107a/0x1170 net/netlink/af_netlink.c:1534 netlink_broadcast net/netlink/af_netlink.c:1556 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xec/0x1a0 net/netlink/af_netlink.c:2550 fib6_add_rt2node net/ipv6/ip6_fib.c:1255 [inline] fib6_add+0x1d4d/0x3d40 net/ipv6/ip6_fib.c:1484 __ip6_ins_rt net/ipv6/route.c:1305 [inline] ip6_route_add+0x86/0x130 net/ipv6/route.c:3869 addrconf_prefix_route+0x249/0x320 net/ipv6/addrconf.c:2446 inet6_addr_add+0x4ff/0x9c0 net/ipv6/addrconf.c:3001 inet6_rtm_newaddr+0x64c/0x8f0 net/ipv6/addrconf.c:4951 rtnetlink_rcv_msg+0x844/0xf30 net/core/rtnetlink.c:5684 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x46d/0x620 net/socket.c:2072 __do_sys_sendto net/socket.c:2084 [inline] __se_sys_sendto net/socket.c:2080 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2080 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f67688c874e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fff6d886418 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000555583c3f500 RCX: 00007f67688c874e RDX: 0000000000000040 RSI: 00007f67696a1670 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00007fff6d886494 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000000 R14: 00007f67696a1670 R15: 0000000000000000 8021q: adding VLAN 0 to HW filter on device bond0 8021q: adding VLAN 0 to HW filter on device team0 hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready 8021q: adding VLAN 0 to HW filter on device batadv0 device veth0_vlan entered promiscuous mode device veth1_vlan entered promiscuous mode device veth0_macvtap entered promiscuous mode device veth1_macvtap entered promiscuous mode batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_0 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! batman_adv: batadv0: Interface activated: batadv_slave_1 netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 ieee80211 phy11: Selected rate control algorithm 'minstrel_ht' ieee80211 phy12: Selected rate control algorithm 'minstrel_ht'