From: Kazunori Miyazawa <kazunori@miyazawa.org>
[XFRM] Call dst_check() with appropriate cookie This fixes infinite loop issue with IPv6 tunnel mode. Signed-off-by: Kazunori Miyazawa <kazunori@miyazawa.org> Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2f872f0401
commit
92d63decc0
@@ -1136,7 +1136,7 @@ int xfrm_bundle_ok(struct xfrm_dst *first, struct flowi *fl, int family)
|
||||
struct xfrm_dst *last;
|
||||
u32 mtu;
|
||||
|
||||
if (!dst_check(dst->path, 0) ||
|
||||
if (!dst_check(dst->path, ((struct xfrm_dst *)dst)->path_cookie) ||
|
||||
(dst->dev && !netif_running(dst->dev)))
|
||||
return 0;
|
||||
|
||||
@@ -1156,7 +1156,7 @@ int xfrm_bundle_ok(struct xfrm_dst *first, struct flowi *fl, int family)
|
||||
xdst->child_mtu_cached = mtu;
|
||||
}
|
||||
|
||||
if (!dst_check(xdst->route, 0))
|
||||
if (!dst_check(xdst->route, xdst->route_cookie))
|
||||
return 0;
|
||||
mtu = dst_mtu(xdst->route);
|
||||
if (xdst->route_mtu_cached != mtu) {
|
||||
|
Reference in New Issue
Block a user