IPVS: set_ctl: invalid protocol: 231 172.20.20.26:20000 lblc ============================================ WARNING: possible recursive locking detected 4.16.0-rc6+ #289 Not tainted -------------------------------------------- syz-executor4/16525 is trying to acquire lock: (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] spin_lock include/linux/spinlock.h:310 [inline] (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] __netif_tx_lock include/linux/netdevice.h:3582 [inline] (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 but task is already holding lock: kernel msg: ebtables bug: please report to author: entry offsets not in right order (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] spin_lock include/linux/spinlock.h:310 [inline] (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] __netif_tx_lock include/linux/netdevice.h:3582 [inline] (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] 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 11 locks held by syz-executor4/16525: #0: (sk_lock-AF_INET){+.+.}, at: [<00000000b19cf61b>] lock_sock include/net/sock.h:1465 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000b19cf61b>] sctp_sendmsg+0xb3e/0x1ad0 net/sctp/socket.c:2027 #1: (rcu_read_lock){....}, at: [<000000006c76a8ef>] read_pnet include/net/net_namespace.h:288 [inline] #1: (rcu_read_lock){....}, at: [<000000006c76a8ef>] sock_net include/net/sock.h:2302 [inline] #1: (rcu_read_lock){....}, at: [<000000006c76a8ef>] ip_queue_xmit+0x9e/0x1920 net/ipv4/ip_output.c:429 #2: (rcu_read_lock_bh){....}, at: [<00000000c8790eca>] lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #2: (rcu_read_lock_bh){....}, at: [<00000000c8790eca>] ip_finish_output2+0x2aa/0x1550 net/ipv4/ip_output.c:213 #3: (rcu_read_lock_bh){....}, at: [<000000002a44e7d4>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3518 #4: (rcu_read_lock){....}, at: [<00000000c4772698>] br_dev_xmit+0x11d/0x1550 net/bridge/br_device.c:43 #5: (rcu_read_lock_bh){....}, at: [<000000002a44e7d4>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3518 #6: (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] spin_lock include/linux/spinlock.h:310 [inline] #6: (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] __netif_tx_lock include/linux/netdevice.h:3582 [inline] #6: (_xmit_ETHER#2){+.-.}, at: [<00000000d12c560b>] sch_direct_xmit+0x361/0x1140 net/sched/sch_generic.c:325 #7: (rcu_read_lock_bh){....}, at: [<00000000c8790eca>] lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #7: (rcu_read_lock_bh){....}, at: [<00000000c8790eca>] ip_finish_output2+0x2aa/0x1550 net/ipv4/ip_output.c:213 #8: (rcu_read_lock_bh){....}, at: [<000000002a44e7d4>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3518 #9: (rcu_read_lock){....}, at: [<00000000c4772698>] br_dev_xmit+0x11d/0x1550 net/bridge/br_device.c:43 #10: (rcu_read_lock_bh){....}, at: [<000000002a44e7d4>] __dev_queue_xmit+0x2fe/0x2fc0 net/core/dev.c:3518 stack backtrace: CPU: 1 PID: 16525 Comm: syz-executor4 Not tainted 4.16.0-rc6+ #289 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:3582 [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:3244 [inline] __dev_queue_xmit+0xb8b/0x2fc0 net/core/dev.c:3552 dev_queue_xmit+0x17/0x20 net/core/dev.c:3617 br_dev_queue_push_xmit+0x196/0x5a0 net/bridge/br_forward.c:55 NF_HOOK include/linux/netfilter.h:288 [inline] br_forward_finish+0xc8/0x530 net/bridge/br_forward.c:67 NF_HOOK include/linux/netfilter.h:288 [inline] __br_forward+0x533/0xc80 net/bridge/br_forward.c:112 br_flood+0x665/0x770 net/bridge/br_forward.c:225 br_dev_xmit+0xa68/0x1550 net/bridge/br_device.c:87 __netdev_start_xmit include/linux/netdevice.h:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x24e/0xac0 net/core/dev.c:3069 __dev_queue_xmit+0x26bf/0x2fc0 net/core/dev.c:3584 dev_queue_xmit+0x17/0x20 net/core/dev.c:3617 neigh_hh_output include/net/neighbour.h:472 [inline] neigh_output include/net/neighbour.h:480 [inline] ip_finish_output2+0xf4d/0x1550 net/ipv4/ip_output.c:229 ip_finish_output+0x864/0xd60 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_mc_output+0x271/0x1350 net/ipv4/ip_output.c:390 dst_output include/net/dst.h:444 [inline] ip_local_out+0x95/0x160 net/ipv4/ip_output.c:124 iptunnel_xmit+0x556/0x810 net/ipv4/ip_tunnel_core.c:91 ip_tunnel_xmit+0x177b/0x3550 net/ipv4/ip_tunnel.c:768 __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:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x24e/0xac0 net/core/dev.c:3069 IPVS: set_ctl: invalid protocol: 231 172.20.20.26:20000 lblc 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:3244 [inline] __dev_queue_xmit+0xb8b/0x2fc0 net/core/dev.c:3552 dev_queue_xmit+0x17/0x20 net/core/dev.c:3617 br_dev_queue_push_xmit+0x196/0x5a0 net/bridge/br_forward.c:55 NF_HOOK include/linux/netfilter.h:288 [inline] br_forward_finish+0xc8/0x530 net/bridge/br_forward.c:67 NF_HOOK include/linux/netfilter.h:288 [inline] __br_forward+0x533/0xc80 net/bridge/br_forward.c:112 br_flood+0x665/0x770 net/bridge/br_forward.c:225 br_dev_xmit+0xa68/0x1550 net/bridge/br_device.c:87 __netdev_start_xmit include/linux/netdevice.h:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x24e/0xac0 net/core/dev.c:3069 __dev_queue_xmit+0x26bf/0x2fc0 net/core/dev.c:3584 dev_queue_xmit+0x17/0x20 net/core/dev.c:3617 neigh_resolve_output+0x5e2/0xa00 net/core/neighbour.c:1350 neigh_output include/net/neighbour.h:482 [inline] ip_finish_output2+0x91a/0x1550 net/ipv4/ip_output.c:229 ip_finish_output+0x864/0xd60 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_mc_output+0x271/0x1350 net/ipv4/ip_output.c:390 dst_output include/net/dst.h:444 [inline] ip_local_out+0x95/0x160 net/ipv4/ip_output.c:124 ip_queue_xmit+0x8c0/0x1920 net/ipv4/ip_output.c:504 sctp_v4_xmit+0x108/0x140 net/sctp/protocol.c:942 sctp_packet_transmit+0x22a5/0x37c0 net/sctp/output.c:642 sctp_outq_flush+0xabb/0x4060 net/sctp/outqueue.c:911 sctp_outq_uncork+0x5a/0x70 net/sctp/outqueue.c:776 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline] sctp_do_sm+0x4e0/0x7040 net/sctp/sm_sideeffect.c:1191 sctp_primitive_ASSOCIATE+0x9d/0xd0 net/sctp/primitive.c:88 sctp_sendmsg_to_asoc+0x14bf/0x1ec0 net/sctp/socket.c:1900 sctp_sendmsg+0xc50/0x1ad0 net/sctp/socket.c:2088 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:0x454e79 RSP: 002b:00007f3c6704ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f3c6704f6d4 RCX: 0000000000454e79 RDX: 0000000000000040 RSI: 0000000020001f00 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004e3 R14: 00000000006f95e8 R15: 0000000000000000