]> 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)
commita1bb5970b3af0e6494362a8945d6dadad7e42eb9
tree2234e8be967f350c2d39fd7c7b154ef4973e5442
parent7185d265fae51893d3f1980c692c663971f55238
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