Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp420635pxm; Wed, 23 Feb 2022 03:25:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNTSeLF6cKRpkE6zMD6lEO0BsMvRaS5NCX7jH4weel/Iw4h9j7znCrZmtu0Ej9oWFoVcYt X-Received: by 2002:a05:6a00:1f08:b0:4c6:eb85:be8c with SMTP id be8-20020a056a001f0800b004c6eb85be8cmr28599098pfb.62.1645615546740; Wed, 23 Feb 2022 03:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645615546; cv=none; d=google.com; s=arc-20160816; b=UrzLFqR+dgjJFYeTO05dksC8jRKwIBWiGShc7e+mzeGDWFP13bGvyQtlgS0LgMki79 gDRR7bnXwS3X3XnkAnSeIvS7BfmRQrw9jj927aNQ/nHsaoStIMo9YL05CnoAt+bOAGvx OtSiay6pGbGOt67dS/Xx0xRYdQWMpv89X4iDe9Pn6ZCKCF4zQw7yU5sALYHCmKPGeMNj 1ucDJ+4AjAxjNHrwQA/NJS/x5KsZWavO+cJFdcI1++2hPzOF7jXW44XDKip5ty58yJ1g PzXsGA24IVr6noOaWG4kOiN0f2vhXh0tGpnfGpepEPpv2tzvFcGS7XwJ5sEIOaMCEPO0 Mznw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nbQWdybq3K4wGc4MSgDEIbkJcJTg6lPFRs9q+g05TyU=; b=stHnUydoIp00KwFgZ5BhHN2Z178ENPMyPNlPfHD9NvCZMupR3vixiFYLsNem+LN5iC peFJ7DMkFvxz9a5XAHGtcem/B2weMPzyS+90cYLXd2Gfe7SFv8UtQsl9I5i5eNiCmxet W47JxYrkLfSarqETLjgndUTCkjWm9PXiPmqWGCHCJ0YmFsgGkWajQhGYYLIx+cWCBHiY kNLzPmBlGswRO3HiWoZ/jsang1nOKVjj/9thduXf2SY/qHHvH+uZm1sjMsJ5rdus1c7k j9zY6AELzbOGP/ztk5LKtLXFWcSJFzCVBXbvitaEjb8LYnutLIofJQnJ1PzmMAZmjsMm P74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qprkztvt; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a64si21977725pge.230.2022.02.23.03.25.30; Wed, 23 Feb 2022 03:25: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=@kernel.org header.s=k20201202 header.b=Qprkztvt; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239290AbiBWJ1k (ORCPT + 99 others); Wed, 23 Feb 2022 04:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235331AbiBWJ1g (ORCPT ); Wed, 23 Feb 2022 04:27:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA632AE58; Wed, 23 Feb 2022 01:27:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3CA406169C; Wed, 23 Feb 2022 09:27:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BF46C340F9; Wed, 23 Feb 2022 09:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645608427; bh=D2jUPs6ryRSFqPbSylqUkNdDZuOthbzsmeMEmvziyjY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Qprkztvt/vehYNHRcEK8aqRshRS+P9DBpcRom+Ea4pnSLocGv1eBVL2v483vi1brP yniMjXK/S41L4Xb5GxmMolqLanH2PfdtLhr4aslEr3qRf3FRgZXiElzFJkvdC4w2nN JS6y8Uxpo3q6QV2cYcl6Kk1+VLa3u1w7dstKq6JdbSKRuvb7qsDfR1olUXgTRiM4lW h9gXptbf8SQ/Kn95+tqUCiEvk6NU1742fRGNTdgV5FXZ+Nd86Q2w5JlwL02OxgP5C1 +ol87y0DUBe7bzeKEkX3OWQML5KSSUNMqefzAhTnHd6BCu3L5B6sV9dAoeIrCnSrMr hGVco4bZ15heQ== Received: by mail-wm1-f51.google.com with SMTP id p4so3139192wmg.1; Wed, 23 Feb 2022 01:27:07 -0800 (PST) X-Gm-Message-State: AOAM533rjH2d5XuwiAcxoxjxPHchWShU53/wM3Yax8XoRhTZ4LMUtHmz eSTAI3Q94+vqKovfLZNqqD5cgnhheiiFvMqGvbc= X-Received: by 2002:a05:600c:1d27:b0:37c:74bb:2b4d with SMTP id l39-20020a05600c1d2700b0037c74bb2b4dmr6779098wms.82.1645608425823; Wed, 23 Feb 2022 01:27:05 -0800 (PST) MIME-Version: 1.0 References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-10-arnd@kernel.org> <20220223074127.GA8287@alpha.franken.de> In-Reply-To: <20220223074127.GA8287@alpha.franken.de> From: Arnd Bergmann Date: Wed, 23 Feb 2022 10:26:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 09/18] mips: use simpler access_ok() To: Thomas Bogendoerfer Cc: Linus Torvalds , Christoph Hellwig , linux-arch , Linux-MM , Linux API , Arnd Bergmann , Linux Kernel Mailing List , Al Viro , Russell King - ARM Linux , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Nick Hu , Greentime Hu , Dinh Nguyen , Stafford Horne , Helge Deller , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Mark Rutland , Heiko Carstens , Rich Felker , David Miller , Richard Weinberger , "the arch/x86 maintainers" , Max Filippov , "Eric W . Biederman" , Andrew Morton , Ard Biesheuvel , alpha , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-csky@vger.kernel.org, "open list:QUALCOMM HEXAGON..." , linux-ia64@vger.kernel.org, linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Openrisc , Parisc List , linuxppc-dev , linux-riscv , linux-s390 , Linux-sh list , sparclinux , linux-um , "open list:TENSILICA XTENSA PORT (xtensa)" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Feb 23, 2022 at 8:41 AM Thomas Bogendoerfer wrote: > > On Wed, Feb 16, 2022 at 02:13:23PM +0100, Arnd Bergmann wrote: > > diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h > > index db9a8e002b62..d7c89dc3426c 100644 > > --- a/arch/mips/include/asm/uaccess.h > > +++ b/arch/mips/include/asm/uaccess.h > > @@ -19,6 +19,7 @@ > > #ifdef CONFIG_32BIT > > > > #define __UA_LIMIT 0x80000000UL > > +#define TASK_SIZE_MAX __UA_LIMIT > > using KSEG0 instead would IMHO be the better choice. This gives the > chance to remove __UA_LIMIT completly after cleaning up ptrace.c Ok, changed now. Arnd