]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] Fix boundary check in standard multi-block cipher processors
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Sep 2005 02:42:51 +0000 (19:42 -0700)
committerChris Wright <chrisw@osdl.org>
Sat, 10 Sep 2005 02:42:51 +0000 (19:42 -0700)
commite381a0a1169713ef4494d22693896e781b83fcbd
treebff3a4392aedf358ce7dab046db6739de9166d01
parenta49567a4dbfd414f19e5bf828a4b2c540f164ea8
[PATCH] Fix boundary check in standard multi-block cipher processors

[CRYPTO] Fix boundary check in standard multi-block cipher processors

Fixes Bug 5194 (IPSec related Oops in 2.6.13).

The boundary check in the standard multi-block cipher processors are
broken when nbytes is not a multiple of bsize.  In those cases it will
always process an extra block.

This patch corrects the check so that it processes at most nbytes of data.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
crypto/cipher.c