diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-08 14:31:04 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-18 11:16:11 +0100 |
commit | 6de62f15b581f920ade22d758f4c338311c2f0d4 (patch) | |
tree | d896de006eb54d7cafbf16dce5ce8da46462780b /arch/x86/oprofile | |
parent | crypto: hash - Add crypto_ahash_has_setkey (diff) | |
download | linux-6de62f15b581f920ade22d758f4c338311c2f0d4.tar.xz linux-6de62f15b581f920ade22d758f4c338311c2f0d4.zip |
crypto: algif_hash - Require setkey before accept(2)
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>
Diffstat (limited to 'arch/x86/oprofile')
0 files changed, 0 insertions, 0 deletions