]> git.baikalelectronics.ru Git - kernel.git/commit
route: Fix caught BUG_ON during rt_secret_rebuild_oneshot()
authorVitaliy Gusev <vgusev@openvz.org>
Tue, 16 Mar 2010 01:07:51 +0000 (01:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 21:15:47 +0000 (14:15 -0700)
commit9260a19bbf8ff5012a687e3ebd590457ec91beec
treeccdb6cff136e02b47803b1fe5cec77821f6c7c9f
parent6992ebd704a90dcc5c383d4e2673a1dc99574c4e
route: Fix caught BUG_ON during rt_secret_rebuild_oneshot()

route: Fix caught BUG_ON during rt_secret_rebuild_oneshot()

Call rt_secret_rebuild can cause BUG_ON(timer_pending(&net->ipv4.rt_secret_timer)) in
add_timer as there is not any synchronization for call rt_secret_rebuild_oneshot()
for the same net namespace.

Also this issue affects to rt_secret_reschedule().

Thus use mod_timer enstead.

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c