Home
last modified time | relevance | path

Searched hist:"6454 c2b8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/crypto/
H A Dalgif_skcipher.c6454c2b8 Wed Feb 03 07:39:26 CST 2016 Herbert Xu <herbert@gondor.apana.org.au> crypto: algif_skcipher - Do not dereference ctx without socket lock

Any access to non-constant bits of the private context must be
done under the socket lock, in particular, this includes ctx->req.

This patch moves such accesses under the lock, and fetches the
tfm from the parent socket which is guaranteed to be constant,
rather than from ctx->req.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
6454c2b8 Wed Feb 03 07:39:26 CST 2016 Herbert Xu <herbert@gondor.apana.org.au> crypto: algif_skcipher - Do not dereference ctx without socket lock

Any access to non-constant bits of the private context must be
done under the socket lock, in particular, this includes ctx->req.

This patch moves such accesses under the lock, and fetches the
tfm from the parent socket which is guaranteed to be constant,
rather than from ctx->req.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>