From nobody Wed Oct 8 08:32:39 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 DFD31273D94; Tue, 1 Jul 2025 09:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751363956; cv=none; b=SjpneiIyTSiYIH7nxzTxaKtV8XuVe94W2QyBPovAh9v7ZE1vUT1X61YtCg5Y8Rd5mzJkD3HyQXIr9XhfeR9tu0835cQDk5oBPdZG0cLfBtdq5IGbfHonwOAvaL9BSsFqIT5DWhdikK+X/EF3tBjkQKb6acIt9cY7QQKXXWStV4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751363956; c=relaxed/simple; bh=UXQro1nhuXHnLN9WvBTrdf+zqqavYnpmltBFM1Abf3w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bO2QzOnHEx39XvSNTXJhC317ym8JCgOeiGnzQQEp995FkbQ2e57iwhjePOxemrTuDf5HmOMP/D1QOsGJKRm8fxKI8c19ZTPCuOribsdcyv5E8VETpUVLpDM9SheLrzACs1Y9X5nVk2FbyWYG/lni94Pe2brhxn0B7vEBiuzPBdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.helo=mgamail.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ejfPYMLg; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.helo=mgamail.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ejfPYMLg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751363955; x=1782899955; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UXQro1nhuXHnLN9WvBTrdf+zqqavYnpmltBFM1Abf3w=; b=ejfPYMLgrwFcX95hulEJYO1dBdCj7KFTKjxDc7AGqQzsCUUsaNBVgjHE xYpWCfJ9PecjQaYeNnMafanPBw7vphf+Zlf5jg8nTl2ZkGB5kgvZdRN7r TxUR/KSOjTRo1dKuH+EH56XhWfXZXp921LLdZkzitB5UsiAja5z3EiHxS U+WNv2CGbgPXMUgUgE+YdsTswHCjfZ1JwCN+Oj4YsbqnpYDOlVaZtP39u 9D1lBABuGojAMCkahypsKBIEo+qJXw1PAU9RVOEjRskbmhQ3g9bDTduXb iM6txixxAtHzNECuRyOZ+Y2beOzAWxLBvzTng6U0t3dntY0GWbZs2crFi Q==; X-CSE-ConnectionGUID: j0lR17VMRZ6ISkkdrlJQ/Q== X-CSE-MsgGUID: KgZ9nYxySSyLsdbpwKZkIQ== X-IronPort-AV: E=McAfee;i="6800,10657,11480"; a="57428151" X-IronPort-AV: E=Sophos;i="6.16,279,1744095600"; d="scan'208";a="57428151" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2025 02:59:14 -0700 X-CSE-ConnectionGUID: 2JOVmV3pT+qr+n/Ir31q3A== X-CSE-MsgGUID: xXwqX3z+S2eyf6yOYGz41w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,279,1744095600"; d="scan'208";a="190896444" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa001.jf.intel.com with ESMTP; 01 Jul 2025 02:59:03 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id E9CF28E9; Tue, 01 Jul 2025 12:58:50 +0300 (EEST) From: "Kirill A. Shutemov" To: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Ard Biesheuvel , "Paul E. McKenney" , Josh Poimboeuf , Xiongwei Song , Xin Li , "Mike Rapoport (IBM)" , Brijesh Singh , Michael Roth , Tony Luck , Alexey Kardashevskiy , Alexander Shishkin Cc: Jonathan Corbet , Sohil Mehta , Ingo Molnar , Pawan Gupta , Daniel Sneddon , Kai Huang , Sandipan Das , Breno Leitao , Rick Edgecombe , Alexei Starovoitov , Hou Tao , Juergen Gross , Vegard Nossum , Kees Cook , Eric Biggers , Jason Gunthorpe , "Masami Hiramatsu (Google)" , Andrew Morton , Luis Chamberlain , Yuntao Wang , Rasmus Villemoes , Christophe Leroy , Tejun Heo , Changbin Du , Huang Shijie , Geert Uytterhoeven , Namhyung Kim , Arnaldo Carvalho de Melo , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-mm@kvack.org, "Kirill A. Shutemov" Subject: [PATCHv8 15/17] x86/cpu: Make LAM depend on LASS Date: Tue, 1 Jul 2025 12:58:44 +0300 Message-ID: <20250701095849.2360685-16-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250701095849.2360685-1-kirill.shutemov@linux.intel.com> References: <20250701095849.2360685-1-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Alexander Shishkin To prevent exploits for Spectre based on LAM as demonstrated by the whitepaper [1], make LAM depend on LASS, which avoids this type of vulnerability. [1] https://download.vusec.net/papers/slam_sp24.pdf Signed-off-by: Alexander Shishkin Signed-off-by: Kirill A. Shutemov Reviewed-by: Sohil Mehta --- arch/x86/kernel/cpu/cpuid-deps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-d= eps.c index 98d0cdd82574..11bb9ed40140 100644 --- a/arch/x86/kernel/cpu/cpuid-deps.c +++ b/arch/x86/kernel/cpu/cpuid-deps.c @@ -90,6 +90,7 @@ static const struct cpuid_dep cpuid_deps[] =3D { { X86_FEATURE_FRED, X86_FEATURE_LKGS }, { X86_FEATURE_SPEC_CTRL_SSBD, X86_FEATURE_SPEC_CTRL }, { X86_FEATURE_LASS, X86_FEATURE_SMAP }, + { X86_FEATURE_LAM, X86_FEATURE_LASS }, {} }; =20 --=20 2.47.2