]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
route: check and remove route cache when we get route
authorXin Long <lucien.xin@gmail.com>
Thu, 18 Feb 2016 13:21:19 +0000 (21:21 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:51 +0000 (10:25 -0500)
commit1610a64d0c495cd84d848e5ff4e92f1f9f0ec6e5
tree5041d070fd1fd2ad1d7f447f31ee9aa251cf1d5d
parentdda12d1bb3534b095c3d3e537e081339e0b7192f
route: check and remove route cache when we get route

[ Upstream commit deed49df7390d5239024199e249190328f1651e7 ]

Since the gc of ipv4 route was removed, the route cached would has
no chance to be removed, and even it has been timeout, it still could
be used, cause no code to check it's expires.

Fix this issue by checking  and removing route cache when we get route.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
include/net/ip_fib.h
net/ipv4/route.c