]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cryptd - Fix AEAD request context corruption
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 6 Jul 2015 11:11:03 +0000 (19:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jul 2015 13:54:26 +0000 (21:54 +0800)
commitb12aefba729581898d7b3064fe747562a9599002
tree4e331d6bde27e17aaa681caec70e412e0317ff53
parent2b11885fa9d2863448bb91a8c0590a8f49139018
crypto: cryptd - Fix AEAD request context corruption

The AEAD version of cryptd uses the same context for its own state
as well as that of the child.  In doing so it did not maintain the
proper ordering, thus resulting in potential state corruption where
the child will overwrite the state stored by cryptd.

This patch fixes and also sets the request size properly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c