Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp859919rdb; Fri, 19 Jan 2024 00:36:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IG62Y6IaYWzIv2jpFOlHOE5DlE2X75HBA1NwIl9ajweItD2bcliUFab+QnNeGBGW6Y6oqjf X-Received: by 2002:a17:906:154b:b0:a28:aa7f:1183 with SMTP id c11-20020a170906154b00b00a28aa7f1183mr749681ejd.102.1705653376468; Fri, 19 Jan 2024 00:36:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705653376; cv=pass; d=google.com; s=arc-20160816; b=SQoEmUVU3c8l2lgek/ZLoZnVzvvCAyW/Pc+aLpE0pnP8nqLHFStUd3Wq3Fjgcsljt3 AAWaX1TVbCEjRWQaKSJag3TGNJZGVY8/kUDo/vYnNEF/6H2LKggFLRIk7yVMCB6DYvov uPvNAxAaBPpuAJePd/Cxng32WMxD4qaT2PU2z2z6X7H9UEg8Ura2Fyot74R9FoJv/plg XpEWI3Nbr7GfFhuB3xAM6+lBJ9Gw5fSpAvVyA8ClqJpuITBD+a8aUPN+Rt6hrucXlAfw PGA9C8tnm3lfuykMvFgY3gWYy1dbOtsCpdiCkvO1CYEPmDaPjtGraD+8b85tNHjwpAqO bUwg== 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=lKSr3oxjarYVGPb71A31YjKGHfc8bc96kxQvGQ+xopI=; fh=8SBsbB7rQAonz6Eh47bI3Yuegov6via7ph34XSi7O3s=; b=xxhcuNEjiu3DpiS691erZPDcQyz3xwShkTGCoPn7UlL11UNnY1sWdtelD1OKINjp/Q pRVQEhCOx86AjtttRjk0WCxI97w9nOmyK0miQSJisI41A6Ytst6XcwVfaclq4Bb06kr1 5OqAwYeYwQfswSlL2S9PPZJoW1jCywc1AmgjHeyzzgnKK1QEuhFHO5hBZr7vtgnxbm0r hZkOgNRDiQID1rp7m3tyNZLhkAszUGXovZBJ90jB/qjUno0ik+jJjDsV9IYOH0tWMwyz 6UBBucrmFZ+Ri4aEjv/b1PYN6+lTKUk7AW9S8e72dOtJ/lTxHIV3BO6DcXhjOlYcjw7f QqOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L4yVwEmj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-30765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ka10-20020a170907990a00b00a27d3a5c2b0si7852792ejc.830.2024.01.19.00.36.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 00:36:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L4yVwEmj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-30765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4F3871F2412D for ; Fri, 19 Jan 2024 04:58:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 836CD4A08; Fri, 19 Jan 2024 04:58:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="L4yVwEmj" 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 99D3D4437 for ; Fri, 19 Jan 2024 04:58:34 +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=1705640316; cv=none; b=ccI8bm3uBOyeBi/I1W6swaYyGox+81GRmiOoUao3Bs/oYJMv0cZKoGoGHdgtWHJ46AgGoFJrvYF+zMZoRuP58CXCCgLCjq10rQDp9w7gCwuXKIiLIxgpAtpLUFDjVc0a4e65pvimOljUqSxu1lnuSAvsKZtm3UI1UaIcVYPqc7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705640316; c=relaxed/simple; bh=8QJSAvI0LMNhlgPMo9ucUzZ1CMGI8vxL4qfd4Ivube0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=di4zk9AcAnb0t9IZgTSgCMg0NmdvkBPhXZXF0IwpNK0khBy/DYL1BkuelDYz87C5ozIKa5nBwQm9iu2tvYxL28srrFGKHNS8kM20iTUoh1qyuUye1lM4lerYFM9A3CunFwYIb+B5NlpddIuaD1smUbbIJT9LQqb0iaWOYhQFtBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=L4yVwEmj; 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.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705640315; x=1737176315; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8QJSAvI0LMNhlgPMo9ucUzZ1CMGI8vxL4qfd4Ivube0=; b=L4yVwEmjZHBp0CYeybHCAG+NdqUS7QAOvGpYi451JLEtqmOke98avmcX EHozH9pRdjWHXqHOiG9E8ljG6fmckcSLugh2heY1rr3AfFfF4BGpwK8U2 K/vvF2ZUeJhQTKyHJzybP3XPEVvpPZJ/lc/rx2LhgivL+Kjt7ZoT6tlzm Ewx/3KW9xRdGv/1MlclJK22LgVZZgmet5Un4MZyBLxVsulyiwQKAlAEp5 EBLqIExntdW0YqSa8GG0Jwb97UwvOY6nZA0/ZmA3kjLt+7Ib+UW6zfdvq PVtau4Y80YNIAIfoecKQvrjCjZ28eVf5+FPRPsgzZOPo+8smmRTx9uQbp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="551100" X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="551100" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2024 20:58:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="484333" Received: from clucarz-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.251.214.192]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2024 20:58:31 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 8C4BB10A0C4; Fri, 19 Jan 2024 07:58:28 +0300 (+03) Date: Fri, 19 Jan 2024 07:58:28 +0300 From: kirill.shutemov@linux.intel.com To: Pawan Gupta Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, daniel.sneddon@linux.intel.com, antonio.gomez.iglesias@linux.intel.com, rick.p.edgecombe@intel.com, sohil.mehta@intel.com, alexander.shishkin@intel.com Subject: Re: [PATCH] x86/lam: Disable ADDRESS_MASKING in most cases Message-ID: <20240119045828.xcypcr32cpovqptg@box.shutemov.name> References: <919b6370a908bb091779ec2eca7ca5e369d57847.1705631230.git.pawan.kumar.gupta@linux.intel.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <919b6370a908bb091779ec2eca7ca5e369d57847.1705631230.git.pawan.kumar.gupta@linux.intel.com> On Thu, Jan 18, 2024 at 06:35:47PM -0800, Pawan Gupta wrote: > Intel feature Linear Address Masking (LAM) has a weakness related to > transient execution as described in the SLAM paper[1]. Unless Linear > Address Space Separation (LASS) is enabled this weakness may be > exploitable. > > Until kernel adds support for LASS[2], only allow LAM for COMPILE_TEST, > or when speculation mitigations have been disabled at compile time, > otherwise keep LAM disabled. > It worth adding that there's no HW on market that supports LAM, so nobody affected by the issue. > [1] SLAM: https://download.vusec.net/papers/slam_sp24.pdf > [2] LASS: https://lore.kernel.org/lkml/20230609183632.48706-1-alexander.shishkin@linux.intel.com/ > > Cc: stable@vger.kernel.org # v6.4+ > Signed-off-by: Pawan Gupta Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov