Skip to content
Snippets Groups Projects
Commit fb469840 authored by Herbert Xu's avatar Herbert Xu
Browse files

[CRYPTO] all: Check for usage in hard IRQ context


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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 62d0cfcb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment