From nobody Tue Oct 7 07:20:53 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 33B472F3C3F; Fri, 11 Jul 2025 16:09:47 +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=1752250188; cv=none; b=q4olcm2jtmKbyo+Y0wUpCch9pQdGRvXfHhQdFPAhajpW90eoDKVSRXGsNtdIv271M5w49D3+5QbOzV3eGtQ0U+pAHPdHG3rg7ARyLje1t2RpwnycDeghG/bNowMC4fHszho4XLO360VSdMwLUw7l74kQQNx5AMJ7sPg9n4yMTxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752250188; c=relaxed/simple; bh=kJpWCsIz1IffVoCVIGQKMlSB5lOO6zZQOkYBMYoBP0E=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=jN3q5XSQ1Q0nN+H3scR+p80I0MLru0jOvbj3ChXysutyk1NKLPi6/qe7sxZOKFBSH90ES98jTwt8XiEiJKg+Cw5y/TH1yMYwxXI+/jqPonnn+f0jpJ5gpEfHbhHSutzDiSuLCAstvPqjXKrqV6QI7oqln31xOFQFqGPuLTp3DF4= 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=doK9Vk8Y; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=z1OuPmTH; 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="doK9Vk8Y"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="z1OuPmTH" Date: Fri, 11 Jul 2025 16:09:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1752250185; 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=WQVPUS2c/NIwKcle7VAE0bWjM5Ys2Mw2hxSOdfm4vaA=; b=doK9Vk8YnYmwRsP97Sd23JgTqJarKLMHx08cnio6tSdgp8oCpU/+aNshRd0Bbf+AiXb+CE U1mP06F2X+C6ZYLm392+lePVJmrM5fjS8Fke16Tw1Ou/WUe9lVQn11twFkJgzNmwMTA8h1 Qp+R7U4ZpZkhKGf1KvtbUtqo6TaFiqf0DymOEJY2QRW98I/2G9d4+wvKf5atVscLCTG55e 7gXQNldvj4OroEDc2hFBSwd3mMZ033mXB5xWnR1Wcz2eDcmWsgnV0LXu9zXTf+1ckIfVrJ yyNuI2biuouU6cvO70KKb2R7OjpO3Py/E00arot8r6aW+TP94IzJrCg+EL0/kg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1752250185; 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=WQVPUS2c/NIwKcle7VAE0bWjM5Ys2Mw2hxSOdfm4vaA=; b=z1OuPmTHg9+cfXlm/gpLtEhJg/KT28eH44Pd4T7+qPms5QXDGGi0xyyL3NfuNVjAKMbxLo tEHo8uyreOS9AcCQ== From: "tip-bot2 for David Kaplan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/bugs] x86/Kconfig: Add arch attack vector support Cc: David Kaplan , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250707183316.1349127-4-david.kaplan@amd.com> References: <20250707183316.1349127-4-david.kaplan@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <175225018475.406.5193836852906207764.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/bugs branch of tip: Commit-ID: 735e59204b5eb5aa55ba64be5d8ff4223b197816 Gitweb: https://git.kernel.org/tip/735e59204b5eb5aa55ba64be5d8ff4223= b197816 Author: David Kaplan AuthorDate: Mon, 07 Jul 2025 13:32:58 -05:00 Committer: Borislav Petkov (AMD) CommitterDate: Fri, 11 Jul 2025 17:56:40 +02:00 x86/Kconfig: Add arch attack vector support ARCH_HAS_CPU_ATTACK_VECTORS should be set for architectures which implement the new attack-vector based controls for CPU mitigations. If an arch does not support attack-vector based controls then an attempt to use them results in a warning. Signed-off-by: David Kaplan Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/20250707183316.1349127-4-david.kaplan@amd.com --- arch/Kconfig | 3 +++ arch/x86/Kconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index a3308a2..7d8a4e7 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -1763,4 +1763,7 @@ config ARCH_WANTS_PRE_LINK_VMLINUX An architecture can select this if it provides arch//tools/Makefi= le with .arch.vmlinux.o target to be linked into vmlinux. =20 +config ARCH_HAS_CPU_ATTACK_VECTORS + bool + endmenu diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 71dfe7d..6c20adb 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -75,6 +75,7 @@ config X86 select ARCH_ENABLE_SPLIT_PMD_PTLOCK if (PGTABLE_LEVELS > 2) && (X86_64 ||= X86_PAE) select ARCH_ENABLE_THP_MIGRATION if X86_64 && TRANSPARENT_HUGEPAGE select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI + select ARCH_HAS_CPU_ATTACK_VECTORS if CPU_MITIGATIONS select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION select ARCH_HAS_CPU_FINALIZE_INIT