diff options
| author | Stephan Mueller <smueller@chronox.de> | 2017-04-24 11:15:23 +0200 |
|---|---|---|
| committer | Sasha Levin <alexander.levin@verizon.com> | 2017-06-13 09:29:21 -0400 |
| commit | 358fa411ba9a40c1d78c3ec85e95343bc415c5d8 (patch) | |
| tree | d6d0937b15687654fe951418afda47efa075c3e1 /kernel/sysctl_binary.c | |
| parent | e0b7d5eae185f302b319cd9f7319584b27ed83b2 (diff) | |
crypto: algif_aead - Require setkey before accept(2)
[ Upstream commit 2a2a251f110576b1d89efbd0662677d7e7db21a8 ]
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.
Fixes: 400c40cf78da ("crypto: algif - add AEAD support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
