WSL2-Linux-Kernel/drivers/s390/crypto
Johan Hovold 388bb19be8 s390/zcrypt: fix memleak at release
If a process is interrupted while accessing the crypto device and the
global ap_perms_mutex is contented, release() could return early and
fail to free related resources.

Fixes: 00fab2350e ("s390/zcrypt: multiple zcrypt device nodes support")
Cc: <stable@vger.kernel.org> # 4.19
Cc: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2019-10-22 17:55:51 +02:00
..
Makefile
ap_bus.c s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
ap_bus.h s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
ap_card.c
ap_debug.h
ap_queue.c
pkey_api.c s390/pkey: Add sysfs attributes to emit AES CIPHER key blobs 2019-09-19 12:56:06 +02:00
vfio_ap_drv.c s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
vfio_ap_ops.c
vfio_ap_private.h
zcrypt_api.c s390/zcrypt: fix memleak at release 2019-10-22 17:55:51 +02:00
zcrypt_api.h s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
zcrypt_card.c
zcrypt_cca_key.h
zcrypt_ccamisc.c
zcrypt_ccamisc.h
zcrypt_cex2a.c
zcrypt_cex2a.h
zcrypt_cex2c.c
zcrypt_cex2c.h
zcrypt_cex4.c s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_error.h
zcrypt_msgtype6.c
zcrypt_msgtype6.h
zcrypt_msgtype50.c
zcrypt_msgtype50.h
zcrypt_queue.c