On Friday, April 18, 2014 at 12:01:42 PM, Horia Geanta wrote:
> GFP_ATOMIC memory allocation could fail.
> In this case, avoid NULL pointer dereference and notify user.
>
> Cc: # 3.2+
If I recall correctly, you need to get the patch accepted into mainline before
sending it for -stable .
> Cc:
On Monday, April 21, 2014 at 08:46:40 PM, Christian Engelmayer wrote:
> Fix a potential memory leak in the error handling of test_aead_speed(). In
> case crypto_alloc_aead() fails, the function returns without going through
> the centralized cleanup path. Reported by Coverity - CID 1163870.
>
> Si
On Monday, April 21, 2014 at 08:45:59 PM, Christian Engelmayer wrote:
> Fix a potential memory leak in the error handling of test_aead_speed(). In
> case the size check on the associate data length parameter fails, the
> function goes through the wrong exit label. Reported by Coverity - CID
> 11638
On Friday, April 18, 2014 at 12:01:41 PM, Horia Geanta wrote:
> In case hash key is bigger than algorithm block size, it is hashed.
> In this case, memory is allocated to keep this hash in hashed_key.
> hashed_key has to be freed on the key_dma dma mapping error path.
>
> Cc: # 3.10+
> Signed-off
On Monday, April 21, 2014 at 08:47:05 PM, Christian Engelmayer wrote:
> Fix leakage of memory for struct aead_request that is allocated via
> aead_request_alloc() but not released via aead_request_free().
> Reported by Coverity - CID 1163869.
>
> Signed-off-by: Christian Engelmayer
Reviewed-by:
This is unlikely to be exploitable for anything except an OOPS.
Cc: sta...@vger.kernel.org
Signed-off-by: Andy Lutomirski
---
Notes:
This is entirely untested, but it looks obviously correct to me.
crypto/crypto_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cry
The block size of aes cfb8 mode shoule be 8 bit.
Signed-off-by: Leilei Zhao
---
drivers/crypto/atmel-aes.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index d7c9e31..12628a7 100644
--- a/drivers/crypto/atmel-aes.c
The length shoule be 64 bit alignment and the block size shoule be 64 bit in
aes cfb64 mode.
Signed-off-by: Leilei Zhao
---
drivers/crypto/atmel-aes.c |6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 12628a7..a083474 1006
Hi:
These two patches correct the block size in atmel-aes driver while processing
cfb8 and cfb64 mode of aes.
Thanks
Leilei Zhao (2):
crypto: atmel-aes: correct block size of cfb8 mode
crypto: atmel-aes: check alignment of cfb64 mode
drivers/crypto/atmel-aes.c |8 +++-
1 file chan