Commit a5dfefb
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]>1 parent e68368a commit a5dfefb
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1767 | 1767 | | |
1768 | 1768 | | |
1769 | 1769 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
| 1770 | + | |
| 1771 | + | |
1773 | 1772 | | |
1774 | 1773 | | |
1775 | 1774 | | |
| |||
0 commit comments