Re: [PATCH] crypto: ccp - memset request context to zero during import

2016-02-27 Thread Herbert Xu
On Thu, Feb 25, 2016 at 04:48:13PM -0600, Tom Lendacky wrote: > Since a crypto_ahash_import() can be called against a request context > that has not had a crypto_ahash_init() performed, the request context > needs to be cleared to insure there is no random data present. If not, > the random data

[PATCH] crypto: ccp - memset request context to zero during import

2016-02-25 Thread Tom Lendacky
Since a crypto_ahash_import() can be called against a request context that has not had a crypto_ahash_init() performed, the request context needs to be cleared to insure there is no random data present. If not, the random data can result in a kernel oops during crypto_ahash_update(). Cc: