diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-12-25 15:40:05 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-17 12:31:02 -0800 |
commit | b238717c0bb4606e2e36fc0de745306b0c900d83 (patch) | |
tree | 09901af0ecd5e9e3d1bd9e07228cbbabd4774f3a /crypto/memneq.c | |
parent | a800cbddbc2042b042491867e96e2f3c5c0d3e3b (diff) |
crypto: algif_skcipher - Require setkey before accept(2)
commit dd504589577d8e8e70f51f997ad487a4cb6c026f upstream.
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.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/memneq.c')
0 files changed, 0 insertions, 0 deletions