]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix a race in the xdst pcpu cache.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 10 Jan 2018 11:14:28 +0000 (12:14 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 10 Jan 2018 11:14:28 +0000 (12:14 +0100)
commit1b86eb8c1fdf7640a98c2892675c9a8692d1d2da
tree4b0ebc8c3049929f91b2a37d0d0fbfccbbefd407
parentacc09da50173145309f43e340fd0e0ddac58fe14
xfrm: Fix a race in the xdst pcpu cache.

We need to run xfrm_resolve_and_create_bundle() with
bottom halves off. Otherwise we may reuse an already
released dst_enty when the xfrm lookup functions are
called from process context.

Fixes: c30d78c14a813db39a647b6a348b428 ("xfrm: add xdst pcpu cache")
Reported-by: Darius Ski <darius.ski@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c