diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-02-27 15:30:56 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-28 17:29:17 +0800 |
commit | 02b8659282337561db68eaf60e8063d86b856215 (patch) | |
tree | caea2393fc49800b551b2f543e3dd783520d0753 /crypto/authenc.c | |
parent | 4e20b8b652109e33775ab78b19c676949e26bfa5 (diff) | |
download | linux-crypto-02b8659282337561db68eaf60e8063d86b856215.tar.gz linux-crypto-02b8659282337561db68eaf60e8063d86b856215.zip |
crypto: ccm - move cbcmac input off the stack
Commit a18de52f6a0f ("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: a18de52f6a0f ("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 'crypto/authenc.c')
0 files changed, 0 insertions, 0 deletions