summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorTom Goff <thomas.goff@ll.mit.edu>2016-06-23 16:11:57 -0400
committerBen Hutchings <ben@decadent.org.uk>2017-03-16 02:18:52 +0000
commit093582b9b161c768f2038332d1cce5fbd696820e (patch)
tree11265ddf1bd22fca4480519e4cdbe4299b9a372d /net/ipv4/ipmr.c
parent91fbc717f3f738ce274e79bd3d52e688f483497b (diff)
downloadlinux-stable-093582b9b161c768f2038332d1cce5fbd696820e.tar.gz
linux-stable-093582b9b161c768f2038332d1cce5fbd696820e.tar.bz2
linux-stable-093582b9b161c768f2038332d1cce5fbd696820e.zip
ipmr/ip6mr: Initialize the last assert time of mfc entries.
[ Upstream commit 70a0dec45174c976c64b4c8c1d0898581f759948 ] This fixes wrong-interface signaling on 32-bit platforms for entries created when jiffies > 2^31 + MFC_ASSERT_THRESH. Signed-off-by: Tom Goff <thomas.goff@ll.mit.edu> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 6558a9182793..86af7fe49240 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -830,8 +830,10 @@ static struct mfc_cache *ipmr_cache_alloc(void)
{
struct mfc_cache *c = kmem_cache_zalloc(mrt_cachep, GFP_KERNEL);
- if (c)
+ if (c) {
+ c->mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
c->mfc_un.res.minvif = MAXVIFS;
+ }
return c;
}