summaryrefslogtreecommitdiff
path: root/crypto/xcbc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-02-03 21:39:26 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 15:23:55 +0800
commit200c6f29cd31c466433420d5cddcad1201b2a79a (patch)
tree1dd21bc0bba822ab9bdd007175a6d80641822b9a /crypto/xcbc.c
parent5290ac69bd1d735d4cb02b518c8c098073ef3db2 (diff)
downloadlinux-crypto-200c6f29cd31c466433420d5cddcad1201b2a79a.tar.gz
linux-crypto-200c6f29cd31c466433420d5cddcad1201b2a79a.zip
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>
Diffstat (limited to 'crypto/xcbc.c')
0 files changed, 0 insertions, 0 deletions