]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix crashes in fib_rules_tclass().
authorDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 01:05:28 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 01:05:28 +0000 (18:05 -0700)
commit2d96a18b551d7a0922a9d40e303181611879ed7a
tree96901e4acad88432a7359bc5fc74c14782f6065b
parent86ea3b96b1daa1c2dd67578e1cb56214956f47b9
ipv4: Fix crashes in fib_rules_tclass().

All paths assume, when CONFIG_IP_MULTIPLE_TABLES is enabled, that any
successful call to fib_lookup() will initialize the fib_result->r
value to something.

We violated that expectation in the new fib_lookup() fast path.

Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Tested-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h