bsdacct: use del_timer_sync() in acct_exit_ns()
authorVitaliy Gusev <vgusev@openvz.org>
Tue, 11 May 2010 21:06:56 +0000 (14:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 May 2010 00:33:42 +0000 (17:33 -0700)
commit11cad320a4f4bc53d3585c85600c782faa12b99e
tree6e246590d7905d42b7e298817e1df90381a1e9e4
parentab941e0fff3947b6dcc9c578d918d1bba54a6874
bsdacct: use del_timer_sync() in acct_exit_ns()

acct_exit_ns --> acct_file_reopen deletes timer without check timer
execution on other CPUs.  So acct_timeout() can change an unmapped memory.

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c