From: Herbert Xu Date: Sun, 9 Sep 2007 07:45:21 +0000 (+0100) Subject: [CRYPTO] blkcipher: Fix handling of kmalloc page straddling X-Git-Tag: v2.6.23-rc6~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4630f9fd8cdc14eb1caa08dafe649eb5ae09985;p=pandora-kernel.git [CRYPTO] blkcipher: Fix handling of kmalloc page straddling The function blkcipher_get_spot tries to return a buffer of the specified length that does not straddle a page. It has an off-by-one bug so it may advance a page unnecessarily. What's worse, one of its callers doesn't provide a buffer that's sufficiently long for this operation. This patch fixes both problems. Thanks to Bob Gilligan for diagnosing this problem and providing a fix. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed