]> git.baikalelectronics.ru Git - kernel.git/commit
af_key: Do not call xfrm_probe_algs in parallel
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Aug 2022 10:03:46 +0000 (18:03 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 5 Aug 2022 08:22:14 +0000 (10:22 +0200)
commit8b438f5104274306985bf6b65f3c8dd0752a5e10
tree6545950098ca9ffbab9ff4c0e48f6c6abcf6313b
parent7bac695a2b182b0de54329af74b440c50b0ea4f1
af_key: Do not call xfrm_probe_algs in parallel

When namespace support was added to xfrm/afkey, it caused the
previously single-threaded call to xfrm_probe_algs to become
multi-threaded.  This is buggy and needs to be fixed with a mutex.

Reported-by: Abhishek Shah <abhishek.shah@columbia.edu>
Fixes: 6e88ae692c21 ("xfrm: Namespacify xfrm state/policy locks")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/key/af_key.c