__nla_validate_parse: 42 callbacks suppressed netlink: 44 bytes leftover after parsing attributes in process `syz-executor281'. ============================================ WARNING: possible recursive locking detected 6.2.0-rc2-syzkaller-00225-g571f3dd0d01b #0 Not tainted -------------------------------------------- syz-executor281/5183 is trying to acquire lock: ffff888029239218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff888029239218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3840 [inline] ffff888029239218 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x3028/0x3ba0 net/core/dev.c:4215 but task is already holding lock: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_trylock include/linux/spinlock.h:360 [inline] ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:187 [inline] ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:184 [inline] ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3797 [inline] ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x1419/0x3ba0 net/core/dev.c:4215 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 8 locks held by syz-executor281/5183: #0: ffffffff8c791a80 (rcu_read_lock){....}-{1:2}, at: bpf_test_timer_enter+0x0/0x160 net/bpf/test_run.c:787 #1: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x237/0x3ba0 net/core/dev.c:4166 #2: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:95 [inline] #2: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: ip_finish_output2+0x29a/0x2180 net/ipv4/ip_output.c:214 #3: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x237/0x3ba0 net/core/dev.c:4166 #4: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_trylock include/linux/spinlock.h:360 [inline] #4: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:187 [inline] #4: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:184 [inline] #4: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3797 [inline] #4: ffff88807981a258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x1419/0x3ba0 net/core/dev.c:4215 #5: ffff8880210ab4d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #5: ffff8880210ab4d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: __netif_tx_lock include/linux/netdevice.h:4316 [inline] #5: ffff8880210ab4d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: sch_direct_xmit+0x31c/0xbe0 net/sched/sch_generic.c:340 #6: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:95 [inline] #6: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: ip_finish_output2+0x29a/0x2180 net/ipv4/ip_output.c:214 #7: ffffffff8c791a20 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x237/0x3ba0 net/core/dev.c:4166 stack backtrace: CPU: 1 PID: 5183 Comm: syz-executor281 Not tainted 6.2.0-rc2-syzkaller-00225-g571f3dd0d01b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2990 [inline] check_deadlock kernel/locking/lockdep.c:3033 [inline] validate_chain kernel/locking/lockdep.c:3818 [inline] __lock_acquire.cold+0x116/0x3a7 kernel/locking/lockdep.c:5055 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:350 [inline] __dev_xmit_skb net/core/dev.c:3840 [inline] __dev_queue_xmit+0x3028/0x3ba0 net/core/dev.c:4215 dev_queue_xmit include/linux/netdevice.h:3035 [inline] neigh_hh_output include/net/neighbour.h:530 [inline] neigh_output include/net/neighbour.h:544 [inline] ip_finish_output2+0x14e3/0x2180 net/ipv4/ip_output.c:228 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x31/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x1a3/0x320 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:444 [inline] ip_local_out+0xb3/0x1a0 net/ipv4/ip_output.c:126 iptunnel_xmit+0x67e/0x9f0 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0xfd9/0x30f0 net/ipv4/ip_tunnel.c:813 erspan_xmit+0x11a5/0x27d0 net/ipv4/ip_gre.c:715 __netdev_start_xmit include/linux/netdevice.h:4865 [inline] netdev_start_xmit include/linux/netdevice.h:4879 [inline] xmit_one net/core/dev.c:3583 [inline] dev_hard_start_xmit+0x1c2/0x990 net/core/dev.c:3599 sch_direct_xmit+0x1a3/0xbe0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3810 [inline] __dev_queue_xmit+0x1645/0x3ba0 net/core/dev.c:4215 dev_queue_xmit include/linux/netdevice.h:3035 [inline] neigh_hh_output include/net/neighbour.h:530 [inline] neigh_output include/net/neighbour.h:544 [inline] ip_finish_output2+0x14e3/0x2180 net/ipv4/ip_output.c:228 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x31/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_mc_output+0x21f/0x710 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:444 [inline] ip_local_out+0xb3/0x1a0 net/ipv4/ip_output.c:126 iptunnel_xmit+0x67e/0x9f0 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0xfd9/0x30f0 net/ipv4/ip_tunnel.c:813 ipgre_xmit+0x6d3/0x8e0 net/ipv4/ip_gre.c:661 __netdev_start_xmit include/linux/netdevice.h:4865 [inline] netdev_start_xmit include/linux/netdevice.h:4879 [inline] xmit_one net/core/dev.c:3583 [inline] dev_hard_start_xmit+0x1c2/0x990 net/core/dev.c:3599 __dev_queue_xmit+0x2cdf/0x3ba0 net/core/dev.c:4249 dev_queue_xmit include/linux/netdevice.h:3035 [inline] __bpf_tx_skb net/core/filter.c:2117 [inline] __bpf_redirect_no_mac net/core/filter.c:2147 [inline] __bpf_redirect+0x7af/0xe80 net/core/filter.c:2170 ____bpf_clone_redirect net/core/filter.c:2437 [inline] bpf_clone_redirect+0x2b2/0x420 net/core/filter.c:2409 bpf_prog_bebbfe2050753572+0x5e/0x63 bpf_dispatcher_nop_func include/linux/bpf.h:1082 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] bpf_test_run+0x381/0x9d0 net/bpf/test_run.c:402 bpf_prog_test_run_skb+0xb60/0x1e10 net/bpf/test_run.c:1187 bpf_prog_test_run kernel/bpf/syscall.c:3644 [inline] __sys_bpf+0x1598/0x5000 kernel/bpf/syscall.c:4997 __do_sys_bpf kernel/bpf/syscall.c:5083 [inline] __se_sys_bpf kernel/bpf/syscall.c:5081 [inline] __x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5081 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7b9c581f69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd11c733f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7b9c581f69 RDX: 000000000000002c RSI: 0000000020000080 RDI: 000000000000000a RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d R10: 000000000000000d R11: 0000000000000246 R12: 00007ffd11c73410 R13: 00000000000f4240 R14: 0000000000010a70 R15: 00007ffd11c73404 syz-executor281 (5183) used greatest stack depth: 22184 bytes left