From: Alex Gartrell Date: Fri, 26 Jun 2015 10:18:45 +0000 (-0700) Subject: ipvs: fix ipv6 route unreach panic X-Git-Tag: v4.2-rc5~9^2~36^2~1^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=326bf17ea5d4f8f17b54cbf167b8cb504c606ee9;p=karo-tx-linux.git ipvs: fix ipv6 route unreach panic Previously there was a trivial panic unshare -n /bin/bash <dev and use that for the purpose of the invocation. Signed-off-by: Alex Gartrell Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index bf66a8657a5f..b99d80695b1f 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c @@ -505,6 +505,13 @@ err_put: return -1; err_unreach: + /* The ip6_link_failure function requires the dev field to be set + * in order to get the net (further for the sake of fwmark + * reflection). + */ + if (!skb->dev) + skb->dev = skb_dst(skb)->dev; + dst_link_failure(skb); return -1; }