============================================ WARNING: possible recursive locking detected 4.16.0-rc6+ #280 Not tainted -------------------------------------------- syz-executor0/30071 is trying to acquire lock: (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] spin_lock include/linux/spinlock.h:310 [inline] (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] __netif_tx_lock include/linux/netdevice.h:3573 [inline] (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 but task is already holding lock: (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] spin_lock include/linux/spinlock.h:310 [inline] (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] __netif_tx_lock include/linux/netdevice.h:3573 [inline] (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 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 9 locks held by syz-executor0/30071: #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000920d4393>] lock_sock include/net/sock.h:1465 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000920d4393>] rawv6_sendmsg+0x1d86/0x40c0 net/ipv6/raw.c:927 #1: (rcu_read_lock_bh){....}, at: [<00000000236a2ce5>] lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #1: (rcu_read_lock_bh){....}, at: [<00000000236a2ce5>] ip6_finish_output2+0x23d/0x23d0 net/ipv6/ip6_output.c:106 #2: (rcu_read_lock_bh){....}, at: [<000000007f744b5e>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3491 #3: (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] spin_lock include/linux/spinlock.h:310 [inline] #3: (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] __netif_tx_lock include/linux/netdevice.h:3573 [inline] #3: (_xmit_ETHER#2){+.-.}, at: [<0000000071e382ef>] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 #4: (rcu_read_lock){....}, at: [<000000003381f8b4>] icmpv6_send+0x0/0x280 net/ipv6/ip6_icmp.c:31 #5: (k-slock-AF_INET6){+.-.}, at: [<000000006b3ab26b>] spin_trylock include/linux/spinlock.h:320 [inline] #5: (k-slock-AF_INET6){+.-.}, at: [<000000006b3ab26b>] icmpv6_xmit_lock net/ipv6/icmp.c:119 [inline] #5: (k-slock-AF_INET6){+.-.}, at: [<000000006b3ab26b>] icmp6_send+0x125e/0x2bb0 net/ipv6/icmp.c:528 #6: (rcu_read_lock){....}, at: [<0000000027c99f1e>] icmp6_send+0x1d45/0x2bb0 net/ipv6/icmp.c:563 #7: (rcu_read_lock_bh){....}, at: [<00000000236a2ce5>] lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #7: (rcu_read_lock_bh){....}, at: [<00000000236a2ce5>] ip6_finish_output2+0x23d/0x23d0 net/ipv6/ip6_output.c:106 #8: (rcu_read_lock_bh){....}, at: [<000000007f744b5e>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3491 stack backtrace: CPU: 0 PID: 30071 Comm: syz-executor0 Not tainted 4.16.0-rc6+ #280 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_deadlock_bug kernel/locking/lockdep.c:1761 [inline] check_deadlock kernel/locking/lockdep.c:1805 [inline] validate_chain kernel/locking/lockdep.c:2401 [inline] __lock_acquire+0xe8f/0x3e00 kernel/locking/lockdep.c:3431 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:310 [inline] __netif_tx_lock include/linux/netdevice.h:3573 [inline] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 qdisc_restart net/sched/sch_generic.c:393 [inline] __qdisc_run+0x57d/0x18e0 net/sched/sch_generic.c:401 __dev_xmit_skb net/core/dev.c:3217 [inline] __dev_queue_xmit+0xb8b/0x2fc0 net/core/dev.c:3525 dev_queue_xmit+0x17/0x20 net/core/dev.c:3590 neigh_resolve_output+0x5e2/0xa00 net/core/neighbour.c:1350 neigh_output include/net/neighbour.h:482 [inline] ip6_finish_output2+0xb4a/0x23d0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x69b/0xaf0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip6_output+0x1eb/0x840 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0x95/0x160 net/ipv6/output_core.c:176 ip6_send_skb+0xa1/0x330 net/ipv6/ip6_output.c:1677 ip6_push_pending_frames+0xb3/0xe0 net/ipv6/ip6_output.c:1697 icmpv6_push_pending_frames+0x338/0x520 net/ipv6/icmp.c:288 icmp6_send+0x2252/0x2bb0 net/ipv6/icmp.c:582 icmpv6_send+0x142/0x280 net/ipv6/ip6_icmp.c:43 ip6_link_failure+0x94/0x570 net/ipv6/route.c:2102 dst_link_failure include/net/dst.h:427 [inline] ip_tunnel_xmit+0x2857/0x3550 net/ipv4/ip_tunnel.c:774 __gre_xmit+0x546/0x8b0 net/ipv4/ip_gre.c:449 erspan_xmit+0x779/0x22a0 net/ipv4/ip_gre.c:731 __netdev_start_xmit include/linux/netdevice.h:4078 [inline] netdev_start_xmit include/linux/netdevice.h:4087 [inline] xmit_one net/core/dev.c:3026 [inline] dev_hard_start_xmit+0x24e/0xac0 net/core/dev.c:3042 sch_direct_xmit+0x40d/0x1140 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:393 [inline] __qdisc_run+0x57d/0x18e0 net/sched/sch_generic.c:401 __dev_xmit_skb net/core/dev.c:3217 [inline] __dev_queue_xmit+0xb8b/0x2fc0 net/core/dev.c:3525 dev_queue_xmit+0x17/0x20 net/core/dev.c:3590 neigh_resolve_output+0x5e2/0xa00 net/core/neighbour.c:1350 neigh_output include/net/neighbour.h:482 [inline] ip6_finish_output2+0xb4a/0x23d0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x69b/0xaf0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip6_output+0x1eb/0x840 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0x95/0x160 net/ipv6/output_core.c:176 ip6_send_skb+0xa1/0x330 net/ipv6/ip6_output.c:1677 ip6_push_pending_frames+0xb3/0xe0 net/ipv6/ip6_output.c:1697 rawv6_push_pending_frames net/ipv6/raw.c:616 [inline] rawv6_sendmsg+0x2f96/0x40c0 net/ipv6/raw.c:935 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xca/0x110 net/socket.c:639 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2047 __sys_sendmsg+0xe5/0x210 net/socket.c:2081 SYSC_sendmsg net/socket.c:2092 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2088 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x454239 RSP: 002b:00007ff6080edc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff6080ee6d4 RCX: 0000000000454239 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004b9 R14: 00000000006f81f8 R15: 0000000000000000