Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp122810pxm; Tue, 22 Feb 2022 18:29:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIP9oX9hH2gYRLLgyt6mJLg4b5Don+u67V19HQlJqb2dn7rL7AVV7B8o8k5asGhA0265Hx X-Received: by 2002:aa7:d343:0:b0:40a:1425:8896 with SMTP id m3-20020aa7d343000000b0040a14258896mr30053525edr.242.1645583341341; Tue, 22 Feb 2022 18:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645583341; cv=none; d=google.com; s=arc-20160816; b=0kcUGd/WAq9GSYvcqYY4F5TmgYczHik27Lb+9/YPH5Z+F8o+5D6kuce+KEEyvAhgaZ rTlpzRnh8P13q3X37lMp3JJJ+1H90MuKZtCC+vdqgsL9jdPytHx67P25QG7k/Qc0cDPz NpX5MTY4bzRqR2LBLnFXL5UDHI2lRp4wbvfBls30E0+aW+VHKUtx4DzwQkZdK7+8ohSL Zb8zuJQlQIwmi2JeVZxllWBXEJ8LgFyrH8DQXtFsLcryeExoBA3EAbjmrO18iGtxld74 mhOBaHAtdTAh9hSOByYfFo5mAEtrtJ/dCSIPBPJAXzEUDR5UNULTTPiM/5c0AOZcaajq LIRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PCIkqAU7oT/tHtjNBI3E0i0kJ6GnmrPFFfAtMR4ZC9Q=; b=0ZMat4I4Vi1/R/0WB5afYeIIULK4NRHwdPWJYkGuteFNq6/5YdHLxCi+Jpc+QgQHJO jnsbebBBKyKDMhW+QkcVNP05aR7xXPiEgG4eW7RUFNusKCjJKmoKHZqCIvUMnPG5SR9Z M+cYijlsmNZ7WZopEnEADWB9WAQ98CbjYqRpJ/9gW26Sl9ETFsKDkSRNZSoLtT77wtOE f67PrWvACS1+Q6alTcqZI7Jwl1sxFAF0NT9N+es/cztDkRMxsZk9LuKN9gbhNkYSetCH hRnPnCM0XR2V/eeuqGFwTBdBjVNmxpxc89yzHUO7Nrop2KhR3t+hlgGx9MK8YddH3sFk Hqdw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp27si14475247ejc.727.2022.02.22.18.28.38; Tue, 22 Feb 2022 18:29:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234133AbiBVQhC (ORCPT + 99 others); Tue, 22 Feb 2022 11:37:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233379AbiBVQg7 (ORCPT ); Tue, 22 Feb 2022 11:36:59 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 34F721172; Tue, 22 Feb 2022 08:36:31 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nMY9J-00055T-00; Tue, 22 Feb 2022 17:36:25 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 38AACC2609; Tue, 22 Feb 2022 17:36:15 +0100 (CET) Date: Tue, 22 Feb 2022 17:36:15 +0100 From: Thomas Bogendoerfer To: Arnd Bergmann 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)" Subject: Re: [PATCH v2 09/18] mips: use simpler access_ok() Message-ID: <20220222163615.GA14620@alpha.franken.de> References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-10-arnd@kernel.org> <20220221132456.GA7139@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_PERMERROR 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 Mon, Feb 21, 2022 at 03:31:23PM +0100, Arnd Bergmann wrote: > I'll update it this way, otherwise I'd need help in form of a patch > that changes the exception handling so __get_user/__put_user > also return -EFAULT for an address error. https://lore.kernel.org/all/20220222155345.138861-1-tsbogend@alpha.franken.de/ That does the trick. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]