Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1254919rdb; Fri, 19 Jan 2024 13:05:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoDLrH0RD2Ge0sZeKkxwW61BPZA9y6SwuyR8ELvTfPx+vNqSVxx5a5C6xUgCJshq5icdQl X-Received: by 2002:a17:903:32ce:b0:1d6:f1d4:de11 with SMTP id i14-20020a17090332ce00b001d6f1d4de11mr663817plr.5.1705698315806; Fri, 19 Jan 2024 13:05:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705698315; cv=pass; d=google.com; s=arc-20160816; b=zaNTrvEbIIN+Lh1sCi/To8V42+YsFGCTuEI7UXE/ScHT3Vj0hdM7IEE022CRziT7pq FU6YUl8p41mw5ErKld58BxAvXq8ACo3/IMDY+jZrqZjLsI85mq7LRa8d3F4oZJdMh4pY swjN3pDC2WwqkB8GluwXWensw00lu7hsnSkCfHVJzezG+qNlieTqGrzyrrS01m61QT+V ik8FgU+jEj1vHhDzfQfpiMdsgcH52PfGWaVSJwutC1zRPrPFXtWe5enzdtjVIegd5Twl WOyAPVn5BsZNkFXOCgVOes8GmNgxhcBCRyarQHg2dKKrBVVhEbOnWbcng5iYXy5b9UEE wmoQ== 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=HO4ikCNLLKwU8jQN7lKpLf8H9AY8VxDqL7odwbQhQDw=; fh=Z/pWa9fGVeN3WpRGZ5qNbHTxDJSo/fdeD6P39u1EBNc=; b=jzskHzIymhbC5wxgjDZFyoAfPUSdxCQEinHEpdG/F1XpNgrBfERU6Icq3C3NGCqOB7 iF9QjhCglDJBO21+HDAON4uRZFXmoPQWr7nX3gTE5rqH0A927jf2ntIBjgkp8ispVWSA c5DOJuVndLofEGh//dWRmYRtOg9sDoWevTGVsxh/Q8ZFdA0ChgLxIcPBhrY/uojlZUpC VtmQgYNJnmTOA4reKubvavpbVNKwP8gibCvZVb9nZLH9T5GjmgKA5IsNXVIWfAmYbret eQIcf7f3qAy5NUVcMBcGYTF33TJlZv7wexR92E3QS6qykYcaRzudM7xDSefOuLvnWu9r 9sCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jNuW1dmK; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jj6-20020a170903048600b001d7102b2e58si1440600plb.232.2024.01.19.13.05.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:05:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jNuW1dmK; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31504-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 697B5B22ABD for ; Fri, 19 Jan 2024 18:48:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C83855E7F; Fri, 19 Jan 2024 18:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jNuW1dmK" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (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 4F4A45466C for ; Fri, 19 Jan 2024 18:48:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705690097; cv=none; b=VnAoDUzweb2HBb24NW6DR1io9BrFnKg4TggL2yAR5X25WtTYrBAWvp6FE3uyaQF96F+LXfJrA+aj/nzjKGIK/08GpvLp8xGj6lIKomCmvcKJ//i5dDiU/v3W2IM0gIoXWUJ5yeb9h8sYrmrfA8nX3T9mydYP9QZG1uMYc+3IJ/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705690097; c=relaxed/simple; bh=XbeNDItrlEZaR8vvIWca8FAYWCvy8z5P9degCxsFhgA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KmtmM9iY+KvUx3GfM0iBjJ6rBAGyEz57sELxzZnMF7E27C/COUzrWpIHlqF4PMieWTJ2hJMkhU9WhoAJ6+WwEPp0J1bj1LP+SJbz+PubgecxwdFxYBpyrQnSKlqf959AxjeT6xfn+4vdB1phuEl4o1B5Ps3z0lG9FopWHGaz5iQ= 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=jNuW1dmK; arc=none smtp.client-ip=134.134.136.20 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=1705690096; x=1737226096; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XbeNDItrlEZaR8vvIWca8FAYWCvy8z5P9degCxsFhgA=; b=jNuW1dmKAGx7FS94MfnR6srDqfuJgFyJY49K/+n6DbYiP7M52o87Z7fC SH1JdZcIo1MLijYT0VO3NG8YQsk9oAUCrX/kxqsNRN2ULb6acLp4uDBek epJQfqT49d1ZF/wytQXBEnPbmFkQn7BRE8mNhImTXXlfIpZAkdboRGFJj feEeZGVv1mbnKmrbkJR6GCkfvV0+Qq7NvXAFsbqMRngcmN1wQ8fAwtGbB tAoCda6bI+HOvuFUi2My5x2amL/CJBKMqS1I1EUENjLZElJhmec4JaOln et5UG+VV+Dg2wVDjFBopePxm3D7hocAQYFDQwr22cHX5QgO2PgBtxQZ9t w==; X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="391251940" X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="391251940" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 10:48:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="734674" Received: from guptapa-mobl1.amr.corp.intel.com (HELO windy) ([10.125.112.71]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 10:48:15 -0800 Date: Fri, 19 Jan 2024 07:36:09 -0800 From: Pawan Gupta To: kirill.shutemov@linux.intel.com 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: <20240119153609.hijuaoqu7wcptyh2@windy> References: <919b6370a908bb091779ec2eca7ca5e369d57847.1705631230.git.pawan.kumar.gupta@linux.intel.com> <20240119045828.xcypcr32cpovqptg@box.shutemov.name> 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: <20240119045828.xcypcr32cpovqptg@box.shutemov.name> On Fri, Jan 19, 2024 at 07:58:28AM +0300, kirill.shutemov@linux.intel.com wrote: > 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. Right. > > [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 Thanks.