Skip to content
Snippets Groups Projects
Commit 70e90679 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

af_key: mark policy as dead before destroying


xfrm_policy_destroy() will oops if not dead policy is passed to it.
On error path in pfkey_compile_policy() exactly this happens.

Oopsable for CAP_NET_ADMIN owners.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4bab0ea1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment