]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS]: The ip6_fib_timer can work with garbage on net namespace stop.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 21 Apr 2008 21:23:03 +0000 (14:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Apr 2008 21:23:03 +0000 (14:23 -0700)
commit86055a7d8363d1bcac8c9ecb3476e4f6d31f545b
tree29adbd9b866df063583fb438118c1c73e7e26013
parentcbc1de01d0aa0dbf7907de75ebaf9dbe79e7568a
[NETNS]: The ip6_fib_timer can work with garbage on net namespace stop.

The del_timer() function doesn't guarantee, that the timer callback
is not active by the time it exits.

Thus, the fib6_net_exit() may kfree() all the data, that is required
by the fib6_run_gc(). The race window is tiny, but slab poisoning can
trigger this bug.

Using del_timer_sync() will cure this.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c