From nobody Tue Oct 7 03:50:34 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C11BC157493; Tue, 15 Jul 2025 08:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752568802; cv=none; b=j13Tt4p9Gi3c/lBXDRul7VM7SYEyhmnXlaXeoLYXqQ0Dj3fCdc3AcTiGCOdczBEEnpF2bOsUUhm7Elhk9ayktgEbUKalRsMEByCmkPbhSgBZZe+7x5Q1f/NLnYqTwfmqELrOAyGI2fRCXHWmV0oma3nPW06tiEUHLn77xtifM+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752568802; c=relaxed/simple; bh=bph2CKLWWA6Zfy6b2rzNQeI7jr7Ng8Jx6WB5b7K4KOU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aK/3fcDuOAgdRd1Yz+Eed8htcUR7DevdpkyU8jLp4o3qdL8njpfcyZ3T8PH/oAAHwjcbQcOQlpuGCOQ2gZ9xTNanUDUUWrsBMAZcYR9F7OkLrUnIRYE+eFyW/7/cEH1ajUJWLoX3pZyZaflUr7psWxnLM4vd520DPI4HVt4Syvk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=eG3iz4Jt; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=FButPfo2; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="eG3iz4Jt"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FButPfo2" Date: Tue, 15 Jul 2025 08:39:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1752568798; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D0RQ+i/p2sJqVF9+ryHw3pXcUBawIFlK4rbiZFvoMyY=; b=eG3iz4JtWKfRt3ouMXrLEWLY6Af71JEoUxdSwNzpKAgxoO2KngwyNE7jUOzaYsIMYfQI5G pxTA7ZJd0DnmPG0WqSqEEvz0Ly0ECtZkmHkLKxk/YDI6qiKh0gTeFDHqjPS970Mqf/iKEz zT97uvPZyH8HgwQDNAAivLCN+4uMi8LrkcMGVENMTCkgdNqm2LliqX7RTuPhvvWzh6wFPS /BUDuYrZl8TszeLiEmirTDvONZ5W3br64AC3MjFCB7aM/U+SpTJ1iEa3IL2Izz3UvxAnUS rFy9++Df9sHbaPJzTAV0fy9B3+VkVJoKpWaKIn9HuieYb5hsm5ant+x8rwrITg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1752568798; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D0RQ+i/p2sJqVF9+ryHw3pXcUBawIFlK4rbiZFvoMyY=; b=FButPfo2TUEcOuMs6joo1IhEAAf8FzBxzKP2YUZ6knQx9w3LE9z8MST8fEWLexTi1aUyBi v1yXsRPe9BZWchAw== From: "tip-bot2 for Ard Biesheuvel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/sev: Work around broken noinstr on GCC Cc: Randy Dunlap , Ard Biesheuvel , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250714073402.4107091-2-ardb+git@google.com> References: <20250714073402.4107091-2-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <175256879751.406.17891984296859286442.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 6b995d01683feae619aa3263d18a6aa19bface16 Gitweb: https://git.kernel.org/tip/6b995d01683feae619aa3263d18a6aa19= bface16 Author: Ard Biesheuvel AuthorDate: Mon, 14 Jul 2025 09:34:03 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 15 Jul 2025 10:12:25 +02:00 x86/sev: Work around broken noinstr on GCC Forcibly disable KCSAN for the sev-nmi.c source file, which only contains functions annotated as 'noinstr' but is emitted with calls to KCSAN instrumentation nonetheless. E.g., vmlinux.o: error: objtool: __sev_es_nmi_complete+0x58: call to __kcsan_ch= eck_access() leaves .noinstr.text section make[2]: *** [/usr/local/google/home/ardb/linux/scripts/Makefile.vmlinux_= o:72: vmlinux.o] Error 1 Fixes: a3cbbb4717e1 ("x86/boot: Move SEV startup code into startup/") Reported-by: Randy Dunlap Signed-off-by: Ard Biesheuvel Signed-off-by: Borislav Petkov (AMD) Acked-by: Randy Dunlap Tested-by: Randy Dunlap Link: https://lore.kernel.org/20250714073402.4107091-2-ardb+git@google.com --- arch/x86/coco/sev/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/coco/sev/Makefile b/arch/x86/coco/sev/Makefile index db3255b..342d79f 100644 --- a/arch/x86/coco/sev/Makefile +++ b/arch/x86/coco/sev/Makefile @@ -5,5 +5,6 @@ obj-y +=3D core.o sev-nmi.o vc-handle.o # Clang 14 and older may fail to respect __no_sanitize_undefined when inli= ning UBSAN_SANITIZE_sev-nmi.o :=3D n =20 -# GCC may fail to respect __no_sanitize_address when inlining +# GCC may fail to respect __no_sanitize_address or __no_kcsan when inlining KASAN_SANITIZE_sev-nmi.o :=3D n +KCSAN_SANITIZE_sev-nmi.o :=3D n