lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230111194001.1947849-7-dionnaglaze@google.com>
Date:   Wed, 11 Jan 2023 19:40:00 +0000
From:   Dionna Glaze <dionnaglaze@...gle.com>
To:     linux-kernel@...r.kernel.org, x86@...nel.org
Cc:     Dionna Glaze <dionnaglaze@...gle.com>,
        Borislav Petkov <Borislav.Petkov@....com>,
        Peter Gonda <pgonda@...gle.com>,
        Thomas Lendacky <Thomas.Lendacky@....com>
Subject: [PATCH v11 6/7] virt/coco/sev-guest: Remove dependence on sev_guestreq_t

Next step in changing the cross-module signature change is to remove
this dependency in sev-guest in favor of the concrete type, u64.

Cc: Borislav Petkov <Borislav.Petkov@....com>
Cc: Peter Gonda <pgonda@...gle.com>
Cc: Thomas Lendacky <Thomas.Lendacky@....com>

Signed-off-by: Dionna Glaze <dionnaglaze@...gle.com>
---
 drivers/virt/coco/sev-guest/sev-guest.c | 2 +-
 include/uapi/linux/sev-guest.h          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c
index 04c30e4da642..1204939d4f2b 100644
--- a/drivers/virt/coco/sev-guest/sev-guest.c
+++ b/drivers/virt/coco/sev-guest/sev-guest.c
@@ -412,7 +412,7 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code,
 	if (rc) {
 		dev_alert(snp_dev->dev,
 			  "Detected error from ASP request. rc: %d, exitinfo2: %llu\n",
-			rc, (u64)arg->exitinfo2);
+			  rc, arg->exitinfo2);
 		goto disable_vmpck;
 	}
 
diff --git a/include/uapi/linux/sev-guest.h b/include/uapi/linux/sev-guest.h
index 49fc4341ac93..ef910e605ef0 100644
--- a/include/uapi/linux/sev-guest.h
+++ b/include/uapi/linux/sev-guest.h
@@ -56,7 +56,7 @@ struct snp_guest_request_ioctl {
 
         union {
                 __u64 fw_err; /* Name deprecated in favor of others */
-		sev_guestreq_err_t exitinfo2;
+		__u64 exitinfo2;
 		struct {
 			__u32 fw_error;
 			__u32 vmm_error;
-- 
2.39.0.314.g84b9a713c41-goog

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ