diff options
| author | Huang Ying <[email protected]> | 2009-03-16 17:44:33 +0000 |
|---|---|---|
| committer | Alasdair G Kergon <[email protected]> | 2009-03-16 17:44:33 +0000 |
| commit | b2174eebd1fadb76454dad09a1dacbc17081e6b0 (patch) | |
| tree | a53722388ed012d097cf58a29e484957109c0b7b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | d659e6cc98766a1a61d6bdd283f95d149abd7719 (diff) | |
dm crypt: fix kcryptd_async_done parameter
In the async encryption-complete function (kcryptd_async_done), the
crypto_async_request passed in may be different from the one passed to
crypto_ablkcipher_encrypt/decrypt. Only crypto_async_request->data is
guaranteed to be same as the one passed in. The current
kcryptd_async_done uses the passed-in crypto_async_request directly
which may cause the AES-NI-based AES algorithm implementation to panic.
This patch fixes this bug by only using crypto_async_request->data,
which points to dm_crypt_request, the crypto_async_request passed in.
The original data (convert_context) is gotten from dm_crypt_request.
[[email protected]: reworked]
Cc: [email protected]
Signed-off-by: Huang Ying <[email protected]>
Cc: Herbert Xu <[email protected]>
Signed-off-by: Milan Broz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions