diff options
author | Eric Biggers <ebiggers@google.com> | 2023-10-27 13:30:17 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-11-01 12:58:42 +0800 |
commit | 8b621201bc68f6bd103c7757ac80d47e7d3a0756 (patch) | |
tree | 070050a414f1c603781e9b2337be47501f6e229c /crypto/asymmetric_keys/public_key.c | |
parent | 557f9cae49de49b6fd6cafc5005aaf737bd0c53e (diff) | |
download | linux-crypto-8b621201bc68f6bd103c7757ac80d47e7d3a0756.tar.gz linux-crypto-8b621201bc68f6bd103c7757ac80d47e7d3a0756.zip |
crypto: adiantum - flush destination page before unmapping
Upon additional review, the new fast path in adiantum_finish() is
missing the call to flush_dcache_page() that scatterwalk_map_and_copy()
was doing. It's apparently debatable whether flush_dcache_page() is
actually needed, as per the discussion at
https://lore.kernel.org/lkml/YYP1lAq46NWzhOf0@casper.infradead.org/T/#u.
However, it appears that currently all the helper functions that write
to a page, such as scatterwalk_map_and_copy(), memcpy_to_page(), and
memzero_page(), do the dcache flush. So do it to be consistent.
Fixes: ba95588e2005 ("crypto: adiantum - add fast path for single-page messages")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/public_key.c')
0 files changed, 0 insertions, 0 deletions