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 446A4C433F5 for ; Tue, 22 Feb 2022 16:36:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AF9008D0005; Tue, 22 Feb 2022 11:36:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AA6678D0003; Tue, 22 Feb 2022 11:36:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9969C8D0005; Tue, 22 Feb 2022 11:36:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0154.hostedemail.com [216.40.44.154]) by kanga.kvack.org (Postfix) with ESMTP id 871B68D0003 for ; Tue, 22 Feb 2022 11:36:44 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 4683C7FAB1 for ; Tue, 22 Feb 2022 16:36:44 +0000 (UTC) X-FDA: 79170969528.28.FA207DE Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by imf24.hostedemail.com (Postfix) with ESMTP id 9541018000D for ; Tue, 22 Feb 2022 16:36:43 +0000 (UTC) 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-Stat-Signature: ahstgqta64pdint381ioq3tdj7yinj83 X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=none; spf=none (imf24.hostedemail.com: domain of tsbogend@alpha.franken.de has no SPF policy when checking 193.175.24.41) smtp.mailfrom=tsbogend@alpha.franken.de; dmarc=none X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 9541018000D X-HE-Tag: 1645547803-131701 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: 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 ]