Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: drbg - wait for crypto op not signal safe
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 <[email protected]> Signed-off-by: Gilad Ben-Yossef <[email protected]> CC: [email protected] Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information