]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv4: Do not use dead fib_info entries.
authorDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 02:16:32 +0000 (22:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:33:02 +0000 (00:33 +0900)
commitf77baf324713ef5d6ae9ae63a77aed2bfbe4333d
treeea8fd9421579024b5a49ae883fbf75dae21e3901
parent166ab4d1f2a1fae8f2cbe43da0e35befadc1e90b
ipv4: Do not use dead fib_info entries.

[ Upstream commit dccd9ecc374462e5d6a5b8f8110415a86c2213d8 ]

Due to RCU lookups and RCU based release, fib_info objects can
be found during lookup which have fi->fib_dead set.

We must ignore these entries, otherwise we risk dereferencing
the parts of the entry which are being torn down.

Reported-by: Yevgen Pronenko <yevgen.pronenko@sonymobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/fib_trie.c