summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-02-27 16:30:56 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-28 10:29:17 +0100
commit3b30460c5b0ed762be75a004e924ec3f8711e032 (patch)
tree20685fb789a0da94779dc6a97dc3c37eb4286d35 /drivers
parentcrypto: xts - Propagate NEED_FALLBACK bit (diff)
downloadlinux-3b30460c5b0ed762be75a004e924ec3f8711e032.tar.xz
linux-3b30460c5b0ed762be75a004e924ec3f8711e032.zip
crypto: ccm - move cbcmac input off the stack
Commit f15f05b0a5de ("crypto: ccm - switch to separate cbcmac driver") refactored the CCM driver to allow separate implementations of the underlying MAC to be provided by a platform. However, in doing so, it moved some data from the linear region to the stack, which violates the SG constraints when the stack is virtually mapped. So move idata/odata back to the request ctx struct, of which we can reasonably expect that it has been allocated using kmalloc() et al. Reported-by: Johannes Berg <johannes@sipsolutions.net> Fixes: f15f05b0a5de ("crypto: ccm - switch to separate cbcmac driver") Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions