diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-07 22:15:17 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-11 16:48:39 +0800 |
commit | 4e81fac9e408af918dab23aac87acf72b30f3d08 (patch) | |
tree | bd5036bd788933587f14c8678d8552dfa5503989 /crypto/keywrap.c | |
parent | bc1d8cb6169a2deb7dbcad8ac6ed8ade1bc2bb05 (diff) | |
download | linux-crypto-4e81fac9e408af918dab23aac87acf72b30f3d08.tar.gz linux-crypto-4e81fac9e408af918dab23aac87acf72b30f3d08.zip |
crypto: api - Do not zap spawn->alg
Currently when a spawn is removed we will zap its alg field.
This is racy because the spawn could belong to an unregistered
instance which may dereference the spawn->alg field.
This patch fixes this by keeping spawn->alg constant and instead
adding a new spawn->dead field to indicate that a spawn is going
away.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/keywrap.c')
0 files changed, 0 insertions, 0 deletions