Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8629072rwl; Tue, 10 Jan 2023 16:45:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/lVgw+qqUI88Prza+Zdw+SkF7GlIvKYBLKCbbMEjXqNZ3MDUTg3Vmzit4x2JiryJnaJgu X-Received: by 2002:a05:6a20:12d1:b0:b5:4928:3ab9 with SMTP id v17-20020a056a2012d100b000b549283ab9mr26425026pzg.35.1673397946550; Tue, 10 Jan 2023 16:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673397946; cv=none; d=google.com; s=arc-20160816; b=gs+UJduYMGalgF9/4+4Wtm4cnvwM6hgqR1ut0NQo9YHpdMW//hzOMJ9nv40DdJFylI 9w9qH7WZVyEb3bGTdMVGww5hpat0Eq0EOaCbln8rl6Yc1V9AlsXW+bojhMi/ub93SA/6 118/LhxnIJRbmWKB4RF/OXLI4rJEtcs9CX1EOE8/mZBLqu6S6A0HL0TxZlnC12y7E/rC FoXMKTJrpBgigt2XJYMMBp+dZ/X4eZ93yjQwqH2+vKi+IzHeOPgN5nuNxSgRCHeDpGDI KTsbZDFEZN9NalRtFZ3uVogYr9cfvN3o5Rf5vJusg31p7SJIKv436QxExJoGNIyF6srC /i8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=NLDs7kxwbVxeDAEkWjAFmQoXhm2oGh04jO9O7w7cUhM=; b=od5i8VHIeOh468FF4JoWo5toqEEJfYu8te+haOjkAwbZAC7nLRGw2YFyV6BjweCxkR JpPD9/5LNZhkHHIHm8XoSsPE+Fzgxwziw/ss/PNxgPLwtnxP/TZhbcsfhc8jj7Mkmfr8 1ZqYz1WQ0ZQC8BpFbCoc9b7K3vMeeU+jGLBCzEdhENzkC7BdbtOZfpNZDafWcqoczTTf xCJ2sOl3Clz5YCq6/heYH6p9mSztSuUXiE24idNIvm3rMXJ7GDBrPHu9mLkssgifWdp6 O78lN6/GC3Lwc9g/MdypbhFuKnnLLU/jbI6Ah0xzxSn8hBfIjvAwwGwx+YA4dX3TgH3T gojg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SeaUjaXl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a056a00140b00b005827af240basi12939657pfu.289.2023.01.10.16.45.39; Tue, 10 Jan 2023 16:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SeaUjaXl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232484AbjAKAN2 (ORCPT + 55 others); Tue, 10 Jan 2023 19:13:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbjAKAN0 (ORCPT ); Tue, 10 Jan 2023 19:13:26 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C685D5B157 for ; Tue, 10 Jan 2023 16:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673396005; x=1704932005; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=rhBvEIso996KWiUYNT3v6A5OEIDRuz0ouJ0cSkwqISA=; b=SeaUjaXlKk+Me4ag+2tnt/OHPJ/oAIIVhh9JcMcMPOtlZxKzx9Fw/asQ aPn8UA1Vjt4Ylnja0oLYi+EAZUKI0kVeUhKmAAKO/QnC46FRkpTUh+yB/ nW1SneYAf3yLOlw7YGmgBPwWmt1iVgj5ERMv1b4Qk1Eh5SbmMBjW9FEzf Nt7C64df4RZKXXhOuj32/6i4vnQn6knDJjf77BalTcub0//UB/BWK3OgO BLp+pKaynZbjewB7mdgrMfywo8OGg1MvG+pGUHrhtocinZvRjNGIKx0hq krycIfJFwszpoX5C6Z5T1FcU2uEleppx3EjTt9P3bu+8/ODsUV3MnV6da Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="311101652" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="311101652" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 16:13:25 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="725713580" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="725713580" Received: from svenka7-mobl1.amr.corp.intel.com (HELO [10.209.63.27]) ([10.209.63.27]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 16:13:20 -0800 Message-ID: Date: Tue, 10 Jan 2023 16:13:18 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/7] x86/cpu: Enumerate LASS CPUID and CR4 bits Content-Language: en-US To: Sohil Mehta , Yian Chen , linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Dave Hansen , Ravi Shankar , Tony Luck , Paul Lai References: <20230110055204.3227669-1-yian.chen@intel.com> <20230110055204.3227669-2-yian.chen@intel.com> <9d935618-8f84-2d6e-4f4c-9d38eec2ba67@intel.com> From: Dave Hansen In-Reply-To: <9d935618-8f84-2d6e-4f4c-9d38eec2ba67@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/10/23 12:14, Sohil Mehta wrote: > On 1/9/2023 9:51 PM, Yian Chen wrote: >> LASS (Linear Address Space Separation) is a CPU feature to >> prevent speculative address access in user/kernel mode. > > Would it be better to say? > > LASS (Linear Address Space Separation) is a security feature that > intends to prevent unintentional speculative address access across > user/kernel mode. It's more than that, though. The spec actually says this pretty nicely: > Linear-address space separation (LASS) is an independent mechanism > that enforces the same mode-based protections as paging but without > traversing the paging structures. Because the protections enforced by > LASS are applied before paging, “probes” by malicious software will > provide no paging-based timing information So, it's not _just_ that it can prevent some speculative accesses. It completely short-circuits paging itself and *ALL* of the baggage that goes along with paging. The TLB, mid-level caches, the page walker itself, the data cache impact... all of it. Gone. *THAT* is the important part here, IMNHO.