linux/drivers/s390
Harald Freudenberger cf7d945787 s390/pkey: Forward keygenflags to ep11_unwrapkey
[ Upstream commit 11aa54ba4c ]

The pkey ioctl PKEY_CLR2SECK2 describes in the pkey.h header file
the parameter 'keygenflags' which is forwarded to the handler
functions which actually deal with the clear key to secure key
operation. The ep11 handler module function ep11_clr2keyblob()
function receives this parameter but does not forward it to the
underlying function ep11_unwrapkey() on invocation. So in the end
the user of this ioctl could not forward additional key generation
flags to the ep11 implementation and thus was unable to modify the
key generation process in any way. So now call ep11_unwrapkey()
with the real keygenflags instead of 0 and thus the user of this
ioctl can for example via keygenflags provide valid combinations
of XCP_BLOB_* flags.

Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-29 14:10:15 +01:00
..
block s390/dasd: Return BLK_STS_INVAL for EINVAL from do_dasd_request 2025-10-19 16:37:37 +02:00
char s390/sclp: Fix SCCB present check 2025-08-20 16:37:27 +02:00
cio s390/cio/ioasm: Fix __xsch() condition code handling 2025-10-19 16:37:36 +02:00
crypto s390/pkey: Forward keygenflags to ep11_unwrapkey 2025-10-29 14:10:15 +01:00
net Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
scsi Merge branch '6.16/scsi-queue' into 6.16/scsi-fixes 2025-06-09 15:34:06 -04:00
virtio s390/virtio_ccw: Don't allocate/assign airqs for non-existing queues 2025-04-09 12:12:41 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00