Commits
![Gilad Ben-Yossef](https://secure.gravatar.com/avatar/a6c39a79d3cee2608e57b5228c3f9937.jpg?s=96&d=mm)
Gilad Ben-Yossef committed 2d0280070e6
crypto: drbg - wait for crypto op not signal safe commit a5dfefb1c3f3db81662556393fd9283511e08430 upstream. drbg_kcapi_sym_ctr() 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 output buffer. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>