From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 03/18] nds32: fix access_ok() checks in get/put_user Date: Fri, 18 Feb 2022 07:25:29 +0100 Message-ID: <20220218062529.GB22576@lst.de> References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-4-arnd@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/KICaY8CpwA0xCVQRBuArGzx9GOiHMx92F2VO+XymgM=; b=DdNbNwAec/fXWq Wu9J9XQIcwI+ZzCSOSZSTQ0PAPnoPGw/ciYR8QMRDhbbeXwzjjPbH5EP9Mj+xzrTcXSA6yQ8vmFOF Wuyz5kmVclobpLNMRpyNJYUcxPEdFUozCDRquJU6hNCOijZscUy2F5cpdsWiU2eceuLsQhibvyZD/ /H+iKoHMeo9NzxCNCqVrUTeRKTLJd9YEF0vLvyYW17yJlHD5nTE7EiJBEV+m1GyiTXZtm5dt2bzyb fvOVElWEN5b8RwYIG6GeVD8VzwUT8XBnEBzAVhHGjPMAKUjY0cBoQuE3qrSZfQCJiuJc0vF8J1TJl 5XEXLH387KqFqXFRlnlg==; Content-Disposition: inline In-Reply-To: <20220216131332.1489939-4-arnd@kernel.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+glpr-linux-riscv=m.gmane-mx.org@lists.infradead.org To: Arnd Bergmann Cc: Linus Torvalds , Christoph Hellwig , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, arnd@arndb.de, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux@armlinux.org.uk, will@kernel.org, guoren@kernel.org, bcain@codeaurora.org, geert@linux-m68k.org, monstr@monstr.eu, tsbogend@alpha.franken.de, nickhu@andestech.com, green.hu@gmail.com, dinguyen@kernel.org, shorne@gmail.com, deller@gmx.de, mpe@ellerman.id.au, peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, hca@linux.ibm.com, dalias@libc.org, davem@davemloft.net, richard@nod.at, x86@kernel.org, jcmvbkbc@gmail.com, ebiederm@xmission.com, akpm@linux-foundation.org, ardb@kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, li On Wed, Feb 16, 2022 at 02:13:17PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The get_user()/put_user() functions are meant to check for > access_ok(), while the __get_user()/__put_user() functions > don't. > > This broke in 4.19 for nds32, when it gained an extraneous > check in __get_user(), but lost the check it needs in > __put_user(). Looks good: Reviewed-by: Christoph Hellwig