============================================
WARNING: possible recursive locking detected
6.5.0-rc1-syzkaller-00319-g89e970ea7fba #0 Not tainted
--------------------------------------------
kworker/0:8/3724 is trying to acquire lock:
ffff8880152628d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff8880152628d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: __netif_tx_lock include/linux/netdevice.h:4373 [inline]
ffff8880152628d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: sch_direct_xmit+0x333/0xc20 net/sched/sch_generic.c:340
but task is already holding lock:
ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: __netif_tx_lock include/linux/netdevice.h:4373 [inline]
ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: sch_direct_xmit+0x333/0xc20 net/sched/sch_generic.c:340
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(_xmit_ETHER#2);
lock(_xmit_ETHER#2);
*** DEADLOCK ***
May be due to missing lock nesting notation
10 locks held by kworker/0:8/3724:
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline]
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x96a/0x16f0 kernel/workqueue.c:2567
#1: ffffc90005507da0 ((work_completion)(&sdp->work)){+.+.}-{0:0}, at: process_one_work+0x99e/0x16f0 kernel/workqueue.c:2571
#2: ffffc90000007cf0 ((&in_dev->mr_ifc_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline]
#2: ffffc90000007cf0 ((&in_dev->mr_ifc_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x580 kernel/time/timer.c:1690
#3: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:95 [inline]
#3: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x29d/0x24b0 net/ipv4/ip_output.c:216
#4: ffffffff8c9a6560 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x257/0x3f20 net/core/dev.c:4120
#5: ffff8880396b2258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#5: ffff8880396b2258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:194 [inline]
#5: ffff8880396b2258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:191 [inline]
#5: ffff8880396b2258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3751 [inline]
#5: ffff8880396b2258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x13c3/0x3f20 net/core/dev.c:4169
#6: ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#6: ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: __netif_tx_lock include/linux/netdevice.h:4373 [inline]
#6: ffff8881413860d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: sch_direct_xmit+0x333/0xc20 net/sched/sch_generic.c:340
#7: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:95 [inline]
#7: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x29d/0x24b0 net/ipv4/ip_output.c:216
#8: ffffffff8c9a6560 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x257/0x3f20 net/core/dev.c:4120
#9: ffff88801639b258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#9: ffff88801639b258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:194 [inline]
#9: ffff88801639b258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:191 [inline]
#9: ffff88801639b258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3751 [inline]
#9: ffff88801639b258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x13c3/0x3f20 net/core/dev.c:4169
stack backtrace:
CPU: 0 PID: 3724 Comm: kworker/0:8 Not tainted 6.5.0-rc1-syzkaller-00319-g89e970ea7fba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Workqueue: rcu_gp srcu_invoke_callbacks
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
check_deadlock kernel/locking/lockdep.c:3070 [inline]
validate_chain kernel/locking/lockdep.c:3863 [inline]
__lock_acquire+0x2971/0x5de0 kernel/locking/lockdep.c:5144
lock_acquire kernel/locking/lockdep.c:5761 [inline]
lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726
__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]
__netif_tx_lock include/linux/netdevice.h:4373 [inline]
sch_direct_xmit+0x333/0xc20 net/sched/sch_generic.c:340
__dev_xmit_skb net/core/dev.c:3764 [inline]
__dev_queue_xmit+0x1611/0x3f20 net/core/dev.c:4169
dev_queue_xmit include/linux/netdevice.h:3088 [inline]
neigh_resolve_output net/core/neighbour.c:1552 [inline]
neigh_resolve_output+0x58c/0x900 net/core/neighbour.c:1532
neigh_output include/net/neighbour.h:544 [inline]
ip_finish_output2+0x70a/0x24b0 net/ipv4/ip_output.c:230
__ip_finish_output net/ipv4/ip_output.c:308 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:290
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:318
NF_HOOK_COND include/linux/netfilter.h:292 [inline]
ip_output+0x198/0x310 net/ipv4/ip_output.c:432
dst_output include/net/dst.h:458 [inline]
ip_local_out+0xaf/0x190 net/ipv4/ip_output.c:127
iptunnel_xmit+0x61a/0xa30 net/ipv4/ip_tunnel_core.c:82
ip_tunnel_xmit+0x1e09/0x3350 net/ipv4/ip_tunnel.c:831
erspan_xmit+0x525/0x2050 net/ipv4/ip_gre.c:715
__netdev_start_xmit include/linux/netdevice.h:4910 [inline]
netdev_start_xmit include/linux/netdevice.h:4924 [inline]
xmit_one net/core/dev.c:3537 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3553
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3764 [inline]
__dev_queue_xmit+0x1611/0x3f20 net/core/dev.c:4169
dev_queue_xmit include/linux/netdevice.h:3088 [inline]
neigh_resolve_output net/core/neighbour.c:1552 [inline]
neigh_resolve_output+0x58c/0x900 net/core/neighbour.c:1532
neigh_output include/net/neighbour.h:544 [inline]
ip_finish_output2+0x70a/0x24b0 net/ipv4/ip_output.c:230
__ip_finish_output net/ipv4/ip_output.c:308 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:290
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:318
NF_HOOK_COND include/linux/netfilter.h:292 [inline]
ip_output+0x198/0x310 net/ipv4/ip_output.c:432
dst_output include/net/dst.h:458 [inline]
ip_local_out+0xaf/0x190 net/ipv4/ip_output.c:127
igmpv3_send_cr net/ipv4/igmp.c:720 [inline]
igmp_ifc_timer_expire+0x788/0x1050 net/ipv4/igmp.c:810
call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700
expire_timers kernel/time/timer.c:1751 [inline]
__run_timers+0x764/0xb10 kernel/time/timer.c:2022
run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
__do_softirq+0x218/0x965 kernel/softirq.c:553
do_softirq kernel/softirq.c:454 [inline]
do_softirq+0xaa/0xe0 kernel/softirq.c:441
__local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:381
local_bh_enable include/linux/bottom_half.h:33 [inline]
srcu_invoke_callbacks+0x278/0x460 kernel/rcu/srcutree.c:1713
process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597
worker_thread+0x687/0x1110 kernel/workqueue.c:2748
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4
lapbether: lapb_data_request error - 4