1
0
Fork 0
alistair23-linux/drivers/s390
Harald Freudenberger 9e6874da94 s390/pkey: fix missing length of protected key on return
commit aab73d278d upstream.

The pkey ioctl call PKEY_SEC2PROTK updates a struct pkey_protkey
on return. The protected key is stored in, the protected key type
is stored in but the len information was not updated. This patch
now fixes this and so the len field gets an update to refrect
the actual size of the protected key value returned.

Fixes: efc598e6c8 ("s390/zcrypt: move cca misc functions to new code file")
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reported-by: Christian Rund <RUNDC@de.ibm.com>
Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-19 19:53:04 +01:00
..
block s390/dasd: fix memleak in path handling error case 2020-01-12 12:21:43 +01:00
char s390 updates for the 5.4 merge window 2019-09-17 14:04:43 -07:00
cio s390/dasd/cio: Interpret ccw_device_get_mdc return value correctly 2020-01-12 12:21:43 +01:00
crypto s390/pkey: fix missing length of protected key on return 2020-02-19 19:53:04 +01:00
net s390/qeth: fix dangling IO buffers after halt/clear 2020-01-26 10:01:09 +01:00
scsi scsi: zfcp: trace channel log even for FCP command responses 2019-12-17 19:55:26 +01:00
virtio virtio/s390: fix race on airq_areas[] 2019-07-26 13:36:18 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00