summaryrefslogtreecommitdiff
path: root/crypto/eseqiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2013-09-08 14:33:50 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2013-09-08 14:33:50 +1000
commitab1e03aa3491739b223aeef5878dc4bac6ee807f (patch)
tree9637c032c47da93c1c9851f8021129af7ca1b06a /crypto/eseqiv.c
parent74e9b41d85fd247c108201010eb8a2d9df1b71c6 (diff)
downloadlinux-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