Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp254626iob; Fri, 13 May 2022 00:30:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaIqhsabkx9Lsju/N9DkIOyZE0LVm83PHCSX/Ft8jRQ+9IoT8pCo6yMafz69qCLzsjX0Ax X-Received: by 2002:a63:410:0:b0:3db:8dd5:751 with SMTP id 16-20020a630410000000b003db8dd50751mr2649518pge.7.1652427058239; Fri, 13 May 2022 00:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652427058; cv=none; d=google.com; s=arc-20160816; b=CCuYv3UPcwwzJNN0rEedF7UbOPh9cjtLRlhWvJmdBg8dbiAlKogyKjeoTZ5olh7x7s gFVqrBsB1mkGLhi+5XZpfCyUbSK79VXY6f6KvEI7OUTjnbrHRLZbMtvZTuRNreARh0EG zDJeq1FZiK7015WdIdnJaGjS/zYBG0G1dR79sOXogfYMRJZTJc4V40pDeyt5eK31NbeY uR//rWlc3+SrzzkrdmLzSXF+zJ5tMLvBUJDH8hjlH0GjYOZG7aJTYIzUR9pSAuRkDL2Z +BSurN89RSi8azO+XcLGan6bcwvFccuoKJui2l8KbH5sMgZ2QaQ8dDOLTBrktCkFVbJe 3dvg== 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=GUz/BjKKRmAHMrmDYPctuxo3Uvh/hIwMWxZ45+KcIM8=; b=PA8r0zZjmfye1lsQ+tGV6HJvPtKmw+kQQrjcdRdqZ1T528JLfqF1IlutGAHAxkoY5x PNSdYB1o4UnFNWLOWdKyz1JBQ/h8UqzmYIYHouLlR+aN/iXhZrs92xYNC0Cc684X8n7S Lv6U+j3Fb2pYqpBH48baNdGq7s9YgUzXPRZhlXvlJyZfTGsvb0YcpLw/3sis3WmKvsks 5uukd76Ic52zTTbINkPte/SACX+A1hy1M5wgRy4olffkIl3WxpzqFRa4hOUushWYkQEj tWLi1dNfGO/409GNoIfHLMvuvdKj0929LIKJus02+GdEYsvBJ872r+93DTSh7OUhGWaF 11LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=DLIGD7nk; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=F2+NdbtV; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t136-20020a63788e000000b00398f1f7ab55si2092991pgc.333.2022.05.13.00.30.44; Fri, 13 May 2022 00:30:58 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=DLIGD7nk; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=F2+NdbtV; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358114AbiELTjj (ORCPT + 99 others); Thu, 12 May 2022 15:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358142AbiELTjh (ORCPT ); Thu, 12 May 2022 15:39:37 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79ABB27A8B7 for ; Thu, 12 May 2022 12:39:34 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652384371; 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=GUz/BjKKRmAHMrmDYPctuxo3Uvh/hIwMWxZ45+KcIM8=; b=DLIGD7nk/KRxYOD4MQIE9L5MM3/IryL1Q1VlmffS9cBtZXDvty2I6GR64wKr4JdtdrQ7Em V1zsOLF9FphUbcPjweUlBWgwVtGjbvYk3Ohh28gtBgWoJaWFLYw5e4NMclzaG7fnmDkpQ2 8KGPWhZ600aRFrKf1ElqqXmRStvAOXm8B0/I64cm88tocAPzPBUUEhtg1sdOjAkA+L+BT+ JoVR8gbChuUtLNuHPP5xJxa4ScXbQSR6vRgGSpvGyUp+LQ9Qjps/zPVNxTbt1h3SXCvaY6 pKfZ4uEuoiWAIbsmGuJ9xz7jd2Z1f83z5tP9/lmds1b6lAX2EAK/w6YyasGzFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652384371; 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=GUz/BjKKRmAHMrmDYPctuxo3Uvh/hIwMWxZ45+KcIM8=; b=F2+NdbtVyvY2xUHVu+eCjUsArIm5thXcsqqKvl0/k2KMT9Fl7EaeoXFThWoUXmB0A3pYPY xju0rp8Vh2RSElCw== To: Dave Hansen , Peter Zijlstra , "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , x86@kernel.org, Alexander Potapenko , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFCv2 00/10] Linear Address Masking enabling In-Reply-To: <20bada85-9203-57f4-2502-57a6fd11f3ea@intel.com> References: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> <20220511064943.GR76023@worktop.programming.kicks-ass.net> <20bada85-9203-57f4-2502-57a6fd11f3ea@intel.com> Date: Thu, 12 May 2022 21:39:30 +0200 Message-ID: <875ymav8ul.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, May 12 2022 at 10:22, Dave Hansen wrote: > 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. That'd be outright stupid. > 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. On/off yes, but is there an actual use case where such a mechanism would at start time dynamically chose the number of bits? > 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. Sure. No argument here. Thanks, tglx