============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- kworker/u32:3/5808 is trying to acquire lock: ffff8880361bc158 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff8880361bc158 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: __netif_tx_lock include/linux/netdevice.h:4838 [inline] ffff8880361bc158 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x3b5/0xc70 net/sched/sch_generic.c:370 but task is already holding lock: ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: __netif_tx_lock include/linux/netdevice.h:4838 [inline] ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x3b5/0xc70 net/sched/sch_generic.c:370 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&qdisc_xmit_lock_key#4); lock(&qdisc_xmit_lock_key#4); *** DEADLOCK *** May be due to missing lock nesting notation locks held by kworker/u32:3/5808: 11, last CPU#1: #0: ffff888056ff8140 ((wq_completion)bond2){+.+.}-{0:0}, at: process_one_work+0x1466/0x1b10 kernel/workqueue.c:3371 #1: ffffc90003bafd08 ((work_completion)(&(&bond->alb_work)->work)){+.+.}-{0:0}, at: process_one_work+0xa2c/0x1b10 kernel/workqueue.c:3372 #2: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #2: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: bond_alb_monitor+0xec/0x1750 drivers/net/bonding/bond_alb.c:1547 #3: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #3: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline] #3: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x296/0x4970 net/core/dev.c:4844 #4: ffff888055b93228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: spin_trylock include/linux/spinlock.h:359 [inline] #4: ffff888055b93228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: qdisc_run_begin include/net/sch_generic.h:206 [inline] #4: ffff888055b93228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: __dev_xmit_skb net/core/dev.c:4249 [inline] #4: ffff888055b93228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: __dev_queue_xmit+0x2504/0x4970 net/core/dev.c:4884 #5: ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #5: ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: __netif_tx_lock include/linux/netdevice.h:4838 [inline] #5: ffff88802d4b7558 (&qdisc_xmit_lock_key#4){+.-.}-{3:3}, at: sch_direct_xmit+0x3b5/0xc70 net/sched/sch_generic.c:370 #6: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #6: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #6: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: ip_output+0xb3/0xc10 net/ipv4/ip_output.c:432 #7: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #7: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #7: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x356/0x2400 net/ipv4/ip_output.c:229 #8: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #8: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #8: ffffffff8edec420 (rcu_read_lock){....}-{1:3}, at: arp_xmit+0x26/0x2e0 net/ipv4/arp.c:663 #9: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #9: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline] #9: ffffffff8edec3c0 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x296/0x4970 net/core/dev.c:4844 #10: ffff888055e5a228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: spin_trylock include/linux/spinlock.h:359 [inline] #10: ffff888055e5a228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: qdisc_run_begin include/net/sch_generic.h:206 [inline] #10: ffff888055e5a228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: __dev_xmit_skb net/core/dev.c:4249 [inline] #10: ffff888055e5a228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#5){+...}-{3:3}, at: __dev_queue_xmit+0x2504/0x4970 net/core/dev.c:4884 stack backtrace: CPU: 1 UID: 0 PID: 5808 Comm: kworker/u32:3 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: bond2 bond_alb_monitor Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_deadlock_bug.cold+0xbd/0xca kernel/locking/lockdep.c:3085 check_deadlock kernel/locking/lockdep.c:3137 [inline] validate_chain kernel/locking/lockdep.c:3939 [inline] __lock_acquire+0x13f4/0x1f40 kernel/locking/lockdep.c:5288 lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] __netif_tx_lock include/linux/netdevice.h:4838 [inline] sch_direct_xmit+0x3b5/0xc70 net/sched/sch_generic.c:370 __dev_xmit_skb net/core/dev.c:4262 [inline] __dev_queue_xmit+0x27ac/0x4970 net/core/dev.c:4884 dev_queue_xmit include/linux/netdevice.h:3461 [inline] arp_xmit_finish net/ipv4/arp.c:655 [inline] NF_HOOK include/linux/netfilter.h:325 [inline] NF_HOOK include/linux/netfilter.h:319 [inline] arp_xmit+0x106/0x2e0 net/ipv4/arp.c:665 arp_send_dst net/ipv4/arp.c:320 [inline] arp_send_dst+0x200/0x280 net/ipv4/arp.c:301 arp_solicit+0x672/0x1070 net/ipv4/arp.c:392 neigh_probe+0xce/0x110 net/core/neighbour.c:1093 __neigh_event_send+0xabe/0x13d0 net/core/neighbour.c:1273 neigh_event_send_probe include/net/neighbour.h:480 [inline] neigh_event_send include/net/neighbour.h:486 [inline] neigh_event_send include/net/neighbour.h:484 [inline] neigh_resolve_output+0x550/0x8f0 net/core/neighbour.c:1600 neigh_output include/net/neighbour.h:560 [inline] ip_finish_output2+0x851/0x2400 net/ipv4/ip_output.c:236 __ip_finish_output.part.0+0x444/0x6f0 net/ipv4/ip_output.c:314 __ip_finish_output net/ipv4/ip_output.c:302 [inline] ip_finish_output net/ipv4/ip_output.c:324 [inline] NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip_output+0x39b/0xc10 net/ipv4/ip_output.c:437 dst_output include/net/dst.h:470 [inline] ip_local_out+0x193/0x1f0 net/ipv4/ip_output.c:131 iptunnel_xmit+0x722/0xd30 net/ipv4/ip_tunnel_core.c:97 ip_tunnel_xmit+0x1b91/0x3210 net/ipv4/ip_tunnel.c:848 __gre_xmit+0x91a/0xc90 net/ipv4/ip_gre.c:488 erspan_xmit+0x1041/0x1f10 net/ipv4/ip_gre.c:752 __netdev_start_xmit include/linux/netdevice.h:5429 [inline] netdev_start_xmit include/linux/netdevice.h:5438 [inline] xmit_one net/core/dev.c:3937 [inline] dev_hard_start_xmit+0x121/0x760 net/core/dev.c:3953 sch_direct_xmit+0x1b2/0xc70 net/sched/sch_generic.c:372 __dev_xmit_skb net/core/dev.c:4262 [inline] __dev_queue_xmit+0x27ac/0x4970 net/core/dev.c:4884 dev_queue_xmit include/linux/netdevice.h:3461 [inline] alb_send_lp_vid+0x31e/0x540 drivers/net/bonding/bond_alb.c:949 alb_send_learning_packets+0xe0/0x2f0 drivers/net/bonding/bond_alb.c:1012 bond_alb_monitor+0x997/0x1750 drivers/net/bonding/bond_alb.c:1564 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 netdevsim netdevsim3 netdevsim0: unset [0, 0] type 1 family 0 port 8472 - 0 netdevsim netdevsim3 netdevsim0: unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim1: unset [0, 0] type 1 family 0 port 8472 - 0 netdevsim netdevsim3 netdevsim1: unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim2: unset [0, 0] type 1 family 0 port 8472 - 0 netdevsim netdevsim3 netdevsim2: unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim3 netdevsim3: unset [0, 0] type 1 family 0 port 8472 - 0 netdevsim netdevsim3 netdevsim3: unset [1, 0] type 2 family 0 port 6081 - 0