diff options
| author | Harald Freudenberger <freude@linux.ibm.com> | 2026-08-31 10:37:33 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-09-08 15:53:40 +0200 |
| commit | 15fa028589c3a2545f0bff355eff06d5844196bf (patch) | |
| tree | fcfdbb79dfe26b77236ee5f6d275521f617e2f65 /scripts/Makefile.thinlto | |
| parent | 0945285e6cd67ee87e9313fb10221aba5bd69c6a (diff) | |
| download | linux-15fa028589c3a2545f0bff355eff06d5844196bf.tar.gz linux-15fa028589c3a2545f0bff355eff06d5844196bf.zip | |
s390/crypto: Fix skcipher_walk return code handling in aes_s390
The return codes from skcipher_walk_virt() were not properly checked
before entering the processing loops in ecb_aes_crypt() and ctr_aes_crypt().
If skcipher_walk_virt() fails, the walk structure may be in an undefined
state, and attempting to process data could lead to incorrect behavior
or accessing uninitialized memory.
Add proper return code checking to ensure correct handling of the walk
initialization and walk advance and eventually return to the caller
with that return code.
Fixes: 7988fb2c03c8 ("crypto: s390/aes - convert to skcipher API")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Cc: stable@vger.kernel.org # 5.5+
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
