bond1: (slave gretap1): making interface the new active one ============================================ WARNING: possible recursive locking detected 6.1.127-syzkaller #0 Not tainted -------------------------------------------- syz.2.218/5307 is trying to acquire lock: ffff88807cbb9218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88807cbb9218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3894 [inline] ffff88807cbb9218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_queue_xmit+0x22db/0x3d50 net/core/dev.c:4269 but task is already holding lock: ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline] ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:195 [inline] ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3851 [inline] ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_queue_xmit+0x12c7/0x3d50 net/core/dev.c:4269 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(dev->qdisc_tx_busylock ?: &qdisc_tx_busylock); lock(dev->qdisc_tx_busylock ?: &qdisc_tx_busylock); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz.2.218/5307: #0: ffffffff8e50bd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e50bd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7c1/0xff0 net/core/rtnetlink.c:6147 #1: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #1: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:843 [inline] #1: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2d6/0x3d50 net/core/dev.c:4226 #2: ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline] #2: ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:195 [inline] #2: ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3851 [inline] #2: ffff888058de5258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+.-.}-{2:2}, at: __dev_queue_xmit+0x12c7/0x3d50 net/core/dev.c:4269 #3: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #3: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #3: ffffffff8d32b0c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x402/0x1330 net/ipv4/ip_output.c:221 #4: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #4: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:843 [inline] #4: ffffffff8d32b120 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2d6/0x3d50 net/core/dev.c:4226 stack backtrace: CPU: 1 PID: 5307 Comm: syz.2.218 Not tainted 6.1.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2983 [inline] check_deadlock kernel/locking/lockdep.c:3026 [inline] validate_chain+0x4711/0x5950 kernel/locking/lockdep.c:3812 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] __dev_xmit_skb net/core/dev.c:3894 [inline] __dev_queue_xmit+0x22db/0x3d50 net/core/dev.c:4269 dev_queue_xmit include/linux/netdevice.h:3043 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0xcfc/0x1330 net/ipv4/ip_output.c:228 iptunnel_xmit+0x513/0x920 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0x1f87/0x2690 net/ipv4/ip_tunnel.c:858 __gre_xmit net/ipv4/ip_gre.c:474 [inline] gre_tap_xmit+0x4eb/0x6e0 net/ipv4/ip_gre.c:751 __netdev_start_xmit include/linux/netdevice.h:4888 [inline] netdev_start_xmit include/linux/netdevice.h:4902 [inline] xmit_one net/core/dev.c:3627 [inline] dev_hard_start_xmit+0x261/0x8c0 net/core/dev.c:3643 sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3864 [inline] __dev_queue_xmit+0x1a7a/0x3d50 net/core/dev.c:4269 alb_send_learning_packets+0x197/0x370 drivers/net/bonding/bond_alb.c:1012 alb_fasten_mac_swap+0x891/0xe20 drivers/net/bonding/bond_alb.c:1088 bond_alb_handle_active_change+0xebb/0x1340 drivers/net/bonding/bond_alb.c:1776 bond_change_active_slave+0x10da/0x39b0 drivers/net/bonding/bond_main.c:1231 bond_select_active_slave+0x90e/0xca0 drivers/net/bonding/bond_main.c:1311 bond_enslave+0x2192/0x3ad0 drivers/net/bonding/bond_main.c:2246 do_set_master net/core/rtnetlink.c:2627 [inline] rtnl_newlink_create net/core/rtnetlink.c:3436 [inline] __rtnl_newlink net/core/rtnetlink.c:3639 [inline] rtnl_newlink+0x1d1f/0x2050 net/core/rtnetlink.c:3652 rtnetlink_rcv_msg+0x818/0xff0 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2493 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1337 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5a5/0x8f0 net/socket.c:2519 ___sys_sendmsg net/socket.c:2573 [inline] __sys_sendmsg+0x2a9/0x390 net/socket.c:2602 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f449198cda9 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:00007f44917ff038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4491ba6080 RCX: 00007f449198cda9 RDX: 0000000000008080 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00007f4491a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f4491ba6080 R15: 00007ffc94532738 bond1: (slave gretap1): Enslaving as an active interface with an up link syz.2.218 (5307) used greatest stack depth: 17752 bytes left