]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipmr/ip6mr: prevent out-of-bounds vif_table access
authorNicolas Dichtel <nicolas.dichtel@dev.6wind.com>
Thu, 25 Mar 2010 23:45:35 +0000 (23:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 15:33:21 +0000 (08:33 -0700)
commit6abca4fdd5f272bd699f2cc8fc169dcaa9651ec6
tree6627b63b785df9175e04a0ce1b49d5eea8ea0777
parent2757203c56756f4d6787111be451218ddc4181fe
net: ipmr/ip6mr: prevent out-of-bounds vif_table access

When cache is unresolved, c->mf[6]c_parent is set to 65535 and
minvif, maxvif are not initialized, hence we must avoid to
parse IIF and OIF.
A second problem can happen when the user dumps a cache entry
where a VIF, that was referenced at creation time, has been
removed.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c
net/ipv6/ip6mr.c