xfrm: policy: use hlist rcu variants on insert
commit11896963b7b5977616b2010e89d532559950de73
authorFlorian Westphal <fw@strlen.de>
Wed, 10 Oct 2018 16:02:21 +0000 (10 18:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:14:50 +0000 (13 11:14 -0800)
tree2b12a8b4faf40ef28f53e36ffa955d001e86d2f0
parent0c7cd9fe35497975c9590accd84273a4f95fb1e6
xfrm: policy: use hlist rcu variants on insert

[ Upstream commit 9dffff200fd178f11dd50eb1fd8ccd0650c9284e ]

bydst table/list lookups use rcu, so insertions must use rcu versions.

Fixes: a7c44247f704e ("xfrm: policy: make xfrm_policy_lookup_bytype lockless")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/xfrm/xfrm_policy.c