]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: Fix skcipher/shash conversion
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 3 Apr 2016 04:37:15 +0000 (12:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 4 Apr 2016 13:45:51 +0000 (21:45 +0800)
commit17bbdadac0cacca8cb9b23a6ad789ab1b364cd3f
tree99fc4f1518315e72c089626567a07dfd964c78ef
parent4358ad30b78a3e000ac991e7bd80536e53e71f4e
sunrpc: Fix skcipher/shash conversion

The skcpiher/shash conversion introduced a number of bugs in the
sunrpc code:

1) Missing calls to skcipher_request_set_tfm lead to crashes.
2) The allocation size of shash_desc is too small which leads to
memory corruption.

Fixes: b0c8119263e0 ("sunrpc: Use skcipher and ahash/shash")
Reported-by: J. Bruce Fields <bfields@fieldses.org>
Tested-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_krb5_mech.c