From: Thomas Graf Date: Thu, 14 Jun 2012 23:00:17 +0000 (+0000) Subject: ipv6: Prevent access to uninitialized fib_table_hash via /proc/net/ipv6_route X-Git-Tag: v3.5-rc5~17^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0c451ade8e1783c5d453948289e4a978d417c9;p=pandora-kernel.git ipv6: Prevent access to uninitialized fib_table_hash via /proc/net/ipv6_route /proc/net/ipv6_route reflects the contents of fib_table_hash. The proc handler is installed in ip6_route_net_init() whereas fib_table_hash is allocated in fib6_net_init() _after_ the proc handler has been installed. This opens up a short time frame to access fib_table_hash with its pants down. fib6_init() as a whole can't be moved to an earlier position as it also registers the rtnetlink message handlers which should be registered at the end. Therefore split it into fib6_init() which is run early and fib6_init_late() to register the rtnetlink message handlers. Signed-off-by: Thomas Graf Reviewed-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed