diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2013-09-08 14:33:50 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-09-08 14:33:50 +1000 |
commit | ab1e03aa3491739b223aeef5878dc4bac6ee807f (patch) | |
tree | 9637c032c47da93c1c9851f8021129af7ca1b06a /crypto/Kconfig | |
parent | 74e9b41d85fd247c108201010eb8a2d9df1b71c6 (diff) | |
download | linux-crypto-ab1e03aa3491739b223aeef5878dc4bac6ee807f.tar.gz linux-crypto-ab1e03aa3491739b223aeef5878dc4bac6ee807f.zip |
crypto: api - Fix race condition in larval lookup
crypto_larval_lookup should only return a larval if it created one.
Any larval created by another entity must be processed through
crypto_larval_wait before being returned.
Otherwise this will lead to a larval being killed twice, which
will most likely lead to a crash.
Cc: stable@vger.kernel.org
Reported-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions