Files
Thomas Graf bb6c2337ae ipv6: Move ipv6 proc file registration to end of init order
[ Upstream commit d189634eca ]

/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.

Move the registration of the proc files to a later point in the init
order to avoid the race.

Tested :-)

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2012-07-12 04:32:16 +01:00
..
2011-11-12 18:13:32 -05:00
2011-10-13 16:05:07 -04:00
2011-10-19 19:26:16 -04:00
2010-05-11 14:40:55 +02:00
2011-04-22 11:04:14 -07:00
2011-11-23 03:51:54 -05:00
2010-10-25 13:09:45 -07:00
2011-12-01 14:12:55 -05:00