diff options
| author | Harald Freudenberger <freude@linux.ibm.com> | 2026-08-31 10:38:32 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-09-08 15:53:41 +0200 |
| commit | 749990db95d45cc3d96aab999ac7f110259b200c (patch) | |
| tree | 086debe36e2039262f618847eb49233ccf9d976d /scripts/basic | |
| parent | 19a218b46b2471d370c11fb52040f36ac8d05d23 (diff) | |
| download | linux-749990db95d45cc3d96aab999ac7f110259b200c.tar.gz linux-749990db95d45cc3d96aab999ac7f110259b200c.zip | |
s390/crypto: Fix use of mutex in atomic context in PAES
The PAES CTR implementation used a mutex to lock one page of exclusive
memory for fast CTR processing. Unfortunately a mutex is not save to
use in atomic or interrupt context. So use a binary semaphore instead
which is save to use in such environments.
Furthermore rework the code to get rid of conditional locking. So
restructure the PAES CRT code by extracting the main loop into a
separate function and just give in information about the (locked) page
can be used or not (is not locked).
Fixes: 6cd87cb5ef6c ("s390/crypto: Rework protected key AES for true asynch support")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Cc: stable@vger.kernel.org # 6.16+
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
