The retrieve secret ioctl is mapped to the retrieve attestation measurement UVC bit instead of the retrieve secret UVC bit. As a result, supp_uv_cmds reported by the info ioctl shows the retrieve secret ioctl as supported by the Ultravisor based on the availability of the attestation UVC, not the retrieve secret UVC. Use BIT_UVC_CMD_RETR_SECRET. Fixes: 99961593e364 ("s390/uvdevice: Add Retrieve Secret IOCTL") Cc: # 6.13+ Signed-off-by: Timo Keller --- drivers/s390/char/uvdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/char/uvdevice.c b/drivers/s390/char/uvdevice.c index 4d274a2ee84d..f1ff4d6c07f2 100644 --- a/drivers/s390/char/uvdevice.c +++ b/drivers/s390/char/uvdevice.c @@ -40,7 +40,7 @@ static const u32 ioctl_nr_to_uvc_bit[] __initconst = { [UVIO_IOCTL_ADD_SECRET_NR] = BIT_UVC_CMD_ADD_SECRET, [UVIO_IOCTL_LIST_SECRETS_NR] = BIT_UVC_CMD_LIST_SECRETS, [UVIO_IOCTL_LOCK_SECRETS_NR] = BIT_UVC_CMD_LOCK_SECRETS, - [UVIO_IOCTL_RETR_SECRET_NR] = BIT_UVC_CMD_RETR_ATTEST, + [UVIO_IOCTL_RETR_SECRET_NR] = BIT_UVC_CMD_RETR_SECRET, }; static_assert(ARRAY_SIZE(ioctl_nr_to_uvc_bit) == UVIO_IOCTL_NUM_IOCTLS); -- 2.56.1