ipv6: recursive check rt->dst.from when call rt6_check_expired
Subsystems (3)
PATCH 1/1 ipv6: recursive check rt->dst.from when call rt6_check_expired
From: Li RongQing <[email protected]>
If dst cache dst_a copies from dst_b, and dst_b copies from dst_c, check if dst_a is expired or not, we should not end with dst_a->dst.from, dst_b, we should check dst_c.
--- net/ipv6/route.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
net/ipv6/route.c +1 -5
@@ -369,15 +369,11 @@ static void ip6_dst_ifdown(struct dst_entry *dst, struct net_device *dev,static bool rt6_check_expired (const struct rt6_info *rt) { -struct rt6_info *ort =NULL ; -if (rt->rt6i_flags &RTF_EXPIRES ) {if (time_after (jiffies, rt->dst.expires))return true; }else if (rt->dst.from) { - ort = (struct rt6_info *) rt->dst.from; -return (ort->rt6i_flags &RTF_EXPIRES ) && -time_after (jiffies, ort->dst.expires); +return rt6_check_expired ((struct rt6_info *) rt->dst.from); }return false; }
Signature · 1 line
1.7.4.1
Quoted 9 lines · 于 2012年09月14日 13:54, [email protected] 写道:
From: Li RongQing <[email protected]>
If dst cache
dst_acopies fromdst_b, anddst_bcopies fromdst_c, check ifdst_ais expired or not, we should not end withdst_a->dst.from,dst_b, we should checkdst_c.CC Gao feng <[email protected]>Signed-off-by Li RongQing <[email protected]>---
Looks good to me,thanks rongqing :)
David Miller
maintainerFrom: Gao feng <[email protected]>
Date: Wed, 19 Sep 2012 16:22:22 +0800
Quoted 7 lines
Quoted 6 lines · 于 2012年09月14日 13:54, [email protected] 写道:
From: Li RongQing <[email protected]>
If dst cache
dst_acopies fromdst_b, anddst_bcopies fromdst_c, check ifdst_ais expired or not, we should not end withdst_a->dst.from,dst_b, we should checkdst_c.
Quoted 5 lines
Quoted 3 lines
CC Gao feng <[email protected]>Signed-off-by Li RongQing <[email protected]>---
Looks good to me,thanks rongqing :)
An explicit "Acked-by: " is more useful to us than simply saying it looks good.
From: [email protected]
Date: Fri, 14 Sep 2012 13:54:57 +0800
Quoted 8 lines
From: Li RongQing <[email protected]>
If dst cache
dst_acopies fromdst_b, anddst_bcopies fromdst_c, check ifdst_ais expired or not, we should not end withdst_a->dst.from,dst_b, we should checkdst_c.CC Gao feng <[email protected]>Signed-off-by Li RongQing <[email protected]>
Applied, thanks.