diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-27 17:29:39 +0300 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:01 +0200 |
| commit | 570f46919b474cbcd8f6880d89e3ab40ddb5f206 (patch) | |
| tree | ff0ae3a8ad76296a5c97d607c07859e83b423155 /include | |
| parent | 1b7a8ec10acd4e767c0ea952693a4aa16b7a016c (diff) | |
crypto: algif_hash - Require setkey before accept(2)
commit 6de62f15b581f920ade22d758f4c338311c2f0d4 upstream.
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: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
