]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: IDLETIMER: fix race condition when destroy the target
authorLiping Zhang <liping.zhang@spreadtrum.com>
Thu, 21 Apr 2016 07:47:08 +0000 (00:47 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 29 Apr 2016 12:28:48 +0000 (14:28 +0200)
commit1b7d6876f1f911fe89ab365bb31dfd483c9a244d
tree2234e8be967f350c2d39fd7c7b154ef4973e5442
parent9aa3e93961baf26006b3a527a3dd4d04f8e1e00e
netfilter: IDLETIMER: fix race condition when destroy the target

Workqueue maybe still in running while we destroy the IDLETIMER target,
thus cause a use after free error, add cancel_work_sync() to avoid such
situation.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_IDLETIMER.c