mirror-linux/drivers/s390/crypto
Harald Freudenberger 11aa54ba4c s390/pkey: Forward keygenflags to ep11_unwrapkey
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>
2025-08-28 16:52:54 +02:00
..
Makefile s390/pkey: Add new pkey handler module pkey-uv 2024-10-29 11:17:18 +01:00
ap_bus.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
ap_bus.h s390/ap: Unmask SLCF bit in card and queue ap functions sysfs 2025-07-31 18:59:26 +02:00
ap_card.c
ap_debug.h
ap_queue.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
pkey_api.c s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
pkey_base.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
pkey_base.h s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
pkey_cca.c s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
pkey_ep11.c s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
pkey_pckmo.c s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
pkey_sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
pkey_uv.c s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
vfio_ap_debug.h
vfio_ap_drv.c s390/vfio-ap: Driver feature advertisement 2024-09-23 17:57:04 +02:00
vfio_ap_ops.c s390/vfio-ap: Fix no AP queue sharing allowed message written to kernel log 2025-04-01 16:24:22 +02:00
vfio_ap_private.h s390/vfio-ap: Signal eventfd when guest AP configuration is changed 2025-02-18 18:53:48 +01:00
zcrypt_api.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
zcrypt_api.h s390/zcrypt: Rework zcrypt function zcrypt_device_status_mask_ext 2025-04-30 11:34:01 +02:00
zcrypt_card.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
zcrypt_cca_key.h
zcrypt_ccamisc.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
zcrypt_ccamisc.h s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
zcrypt_cex2a.c
zcrypt_cex2a.h
zcrypt_cex2c.c
zcrypt_cex2c.h
zcrypt_cex4.c s390/zcrypt: Rework ep11 misc functions to use cprb mempool 2025-04-30 11:34:02 +02:00
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_ep11misc.c s390/pkey: Forward keygenflags to ep11_unwrapkey 2025-08-28 16:52:54 +02:00
zcrypt_ep11misc.h s390/pkey: Provide and pass xflags within pkey and zcrypt layers 2025-04-30 11:34:03 +02:00
zcrypt_error.h
zcrypt_msgtype6.c s390/ap/zcrypt: Rework AP message buffer allocation 2025-04-30 11:34:00 +02:00
zcrypt_msgtype6.h
zcrypt_msgtype50.c s390/ap/zcrypt: Rework AP message buffer allocation 2025-04-30 11:34:00 +02:00
zcrypt_msgtype50.h
zcrypt_queue.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00