xfrm: Fix a race in the xdst pcpu cache.
commit 76a42011 upstream. 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> Acked-by: David Miller <davem@davemloft.net>, Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
Please register or sign in to comment