]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] tcrypt: Catch cipher destination memory corruption
authorPatrick McHardy <kaber@trash.net>
Thu, 8 May 2008 11:27:47 +0000 (19:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jul 2008 12:35:12 +0000 (20:35 +0800)
commit3d4c575a87d380fd92332a44af9a22fa6a5aa837
tree244ca2967ce2f0004ca46905b6c4eba927a7774d
parent5e5c4d8a82267fcfb90e5a5da96a517644cd3ad3
[CRYPTO] tcrypt: Catch cipher destination memory corruption

Check whether the destination buffer is written to beyond the last
byte contained in the scatterlist.

Also change IDX1 of the cross-page access offsets to a multiple of 4.
This triggers a corruption in the HIFN driver and doesn't seem to
negatively impact other testcases.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c