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: 3b5cf20c ("sunrpc: Use skcipher and ahash/shash") Reported-by: NJ. Bruce Fields <bfields@fieldses.org> Tested-by: NJ. Bruce Fields <bfields@fieldses.org> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Showing
想要评论请 注册 或 登录