]> git.karo-electronics.de Git - linux-beck.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)
commitcec5913c1515e5619907016658838af4eff78dd3
tree2234e8be967f350c2d39fd7c7b154ef4973e5442
parent70d72b7e060e0a16b9ded9d0fbd3dff109743de3
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