Skip to contentSkip to conversation

Patch "route: check and remove route cache when we get route" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Feb 29, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

route: check and remove route cache when we get route

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
route-check-and-remove-route-cache-when-we-get-route.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From foo@baz Mon Feb 29 14:33:50 PST 2016

From: Xin Long <[email protected]>
Date: Thu, 18 Feb 2016 21:21:19 +0800
Subject: route: check and remove route cache when we get route

From: Xin Long <[email protected]>

[ 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.

---
 include/net/ip_fib.h |    1 
 net/ipv4/route.c     |   77 +++++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 64 insertions(+), 14 deletions(-)
include/net/ip_fib.h +1 -0
@@ -61,6 +61,7 @@ struct fib_nh_exception {
 	struct rtable __rcu		*fnhe_rth_input;
 	struct rtable __rcu		*fnhe_rth_output;
 	unsigned long			fnhe_stamp;
+	struct rcu_head			rcu;
 };
 
 struct fnhe_hash_bucket {
net/ipv4/route.c +63 -14

119 lines not on this page · raw message

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/sctp-translate-network-order-to-host-order-when-users-get-a-hmacid.patch queue-4.4/route-check-and-remove-route-cache-when-we-get-route.patch