ipvs: fix ipv6 route unreach panic
authorAlex Gartrell <agartrell@fb.com>
Fri, 26 Jun 2015 10:18:45 +0000 (03:18 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 14 Jul 2015 07:41:27 +0000 (16:41 +0900)
commit326bf17ea5d4f8f17b54cbf167b8cb504c606ee9
tree246ceffaea4201eb2a9820da6a4a592d862b07b4
parent484836ec2de24d9a7c6471f022b746d947698725
ipvs: fix ipv6 route unreach panic

Previously there was a trivial panic

unshare -n /bin/bash <<EOF
ip addr add dev lo face::1/128
ipvsadm -A -t [face::1]:15213
ipvsadm -a -t [face::1]:15213 -r b00c::1
echo boom | nc face::1 15213
EOF

This patch allows us to replicate the net logic above and simply capture
the skb_dst(skb)->dev and use that for the purpose of the invocation.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c
This page took 0.031557 seconds and 5 git commands to generate.