Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1039684iob; Fri, 13 May 2022 20:40:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJyBpDpFwPsC5gqdCpVInT7qWFSp0q5/IZ43pIBE2KvuRyBT2JW7X6zX56wxbPid3lKY/S X-Received: by 2002:a05:6000:1b8d:b0:20c:d372:f07c with SMTP id r13-20020a0560001b8d00b0020cd372f07cmr6277519wru.607.1652499645087; Fri, 13 May 2022 20:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652499645; cv=none; d=google.com; s=arc-20160816; b=qZLKVC9Vs1UPPj+uCcr/C7JY2KU8Ctqlj7ogmTfoIUcU1pRvBnWBNvmJeaCCRSFxAh WI1+fJZJVe9JrnT30QdN42pew4A/ydNLPYJFc+Q5rEg8n/ysox8eBl9rhUJ0Rzu5aQUS aI4GOfNpLd42iJW4BJuFbl+QrltV7IKBbxezXJc44L8Yv/7bCPeA2HXObKiQ6kxPhgNa //lMp5fK5Y+pa45oVBQZ4i0Nd0+GW/0KNtz1zRWcIf5Ux5bRkcMcNZqRUsf9/eLuqe2i d1u8Eoi7nHbRBUVQC2RMJxa0T00WNjUaLUT1SV2cxffddqZhR7k8OQXggA0LpTrOR0Yy cc6g== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hm8sgQTWBGz8sUh6Hsd8/TtvFAk6sZaypbiG9HDS/IM=; b=iv0PRWhxTmpTQlaQOiPiKDDRILdnHknFZk5jYQqRj28u6cBYhwfwRCiMf7Fn/dC3YY mMuPNlJrkSewIRycNykn0MfAydxB5p3795CV6e5vf9UqTSvnNlSz+dtY3USXXdq06hfa LrJWewiWDb650ljsGBogLtcHWVFXtEIovEBfeRuRffeqYcJjoLHjmZicBmUNCVyJ/xNi kqR5I4xICubgL61fOHY6oZvV7wd3P5GY8520vW8RTPCNgUHlKDoS4FNsQEv19hMQxlvV h+abCsrPHPOW6wnyEHWf38cmcWbSuM4x/T6lkZJIn16VVE3b0jQOrn2Z5V9XPAX46E/i 0YkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l+2Nu3XT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a14-20020adffb8e000000b0020cf5a30768si1726978wrr.139.2022.05.13.20.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:40:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l+2Nu3XT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9786732B872; Fri, 13 May 2022 17:15:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357159AbiELRk0 (ORCPT + 99 others); Thu, 12 May 2022 13:40:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357164AbiELRkX (ORCPT ); Thu, 12 May 2022 13:40:23 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A0E26C4CF for ; Thu, 12 May 2022 10:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652377222; x=1683913222; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=bQdeZOucoJbqYuT7kPG2s5fmlDJK3T7fnukLOSrfHWs=; b=l+2Nu3XTnj25DcabQ6wexItQv6p6KWdqE22Njp8zrsqpbodpcj7JpKMP YiPkGEmHmx5Gd/WaVgeRCxFWJAq/6w98kmW9YDSWd1hEbVkf86Z9rHC0R iZHNxfB5iqlZ8VqdstxESKZ7og45ldGnS8lgJyB57LW+5VJDdF1qx8S8O b7J/nUFbcA49LUV/A3uPipnw1phHwrFVDOXamJrKg3P3O2fvU32qy/hgh AwsIj5dSbY21nFPKVEwBeKIJJ/bOpNuvV0emjKm5C4aRqZ2ZZrxZSp92s QnGsbqDTjfl00dwHmP2N1FNsweJgm44j2B6Lo8Vuz30ke9T1ao0R7EtLX w==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="270217399" X-IronPort-AV: E=Sophos;i="5.91,220,1647327600"; d="scan'208";a="270217399" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 10:22:49 -0700 X-IronPort-AV: E=Sophos;i="5.91,220,1647327600"; d="scan'208";a="572617956" Received: from wdwickar-mobl1.amr.corp.intel.com (HELO [10.252.130.245]) ([10.252.130.245]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 10:22:48 -0700 Message-ID: <20bada85-9203-57f4-2502-57a6fd11f3ea@intel.com> Date: Thu, 12 May 2022 10:22:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [RFCv2 00/10] Linear Address Masking enabling Content-Language: en-US To: Peter Zijlstra , "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , x86@kernel.org, Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> <20220511064943.GR76023@worktop.programming.kicks-ass.net> From: Dave Hansen In-Reply-To: <20220511064943.GR76023@worktop.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/10/22 23:49, Peter Zijlstra wrote: >> The feature competes for bits with 5-level paging: LAM_U48 makes it >> impossible to map anything about 47-bits. The patchset made these >> capability mutually exclusive: whatever used first wins. LAM_U57 can be >> combined with mappings above 47-bits. > So aren't we creating a problem with LAM_U48 where programs relying on > it are of limited sustainability? I think allowing apps to say, "It's LAM_U48 or bust!" is a mistake. It's OK for a debugging build that runs on one kind of hardware. But, if we want LAM-using binaries to be portable, we have to do something different. One of the stated reasons for adding LAM hardware is that folks want to use sanitizers outside of debugging environments. To me, that means that LAM is something that the same binary might run with or without. It's totally fine with me if the kernel only initially supports LAM_U57. But, I'd ideally like to make sure that the ABI can support LAM_U57, LAM_U48, AMD's UAI (in whatever form it settles), or other masks.