Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1036298iob; Fri, 13 May 2022 20:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0T0NowxN26WvzAWS/Z3EqFofvCjU2xW1M21SQrG77zLr4IVfuLRpKwguWVJjRzn7Zgvub X-Received: by 2002:adf:e8cb:0:b0:20c:5584:ba44 with SMTP id k11-20020adfe8cb000000b0020c5584ba44mr6175410wrn.173.1652499151023; Fri, 13 May 2022 20:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652499151; cv=none; d=google.com; s=arc-20160816; b=ULc5QuM6fOyv+5mNTvuMcf3r/VTHAtxHwhAO+e/atOKFweBqaoiRIbaqisJGBfIGn5 fVWHoJCjswDduqG0SLmC0LetrrxO407cUslNkWFp86i9pG0yHelxpZTna4C9tE08Bq+T o9XipXOwUX/4p/cpH+WP0fp6QH5bq0n9mPrZ60zM3KszRvHTheqVTodebk/8+/Je4CZW aCJmuZhIgOFTEnQwPqYjEWaWKvMWhhyz0sg1TAbn8WNN/lHZRQRhgajigFCLlOcweGak uymDkGEfhe6e0wNAYaYcAD1PL0+r3T498jz7T2hRqAw611rAlgcJBu2szev6LtM2Qz9i qsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=ZGtrQksjQfamBywCmnK7pPuFj4WwCjQmxlrTTj3S/6I=; b=Y/eJVXGBc+3oZiwXGQSt46ttVxapqGl/q5LVit5WDPTkBIbQII37G03iywJfXQwTz+ ErICppRz1x672kb0WGsi+I12dVQ/Y4G8oQoz+kuB6NMjKHhxX4T2plm7pf+a4UxealAg EhrKrPhdPj5rmD2b+FVyx6zZo3SVyO9LtKAeTwhqsjtsQidY3jSkARy9Fz+w4Awh6A3P P3tCEMLkYSNf23nHXlvaixJGb7IKTLhTOtGZAJvgeksVfRAPjauvm8vygUeMzG/yiepn YQpbSKPAOmh+CZ2Rk2BKIeImoskxErNm3HkUFiTTaBwxad6vw1ngWqDy1XqapGJFJfEK /oHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1T8MYAwP; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h6-20020a05600016c600b0020ac086aa0bsi3620590wrf.951.2022.05.13.20.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:32:31 -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=@linutronix.de header.s=2020 header.b=1T8MYAwP; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6871742EE68; Fri, 13 May 2022 17:09:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358043AbiELTb3 (ORCPT + 99 others); Thu, 12 May 2022 15:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358038AbiELTb0 (ORCPT ); Thu, 12 May 2022 15:31:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBCB3BBC8 for ; Thu, 12 May 2022 12:31:24 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652383882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZGtrQksjQfamBywCmnK7pPuFj4WwCjQmxlrTTj3S/6I=; b=1T8MYAwPo2BEm/6WmMHLKCbQY3p/N6rOZLdz3iI4vaCMn8SA7CLKFECG9eIE+7gOpqhtq/ CaILNXJySrPfWNjAViBxh5vkMssMmhwsFL3Kp9fXPhwG3f/KBLUHBL2Empa6yJ5AwS5PUf Wz1wU8NADjeRlzrsLDpjAM7ZQGYwBdj8knj/SZmnjtdZb+JhTtKpKLKxENV1tTySs0iQAC uyCBRZg1Jkga0NA5a7AnSlYbAYyuaELHKoFFKKgNFk94XvqlhJKPSEvD8ck/qS9kcxdwE1 ADCkse3eItboihLHZwQjgBx2NnbvSkomFr7RB54CQCX8Q2X6hzNwnuC6FHJjEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652383882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZGtrQksjQfamBywCmnK7pPuFj4WwCjQmxlrTTj3S/6I=; b=ZBiQRbX7ElsW/WoC766JtZsjlIY4BrgDJBq/ChyizEXD64Qh1JWjnOli+d7aHN2ZxjqRYq FfbBeDw3SZHDZ0Aw== To: "Kirill A. Shutemov" , Dmitry Vyukov Cc: Peter Zijlstra , Dave Hansen , Andy Lutomirski , x86@kernel.org, Alexander Potapenko , "H . J . Lu" , Andi Kleen , Rick Edgecombe , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dmitry Vyukov Subject: Re: [RFCv2 00/10] Linear Address Masking enabling In-Reply-To: <20220512165612.gizedzgtpzbi7jbl@black.fi.intel.com> References: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> <20220511064943.GR76023@worktop.programming.kicks-ass.net> <87pmkivjst.ffs@tglx> <20220512165612.gizedzgtpzbi7jbl@black.fi.intel.com> Date: Thu, 12 May 2022 21:31:22 +0200 Message-ID: <878rr6v985.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, May 12 2022 at 19:56, Kirill A. Shutemov wrote: > On Thu, May 12, 2022 at 05:42:58PM +0200, Thomas Gleixner wrote: >> On Wed, May 11 2022 at 08:49, Peter Zijlstra wrote: >> > On Wed, May 11, 2022 at 05:27:40AM +0300, Kirill A. Shutemov wrote: >> > So aren't we creating a problem with LAM_U48 where programs relying on >> > it are of limited sustainability? >> > >> > Any such program simply *cannot* run on 5 level pagetables. Why do we >> > want to do this? >> >> More bits are better :) >> >> Seriously, I agree that restricting it to LAM57, which gives us 6 bits, >> makes a lot of sense _and_ makes the whole thing way simpler. >> >> So supporting both needs a truly good justification and a real world use >> case. > > I asked the question before[1]. Basically, more bits more better: > > For HWASAN #bits == detection probability. > For MarkUS #bits == exponential cost reduction What is MarkUS? It's not really helpful to provide acronyms which are not decodable. > I would really like to have only LAM_U57, but IIUC 6 bits is not always > enough. > > Dmitry, could you elaborate? > > [1] https://mobile.twitter.com/dvyukov/status/1342019823400837120 I don't know whether he reacts on posting a link to his twitter account. I've CC'ed him now. Maybe that works better. Thanks, tglx