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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 02:16:32 +0000 (22:16 -0400)
commitdccd9ecc374462e5d6a5b8f8110415a86c2213d8
tree92985101d752308885e7b29678dc9845eabea0d6
parent0e0c55165b638e96c8d7097ea638aa368daa268a
ipv4: Do not use dead fib_info entries.

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>
net/ipv4/fib_trie.c