diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2021-05-05 20:26:10 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-05-14 19:07:56 +0800 |
commit | dfb098d692eac2a11a7051dfe87be98cd90da67d (patch) | |
tree | 4e526234d27e3a3df87997a0fd7f5feea6e37a76 /mm/page_vma_mapped.c | |
parent | e8acf011f2e7e21a7e2fae47cbaa06598e533d40 (diff) |
crypto: ixp4xx - fallback when having more than one SG
Testing ixp4xx_crypto lead to:
alg: skcipher: ecb(des)-ixp4xx encryption overran dst buffer on test vector 0, cfg="two even aligned splits"
The HW overwrites destination always when sg_nents() > 1.
The problem seems that the HW always write areq->cryptlen bytes on the
last SG.
A comment in driver's code seems to give a clue that multiple SG was not
planned "This was never tested by Intel for more than one dst buffer, I think".
So let's add a fallback for this situation.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm/page_vma_mapped.c')
0 files changed, 0 insertions, 0 deletions