[SRU][Bionic][PATCH 0/1] s390/zcrypt: Fix CCA and EP11 CPRB processing failure memory leak.

Joseph Salisbury joseph.salisbury at canonical.com
Wed Jun 13 16:12:58 UTC 2018


BugLink: http://bugs.launchpad.net/bugs/1775390

== SRU Justification ==
Description: kernel: Fix memory leak on CCA and EP11 CPRB processing.

Symptom: Kernel memory not freed when CCA or EP11 CPRB processing fails.
Problem: kfree() in code error path missing.

Solution: Slight rework of the malloc and free places.

Reproduction: Run application which sends CCA or EP11 crypto requests
              to the crypto card(s). Now switch the cards offline with
              the help of chzcrypt. Monitor top or free output.

== Fix ==
89a0c0ec0d2e ("s390/zcrypt: Fix CCA and EP11 CPRB processing failure memory leak.")

== Regression Potential ==
Low.  Limited to s390.

== Test Case ==
Verified upfront by IBM during upstream integration.

Harald Freudenberger (1):
  s390/zcrypt: Fix CCA and EP11 CPRB processing failure memory leak.

 drivers/s390/crypto/ap_bus.h          | 17 ++++++++----
 drivers/s390/crypto/zcrypt_api.c      | 15 ++++++++---
 drivers/s390/crypto/zcrypt_msgtype6.c | 51 +++++++++++++----------------------
 3 files changed, 43 insertions(+), 40 deletions(-)

-- 
2.7.4





More information about the kernel-team mailing list