From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 160A2ECE564 for ; Tue, 10 Sep 2024 09:21:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7FB4D8D0047; Tue, 10 Sep 2024 05:21:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AB2B8D0002; Tue, 10 Sep 2024 05:21:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 672658D0047; Tue, 10 Sep 2024 05:21:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 496318D0002 for ; Tue, 10 Sep 2024 05:21:00 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id F0FEF121469 for ; Tue, 10 Sep 2024 09:20:59 +0000 (UTC) X-FDA: 82548284238.24.D842244 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by imf12.hostedemail.com (Postfix) with ESMTP id A82CF40005 for ; Tue, 10 Sep 2024 09:20:57 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; spf=pass (imf12.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725960030; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=flamZV6BUHKlkgSmDzgtqsqGN4qMDht8wJAhpdU2U/o=; b=P7CLyGgIGdyeLpnagNVJAZewOkLqr53gluwO1juyn08MdCg27M0HYvGTfc/+NojYIoXYpn zj93H2T3e2gc7SxzhaxlhDnHcUBzf3y2R4W0aJeW8bqIYkATfyT5Xn51FGAKE85D8H0Zt8 HGPFU+qUEgt1Qg0TF7JzMCog/1tuT2o= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; spf=pass (imf12.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725960030; a=rsa-sha256; cv=none; b=MAFDHSBbRmoxNJO7qm7cIWeJmrTFMiM9SGDtIdIWGWctAGW9z5ZC8XjSpwgfgM5svBv3XH CEFQEWLMUR1fgOHOckuzrWQXSoHCCUEANfgJY34E9Iku3ly+jvE3zan8Cgq0QG9Uieux5Z rOz5rA3G9AMQgc3i56jK7cPjarMf8qs= Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4X2yqW1tPjz9sRr; Tue, 10 Sep 2024 11:20:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dnho_jJb4vl9; Tue, 10 Sep 2024 11:20:55 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4X2yqM6ht6z9sSf; Tue, 10 Sep 2024 11:20:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CEFAC8B773; Tue, 10 Sep 2024 11:20:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 94Smq4dlZKGe; Tue, 10 Sep 2024 11:20:47 +0200 (CEST) Received: from [192.168.232.177] (unknown [192.168.232.177]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 089D78B766; Tue, 10 Sep 2024 11:20:44 +0200 (CEST) Message-ID: <1aca8e4c-1c12-4624-a689-147ff60b75d6@csgroup.eu> Date: Tue, 10 Sep 2024 11:20:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits To: Charlie Jenkins , Michael Ellerman Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Guo Ren , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Nicholas Piggin , Naveen N Rao , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Andreas Larsson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Muchun Song , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , Shuah Khan , Christoph Hellwig , Michal Hocko , "Kirill A. Shutemov" , Chris Torek , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-abi-devel@lists.sourceforge.net References: <20240905-patches-below_hint_mmap-v3-0-3cd5564efbbb@rivosinc.com> <20240905-patches-below_hint_mmap-v3-1-3cd5564efbbb@rivosinc.com> <87zfol468z.fsf@mail.lhotse> Content-Language: fr-FR From: Christophe Leroy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspam-User: X-Stat-Signature: b1gyjb4777jjutfazsdddnw8djmfhd9s X-Rspamd-Queue-Id: A82CF40005 X-Rspamd-Server: rspam11 X-HE-Tag: 1725960057-754935 X-HE-Meta: U2FsdGVkX18J80UnHxExUhS8yhrbrpzNZ0RQkVWlqlWQH7QbVxo2c8nRQk/KLY5xbHKTOIjBEtH/D2CjfNrbnQPPZQ7mW6WGPQkohiafnSmvFneMQuMebDfv5WGZdfvkwiFBzYMyauIXjfxrwmwWrhAoMv/l6vJjXsxO/1Dp/S4Fgc5DLWyni/60yOnsXRrpL5wvijuprA404LkDw2IHrOMbQte8HZO7TLoq/YH49CvxM1dZGeGEHK9xbk2PUnamTpijg8moYKSLIwQJmwoUG3JccYzD4rKXBgGnQra5mEdPOGkbt2G25sSbNCS8jDPiYfSqSzFfaH3IcwxKWXxoScN+O5xfujm2PS42AjWBN1Z/WCe4RBR+c1fCpDw6VPs9TozElGC5byOuk5TXAy1vmsWsX2VUf/C/vVc5ntRfcTHeNcY+NZWmCuzbR6b9JeMKP4NKPUL0jlp2hh7WdMVdR35yzjkKSzP/PamxPnjcFDMws4BWTzuW/37XEBb//SqVFIHz9XIBnzDG4OXjJvaYkjzqaoS2OJ/3MV0R+aeoho8e2Z5E+tq4cxpwaL+XGoW2ThWP5ngUDIhEhrKrJxgTjakVCImod3rzTsRLo0kn4bYmbCJYF7/HQ9eBGz+HRvtF0/Xf8hilYnZybZgsOu/8cdji0tpNxTUtgJnMiYnYh5sScH2ta7FmKqkdqHTRRhOM8K9LIBBnroLRYKjMassOtm40kiRyabaBr0v8lvN+SAsJTnCDFDvUJ7X1MrxIgCsgWEiOtA+MQqjczNEqtB2gp/aXYIYyUQ0OH5pdUzl6zAjj634kTnctszrQqFmv0umuNEpWAf7u7UGCWizPLeRRgVr4BT693Med1iidtHpCjEQ2v5AW9hGCm972/Cioltk5A/dSzZu9JFrRTtaidJhHCTwg8MyyVzKLAVI3Nu2FYArK0IzhCaE1uUkpA1nZ4syvIpwcpBRuUWFrLmNbXym tnwSktpF 9ploZ+P8P/ZPzS6XrmsSebuhtIzLd7R0fuEb9wicr7LydIOTxY6G9LWYfsDTyLSYHAzbCR+24TxiW8ESZ/espjhqWZXumiSanmRgvWwW33duOVZozJcEmgM8uhSOv+nz62GP8WquEen38ZVupyjNAaRp9kNnTLj9PElpK1Sq4Hs9UFodUpFUxIHjYDZ129h5ZweYb X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: >>> diff --git a/include/uapi/linux/personality.h b/include/uapi/linux/personality.h >>> index 49796b7756af..cd3b8c154d9b 100644 >>> --- a/include/uapi/linux/personality.h >>> +++ b/include/uapi/linux/personality.h >>> @@ -22,6 +22,7 @@ enum { >>> WHOLE_SECONDS = 0x2000000, >>> STICKY_TIMEOUTS = 0x4000000, >>> ADDR_LIMIT_3GB = 0x8000000, >>> + ADDR_LIMIT_47BIT = 0x10000000, >>> }; >> >> I wonder if ADDR_LIMIT_128T would be clearer? >> > > I don't follow, what does 128T represent? > 128T is 128 Terabytes, that's the maximum size achievable with a 47BIT address, that naming would be more consistant with the ADDR_LIMIT_3GB just above that means a 3 Gigabytes limit. Christophe