ipv4: Don't report stale pmtu values to userspace
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Oct 2012 00:56:54 +0000 (00:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:56:16 +0000 (10:56 -0700)
commit0dbade79f4fbb1035c3c846cdd358a67db67a2ce
tree4341487a2dac31d7104d6ac45f398d938763eaf9
parent2db8263a627414aa2f6a60f80ec99178f12f757b
ipv4: Don't report stale pmtu values to userspace

[ Upstream commit ee9a8f7ab2edf801b8b514c310455c94acc232f6 ]

We report cached pmtu values even if they are already expired.
Change this to not report these values after they are expired
and fix a race in the expire time calculation, as suggested by
Eric Dumazet.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c