diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-08 21:31:04 +0800 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-02-03 16:23:19 -0500 |
commit | e1ed9a4b4380fc33c558a0c1bd7cbf527e891151 (patch) | |
tree | a23c848bc42e289a5c996dea4dc5e0878cde0e2b /include | |
parent | c409087e6db988257adffb614616764116c7337e (diff) |
crypto: algif_hash - Require setkey before accept(2)
[ Upstream commit 6de62f15b581f920ade22d758f4c338311c2f0d4 ]
Hash implementations that require a key may crash if you use
them without setting a key. This patch adds the necessary checks
so that if you do attempt to use them without a key that we return
-ENOKEY instead of proceeding.
This patch also adds a compatibility path to support old applications
that do acept(2) before setkey.
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions