Files
twx-linux/crypto
Herbert Xu 01add92dd4 crypto: blkcipher_get_spot() handling of buffer at end of page
This corresponds to upstream changesets
e4630f9fd8 and
32528d0fbd.

[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 <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-09-26 10:54:41 -07:00
..
2007-05-09 07:12:20 +02:00