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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <172232787903.2215.4743307326689102334.tip-bot2@tip-bot2>
Date: Tue, 30 Jul 2024 08:24:39 -0000
From: "tip-bot2 for Pavan Kumar Paluri" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Pavan Kumar Paluri <papaluri@....com>,
 "Borislav Petkov (AMD)" <bp@...en8.de>, x86@...nel.org,
 linux-kernel@...r.kernel.org
Subject: [tip: x86/urgent] x86/sev: Fix __reserved field in sev_config

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     c14e4114582c20276467226387d5bae7310a849e
Gitweb:        https://git.kernel.org/tip/c14e4114582c20276467226387d5bae7310a849e
Author:        Pavan Kumar Paluri <papaluri@....com>
AuthorDate:    Mon, 29 Jul 2024 13:08:08 -05:00
Committer:     Borislav Petkov (AMD) <bp@...en8.de>
CommitterDate: Tue, 30 Jul 2024 10:07:26 +02:00

x86/sev: Fix __reserved field in sev_config

sev_config currently has debug, ghcbs_initialized, and use_cas fields.
However, __reserved count has not been updated. Fix this.

Fixes: 34ff65901735 ("x86/sev: Use kernel provided SVSM Calling Areas")
Signed-off-by: Pavan Kumar Paluri <papaluri@....com>
Signed-off-by: Borislav Petkov (AMD) <bp@...en8.de>
Link: https://lore.kernel.org/r/20240729180808.366587-1-papaluri@amd.com
---
 arch/x86/coco/sev/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c
index 082d61d..de1df0c 100644
--- a/arch/x86/coco/sev/core.c
+++ b/arch/x86/coco/sev/core.c
@@ -163,7 +163,7 @@ struct sev_config {
 	       */
 	      use_cas		: 1,
 
-	      __reserved	: 62;
+	      __reserved	: 61;
 };
 
 static struct sev_config sev_cfg __read_mostly;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ