Revert "xfrm: policy: Read seqcount outside of rcu-read side in xfrm_policy_lookup_by...
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 2 Jul 2021 07:20:22 +0000 (09:20 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 2 Jul 2021 07:20:22 +0000 (09:20 +0200)
commiteaf228263921cd15962654b539d916380a0f076e
treeb97867b047965e8ca0c2b3c5b7386986918f7486
parent7c1a80e80cde008f271bae630d28cf684351e807
Revert "xfrm: policy: Read seqcount outside of rcu-read side in xfrm_policy_lookup_bytype"

This reverts commit d7b0408934c749f546b01f2b33d07421a49b6f3e.

This commit tried to fix a locking bug introduced by commit 77cc278f7b20
("xfrm: policy: Use sequence counters with associated lock"). As it
turned out, this patch did not really fix the bug. A proper fix
for this bug is applied on top of this revert.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c