Skip to content

crypto: aesni - Use zero-copy for gcm(aes) buffers that are partially contiguous

Junaid Shahid linux-crypto 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 5 repliesSuperseded
  3. v14 patches 1 replySuperseded

Changes in v3 from the cover letter

- Rebased on top of the latest linux-next Changes in v2:
- Integrated https://patchwork.kernel.org/patch/10173981

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: aesni - Fix out-of-bounds access of the AAD buffer in AVX gcm-aesniarch/x86/crypto/aesni-intel_avx-x86_64.S+42 -1120 replies
2/4crypto: aesni - Enable one-sided zero copy for gcm(aes) request buffersarch/x86/crypto/aesni-intel_glue.c+134 -1220 replies
3/4crypto: aesni - Directly use kmap_atomic instead of scatter_walk object in gcm(aes)arch/x86/crypto/aesni-intel_glue.c+15 -210 replies
4/4crypto: aesni - Use zero-copy for gcm(aes) even if the AAD/Data/AuthTag are separatearch/x86/crypto/aesni-intel_glue.c+89 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] crypto: aesni - Use zero-copy for gcm(aes) buffers that are partially contiguous

Changes in v3:
- Rebased on top of the latest linux-next Changes in v2:
- Integrated https://patchwork.kernel.org/patch/10173981

Currently, the AESNI gcm(aes) implementation uses zero-copy only when the entire src and dest request buffers, including the AAD, the data and the Auth Tag are contiguous. This series enables the use of zero-copy even if the AAD and/or Auth Tag are in different buffers than the actual data, as long as each of them individually satisfies the zero-copy conditions (i.e. the entire buffer is either in low-mem or within a single high-mem page). Furthermore, it also enables the use of zero-copy even if only one of src and dest satisfies these conditions rather than only when both of them do.

Junaid Shahid (4):
crypto: aesni - Fix out-of-bounds access of the AAD buffer in AVX
gcm-aesni
crypto: aesni - Enable one-sided zero copy for gcm(aes) request
buffers
crypto: aesni - Directly use kmap_atomic instead of scatter_walk
object in gcm(aes)
crypto: aesni - Use zero-copy for gcm(aes) even if the
AAD/Data/AuthTag are separate

 arch/x86/crypto/aesni-intel_avx-x86_64.S | 154 +++++-----------
 arch/x86/crypto/aesni-intel_glue.c       | 307 +++++++++++++++++++------------
 2 files changed, 227 insertions(+), 234 deletions(-)
Signature · 1 line
2.16.0.rc1.238.g530d649a79-goog