]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix unlink race when policies are deleted.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2014 09:07:34 +0000 (10:07 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 26 Feb 2014 08:52:02 +0000 (09:52 +0100)
commit19f2f69cf0b90703eab4cf56274020da4f4d55f0
tree29319c7ec9ab7035398c1bef2bdbccd3cee718a2
parent3303a98fdeacafc4ca7f760b987ed2409b653779
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 <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c