1
0
Files
linux/net/ipv6
Li Wei 8253947e2c ipv6: fix incorrect route 'expires' value passed to userspace
When userspace use RTM_GETROUTE to dump route table, with an already
expired route entry, we always got an 'expires' value(2147157)
calculated base on INT_MAX.

The reason of this problem is in the following satement:
	rt->dst.expires - jiffies < INT_MAX
gcc promoted the type of both sides of '<' to unsigned long, thus
a small negative value would be considered greater than INT_MAX.

With the help of Eric Dumazet, do the out of bound checks in
rtnl_put_cacheinfo(), _after_ conversion to clock_t.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-07-29 23:18:31 -07:00
..
2012-07-18 11:28:46 -07:00
2012-05-18 02:24:13 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-06-04 11:45:11 -04:00
2012-07-26 15:50:39 -07:00
2012-07-18 11:28:46 -07:00
2012-06-27 15:36:44 -07:00
2012-05-15 13:13:34 -04:00
2012-01-17 23:56:18 -05:00
2012-07-19 10:55:36 -07:00
2012-07-26 15:50:39 -07:00
2011-11-22 16:43:32 -05:00