From: Steffen Klassert Date: Wed, 19 Feb 2014 09:07:34 +0000 (+0100) Subject: xfrm: Fix unlink race when policies are deleted. X-Git-Tag: v3.14-rc6~30^2~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9016f97fdc8bfbb26ff36ba8f3dc9162eb691b;p=pandora-kernel.git xfrm: Fix unlink race when policies are deleted. When a policy is unlinked from the lists in thread context, the xfrm timer can fire before we can mark this policy as dead. So reinitialize the bydst hlist, then hlist_unhashed() will notice that this policy is not linked and will avoid a doulble unlink of that policy. Reported-by: Xianpeng Zhao <673321875@qq.com> Signed-off-by: Steffen Klassert --- Reading git-diff-tree failed