summaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-03-16 18:44:33 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-03-16 18:44:33 +0100
commitb2174eebd1fadb76454dad09a1dacbc17081e6b0 (patch)
treea53722388ed012d097cf58a29e484957109c0b7b /drivers/char/tty_io.c
parentdm io: respect BIO_MAX_PAGES limit (diff)
downloadlinux-b2174eebd1fadb76454dad09a1dacbc17081e6b0.tar.xz
linux-b2174eebd1fadb76454dad09a1dacbc17081e6b0.zip
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. [mbroz@redhat.com: reworked] Cc: stable@kernel.org Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/char/tty_io.c')
0 files changed, 0 insertions, 0 deletions