Commit 7a87352
CKI KWF Bot
Merge: crypto: s390/paes - Fix memory leak on CTR final block
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1309
JIRA: https://issues.redhat.com/browse/RHEL-106158
Upstream Status: RHEL only
The skcipher_walk_done call on the final CTR block is made with
the argument nbytes instead of 0. That tells the Crypto API that
paes is not yet done with the processing. This causes any temporary
memory to be leaked. Fix this by using 0 instead of nbytes.
This was fixed upstream by commit 6cd87cb ("s390/crypto:
Rework protected key AES for true asynch support").
Signed-off-by: Herbert Xu <herbert.xu@redhat.com>
Approved-by: Steve Best <sbest@redhat.com>
Approved-by: Tony Camuso <tcamuso@redhat.com>
Approved-by: Vladis Dronov <vdronov@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
| 877 | + | |
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
| |||
0 commit comments