Files
i2som-imx-linux/crypto
Gilad Ben-Yossef ed64640fc3 crypto: gcm - wait for crypto op not signal safe
commit f3ad587070 upstream.

crypto_gcm_setkey() was using wait_for_completion_interruptible() to
wait for completion of async crypto op but if a signal occurs it
may return before DMA ops of HW crypto provider finish, thus
corrupting the data buffer that is kfree'ed in this case.

Resolve this by using wait_for_completion() instead.

Reported-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2017-09-15 18:30:47 +01:00
..
2008-08-29 15:50:02 +10:00
2011-10-21 14:24:03 +02:00
2016-02-27 14:28:44 +00:00
2011-10-21 14:28:58 +02:00
2011-10-21 14:28:58 +02:00