[PATCH] crypto: sun4i-ss Fix a possible driver hang with ciphers

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2015-09-10 09:27:05
Also in
linux-crypto, lkml
Reply to
LABBE Corentin, 2015-09-09
On Wed, Sep 09, 2015 at 02:27:07PM +0200, LABBE Corentin wrote:
The sun4i_ss_opti_poll function cipher data until the output miter have
a length of 0.
If the crypto API client, give more SGs than necessary this could result
in an infinite loop.
Fix it by checking for remaining bytes, just like sun4i_ss_cipher_poll().

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Applied.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Thread (2 messages) 2 messages, 2 authors, 2015-09-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help