summaryrefslogtreecommitdiffstats
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorHerbert Xu2015-12-25 08:40:05 +0100
committerHerbert Xu2016-01-18 11:16:07 +0100
commitdd504589577d8e8e70f51f997ad487a4cb6c026f (patch)
treeaee0252230997a1e6d2244b69f2f6494aeba3ced /crypto/af_alg.c
parentMerge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert... (diff)
downloadkernel-qcow2-linux-dd504589577d8e8e70f51f997ad487a4cb6c026f.tar.gz
kernel-qcow2-linux-dd504589577d8e8e70f51f997ad487a4cb6c026f.tar.xz
kernel-qcow2-linux-dd504589577d8e8e70f51f997ad487a4cb6c026f.zip
crypto: algif_skcipher - Require setkey before accept(2)
Some cipher implementations will crash if you try to use them without calling setkey first. This patch adds a check so that the accept(2) call will fail with -ENOKEY if setkey hasn't been done on the socket yet. Cc: stable@vger.kernel.org Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Dmitry Vyukov <dvyukov@google.com>
Diffstat (limited to 'crypto/af_alg.c')
0 files changed, 0 insertions, 0 deletions