Commit 780b752
Herbert Xu
crypto: s390/paes - Fix memory leak on CTR final block
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>1 parent 6a78f7d commit 780b752
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