Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1837792rdb; Wed, 31 Jan 2024 10:30:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIr4YlFU0a/99xvb4FP20oQfff8UHa7qrGzSybuagRSarztFVNPTqoCDvAYnFUD0vMA8fg X-Received: by 2002:a05:6a21:170d:b0:19c:9ce0:6d87 with SMTP id nv13-20020a056a21170d00b0019c9ce06d87mr2963933pzb.0.1706725828323; Wed, 31 Jan 2024 10:30:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706725828; cv=pass; d=google.com; s=arc-20160816; b=I20pUXCbQ/ZNQ+Sf2QUljxFZ3MdTPIjJptcDs9cRPmWis2//vockicmEZzses4qEke RrJ0W/+MXqBvEaJmZy7wwGlUOZHyCD9YhlXiSFf279KknZYoyVAdlYQpO6x3swnzpsi9 LK/SfNDCZbI9mXZcbdfzocLKr/dFtb9PGyUaKjwQPU+x0j80JXayXZLvM3Ad326w2M7r 6dozZRgH1EQ/jC8knC56LoDLCuPs4cO5tdc6xy4H3nOSdbCf+uk4MVsl+K/IQBj+vQnD c7I+ZSBsYkReT/YA8YHNs2JUm9XL/TKAIZ33e4dzZg8g0paeNclZvLYpKkabIB/K4o/1 OA5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/+NtwTeM2WJJmwO5s2FNbBwsFJel7210irlJXEyfKSU=; fh=xRlpu7FY2ji/crqTX77t/SL9S5InSdJNWc1e62dg6rg=; b=q6dYpuTNfcjl6j+/yD5b1gINBXX20bfJjT1RxRTbjlRA1mtjnX/NjQ7UV3riPCNuWq Mb/xKY5Fgs6UmcCPEUrGVmPtPpsnvx/K5/lY8KiyDHPUfY3+5Ve522fSj7OI+QmRq4BY UrlH5wreUaQ0T3Z6Kmgoujvjjo/f0BnD9PMmaPuGxZbZLzLbkd2a8bHf0XpmWTtguflV ir1NlcRbMUU/20uL7qMwBa15JaPSpgrwkZ32vtDz8Zn5o/K/Q67MI4bT/Py8Au5QEgsm oouuyBNTdJiKYCrKoEJAUxkMdfO8ABdsbb3q62CoeaUUYCKMGRxH5mCtn6jB8jb8Bl5m aKBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=LWH+Mshb; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-46969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=1; AJvYcCVgoSnZmAsmH59eB98M2PTYQkUHZlMpxRWcHPKriQkA9Zw0hWw6ABJbb4RGKR21ZfMcxCcr1GeQOWYsOfpb0oZEv1iMSHffLdUXiIEp+w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h6-20020a656386000000b005d8e352afe8si3751209pgv.123.2024.01.31.10.30.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 10:30:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=LWH+Mshb; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-46969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 025D9285C03 for ; Wed, 31 Jan 2024 18:30:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A15D1F5E6; Wed, 31 Jan 2024 18:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="LWH+Mshb" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CE6838DED for ; Wed, 31 Jan 2024 18:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706725822; cv=none; b=F1w1+g6pokcEpOs1Gk91FRQHmm3GXlOTuvp9eGIMTpeBeVkvq0P+j8v+5nJhE3iYHXxpBIC7zuT3nFuQnMHRvUoV+VCmf3Tbixp2s6uVXfUmoSHXYSowswrt2mN1MeL1oGsVfNaYi5PB2hJQr6WpbomEqKdTIXiVZSrqkET+4dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706725822; c=relaxed/simple; bh=r1Ng7ZF/2p6XuLx2B6gkXcy/kzt01Tiqwdn97xflGWc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DT18qxGjOnltEYLQgdpJ1t/ufOZUyPIvx+e1+/q3zzaZXWWb27ECB1dPiNZDjT+dHUM5ow+lHLO3Le5Wg4Kf4fRBFWYpUp6z9B+YxpitQve9O39a5Zwh7P6bLwESJvSlaCPEq73hjOcvnx16yFPaWnwil6umUNgcLvxkbtzt+6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=LWH+Mshb; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D212040E00C5; Wed, 31 Jan 2024 18:30:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id S2T9VafLywYD; Wed, 31 Jan 2024 18:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706725814; bh=/+NtwTeM2WJJmwO5s2FNbBwsFJel7210irlJXEyfKSU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LWH+MshbXOQDOug2oC0/qmgLf9e0lWP6Acf6uWxiooq36saxvU3ZxVpGm3/EAXg5a TGqBwUZQWx5d6HpUAm2etuL2sWfz2FmtIG2jnxwPsrcBfYGfiQIUn91gUKT4cXnFXQ CjKULTC99gfVESdzx262x0zDY/0JsAZo67ZLV6MifBHQSY215jexzpb7UledkVRL2w GGE5QRV+a3MwdqWRRImmc/E4JqVawFpQjydgyDF3ueCPFLqay1oXQ6fnv+N/6dAnXT 4loWAhFCFIbgGm3aK8jCz/QrRSuOqtUfrIbFb/kT51+iCCfSEOV+BCABMgH3FChcRc rkRVaowWvfbC1FbRdaEVMa3jb6UmHIOXPf9W+ky5BK/j0xvRmk43lfSJS3F2RHeMNH WIzT4g31JKZWXVrPDwX72MMA0c74B9+J3hsVMu5Jd31qDIqE6v8jeXJhEYo3BE40rD ol6cq+SjP76XPOZN8mZWCn2Y01sbWrkSMWBQJnoBPa2I5uwdFbN8GGlEiYDsTZ3RHQ ntmSC33VLC3P/NjKwslRjzL7auI5Tk59OYjV3and5arLRAvKtRNltgA4pOoERbodrP W/wiQrtPl7g0cZv2YgraIDNVSMPiR1x20l0lfWO9jHAR+1vKP43bYgtJuEY0aawcjm YJ4lvT+zcVpGm2jhLpD64TK0= Received: from zn.tnic (pd953033e.dip0.t-ipconnect.de [217.83.3.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7F10D40E016C; Wed, 31 Jan 2024 18:29:50 +0000 (UTC) Date: Wed, 31 Jan 2024 19:29:44 +0100 From: Borislav Petkov To: Jacob Xu Cc: Kevin Loughlin , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, Nick Desaulniers , Justin Stitt , Tom Lendacky , Pankaj Gupta , Hou Wenlong , Ard Biesheuvel , Dionna Glaze , Brijesh Singh , Michael Roth , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-coco@lists.linux.dev, Ashish Kalra , Andi Kleen , Adam Dunlap , Peter Gonda , Sidharth Telang Subject: Re: [PATCH v3 0/2] x86: enforce and cleanup RIP-relative accesses in early boot code Message-ID: <20240131182944.GJZbqRmBN_KDgK_nmB@fat_crate.local> References: <20240121182040.GBZa1geI5NxWSslvt0@fat_crate.local> <20240130220845.1978329-1-kevinloughlin@google.com> <20240131140037.GDZbpShX2b0elXlqDA@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Wed, Jan 31, 2024 at 10:16:55AM -0800, Jacob Xu wrote: > We're interested in fixing SEV-SNP guest boots which are currently > broken when using a guest kernel compiled with clang. It seems like > every other user of SEV/SNP linux kernel code uses GCC to compile the > kernel so they've avoided this issue. Lemme give that a try here. > E.g. Google COS uses clang to compile the kernel and we've made do > with an internal fix for a while. Which means that, theoretically, you could forward-port this internal fix until the issue is fixed for real, I'd say. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette