Skip to content

Fixes and rework for aes_s390

Harald Freudenberger linux-crypto linux-s390 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest posting 2/23 patches 1 replyApplied
  2. v5 posting 1/20 of 3 patches 0 repliesSuperseded
  3. v43 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v3 posting 2/23 patches1 replySuperseded
v3 posting 1/23 patches0 repliesSuperseded
v22 patches2 repliesSuperseded
v11 patch0 repliesSuperseded

Patches in v5 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3s390/crypto: Fix skcipher_walk return code handling in aes_s390arch/s390/crypto/aes_s390.c+6 -60 replies
2/3s390/crypto: Fix missing scrub of temp buffers with AES ctr and gcm algorithmarch/s390/crypto/aes_s390.c+12 -40 replies
3/3s390/crypto: Fix use of mutex in atomic contextarch/s390/crypto/aes_s390.c+39 -240 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHolger Dengler
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] Fixes and rework for aes_s390

Fix and rework some issues around arch/s390/aes_s390.c:

- Fix skcipher_walk return code handling in aes_s390
- Add scrub of some temp buffers
- Shift from using a mutex to using a semaphore in AES CTR

For more details please see patch headers.

Changelog:

v1: initial version
v2: Fix missing scrub on a temp buffer used to process left over bytes
in CTR mode.
v3: - Yet another buffer scrubbing was missing. Added to the 2nd
patch and rephrased commit header.
- Added patch to fix one warning with context analysis regarding the handling of a mutex with the AES CTR implementation.
v4: - Sashiko found yet another buffer which was not scrubbed.
- New patch #3 which shifts from using a mutex to using a semaphore in AES CTR as this algorithm may be invoked in atomic/interrupt context.
- With the shift to a semaphore now clang is able to do the context analysis. So the patch from v3 which reworked the CTR implementation is not needed any more. Note that paes still has the issue with clang context analysis, but this will be addressed in another patch series.
v5: - Added R-Bs
- Reworked the mutex to semaphore patch to also cover the need to get rid of the conditional locking.

Harald Freudenberger (3):
s390/crypto: Fix skcipher_walk return code handling in aes_s390 s390/crypto: Fix missing scrub of temp buffers with AES ctr and gcm
algorithm
s390/crypto: Fix use of mutex in atomic context

 arch/s390/crypto/aes_s390.c | 87 +++++++++++++++++++++++--------------
 1 file changed, 55 insertions(+), 32 deletions(-)

base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f --
2.43.0