[CRYPTO] all: Check for usage in hard IRQ context
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 9 Dec 2006 23:45:28 +0000 (10:45 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 6 Feb 2007 22:20:58 +0000 (09:20 +1100)
Using blkcipher/hash crypto operations in hard IRQ context can lead
to random memory corruption due to the reuse of kmap_atomic slots.
Since crypto operations were never meant to be used in hard IRQ
contexts, this patch checks for such usage and returns an error
before kmap_atomic is performed.

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

No differences found