Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 0/2] s390/uvdevice: Fix typos
@ 2026-12-03  9:02 Timo Keller
  2026-12-03  9:02 ` [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl Timo Keller
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Timo Keller @ 2026-12-03  9:02 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	David Hildenbrand, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle, Steffen Eiden,
	Christoph Schlameuss
  Cc: kvm, linux-s390, Timo Keller, stable

UVIO_SUPP_UDEV_INFO referred to UVIO_IOCTL_UDEV_INFO_NR, which does not
exist. Rename it to the existing UVIO_IOCTL_UVDEV_INFO_NR.

UVIO_IOCTL_RETR_SECRET_NR wrongly referred to BIT_UVC_CMD_RETR_ATTEST.
Rename it to BIT_UVC_CMD_RETR_SECRET.

Signed-off-by: Timo Keller <tkeller@linux.ibm.com>
---
Timo Keller (2):
      s390/uvdevice: Fix UVC bit for retrieve secret ioctl
      s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition

 arch/s390/include/uapi/asm/uvdevice.h | 2 +-
 drivers/s390/char/uvdevice.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
change-id: 20261203-uv-fixes-401cfd30f3a0

Best regards,
-- 
Timo Keller <tkeller@linux.ibm.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl
  2026-12-03  9:02 [PATCH 0/2] s390/uvdevice: Fix typos Timo Keller
@ 2026-12-03  9:02 ` Timo Keller
  2026-12-03  9:36   ` Steffen Eiden
  2026-12-03  9:02 ` [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition Timo Keller
  2026-12-03  9:08 ` [PATCH 0/2] s390/uvdevice: Fix typos sashiko-bot
  2 siblings, 1 reply; 6+ messages in thread
From: Timo Keller @ 2026-12-03  9:02 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	David Hildenbrand, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle, Steffen Eiden,
	Christoph Schlameuss
  Cc: kvm, linux-s390, Timo Keller, stable

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: <stable@vger.kernel.org> # 6.13+
Signed-off-by: Timo Keller <tkeller@linux.ibm.com>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition
  2026-12-03  9:02 [PATCH 0/2] s390/uvdevice: Fix typos Timo Keller
  2026-12-03  9:02 ` [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl Timo Keller
@ 2026-12-03  9:02 ` Timo Keller
  2026-12-03  9:37   ` Steffen Eiden
  2026-12-03  9:08 ` [PATCH 0/2] s390/uvdevice: Fix typos sashiko-bot
  2 siblings, 1 reply; 6+ messages in thread
From: Timo Keller @ 2026-12-03  9:02 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	David Hildenbrand, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle, Steffen Eiden,
	Christoph Schlameuss
  Cc: kvm, linux-s390, Timo Keller, stable

UVIO_SUPP_UDEV_INFO refers to UVIO_IOCTL_UDEV_INFO_NR, which does not
exist. The enum value is named UVIO_IOCTL_UVDEV_INFO_NR. The macro is
not used in the kernel, so the typo went unnoticed, but any userspace
using it fails to compile.

Use the correct enum value.

Fixes: ea9d97163523 ("s390/uvdevice: Add info IOCTL")
Cc: <stable@vger.kernel.org> # 6.5+
Signed-off-by: Timo Keller <tkeller@linux.ibm.com>
---
 arch/s390/include/uapi/asm/uvdevice.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/include/uapi/asm/uvdevice.h b/arch/s390/include/uapi/asm/uvdevice.h
index 4947f26ad9fb..d3cf0aa9fef9 100644
--- a/arch/s390/include/uapi/asm/uvdevice.h
+++ b/arch/s390/include/uapi/asm/uvdevice.h
@@ -96,7 +96,7 @@ enum UVIO_IOCTL_NR {
 #define UVIO_IOCTL_RETR_SECRET		UVIO_IOCTL(UVIO_IOCTL_RETR_SECRET_NR)
 
 #define UVIO_SUPP_CALL(nr)		(1ULL << (nr))
-#define UVIO_SUPP_UDEV_INFO		UVIO_SUPP_CALL(UVIO_IOCTL_UDEV_INFO_NR)
+#define UVIO_SUPP_UDEV_INFO		UVIO_SUPP_CALL(UVIO_IOCTL_UVDEV_INFO_NR)
 #define UVIO_SUPP_ATT			UVIO_SUPP_CALL(UVIO_IOCTL_ATT_NR)
 #define UVIO_SUPP_ADD_SECRET		UVIO_SUPP_CALL(UVIO_IOCTL_ADD_SECRET_NR)
 #define UVIO_SUPP_LIST_SECRETS		UVIO_SUPP_CALL(UVIO_IOCTL_LIST_SECRETS_NR)

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] s390/uvdevice: Fix typos
  2026-12-03  9:02 [PATCH 0/2] s390/uvdevice: Fix typos Timo Keller
  2026-12-03  9:02 ` [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl Timo Keller
  2026-12-03  9:02 ` [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition Timo Keller
@ 2026-12-03  9:08 ` sashiko-bot
  2 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-03  9:08 UTC (permalink / raw)
  To: Timo Keller
  Cc: linux-s390, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger

Sashiko has reviewed this 2-patch series and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-uv-fixes-v1-0-3c605396591e@linux.ibm.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl
  2026-12-03  9:02 ` [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl Timo Keller
@ 2026-12-03  9:36   ` Steffen Eiden
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Eiden @ 2026-12-03  9:36 UTC (permalink / raw)
  To: Timo Keller
  Cc: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	David Hildenbrand, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle, Christoph Schlameuss, kvm,
	linux-s390, stable

On Thu, Dec 03, 2026 at 10:02:42AM +0100, Timo Keller wrote:
> 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: <stable@vger.kernel.org> # 6.13+
> Signed-off-by: Timo Keller <tkeller@linux.ibm.com>

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>

Thank you for fixing this.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition
  2026-12-03  9:02 ` [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition Timo Keller
@ 2026-12-03  9:37   ` Steffen Eiden
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Eiden @ 2026-12-03  9:37 UTC (permalink / raw)
  To: Timo Keller
  Cc: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	David Hildenbrand, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle, Christoph Schlameuss, kvm,
	linux-s390, stable

On Thu, Dec 03, 2026 at 10:02:43AM +0100, Timo Keller wrote:
> UVIO_SUPP_UDEV_INFO refers to UVIO_IOCTL_UDEV_INFO_NR, which does not
> exist. The enum value is named UVIO_IOCTL_UVDEV_INFO_NR. The macro is
> not used in the kernel, so the typo went unnoticed, but any userspace
> using it fails to compile.
> 
> Use the correct enum value.
> 
> Fixes: ea9d97163523 ("s390/uvdevice: Add info IOCTL")
> Cc: <stable@vger.kernel.org> # 6.5+
> Signed-off-by: Timo Keller <tkeller@linux.ibm.com>

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-03  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  9:02 [PATCH 0/2] s390/uvdevice: Fix typos Timo Keller
2026-12-03  9:02 ` [PATCH 1/2] s390/uvdevice: Fix UVC bit for retrieve secret ioctl Timo Keller
2026-12-03  9:36   ` Steffen Eiden
2026-12-03  9:02 ` [PATCH 2/2] s390/uvdevice: Fix UVIO_SUPP_UDEV_INFO definition Timo Keller
2026-12-03  9:37   ` Steffen Eiden
2026-12-03  9:08 ` [PATCH 0/2] s390/uvdevice: Fix typos sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox