[PATCH v4 0/3] Fixes and rework for aes_s390
Harald Freudenberger <[email protected]>
| Newsgroups | org.kernel.vger.linux-crypto,org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
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.
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 | 39 +++++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 15 deletions(-)
base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
--
2.43.0