Re: [PATCH v2 07/18] nios2: drop access_ok() check from __put_user()

2022-02-23 Thread Arnd Bergmann
On Thu, Feb 24, 2022 at 12:30 AM Dinh Nguyen wrote: > On 2/16/22 07:13, Arnd Bergmann wrote: From: Arnd Bergmann > > > > Unlike other architectures, the nios2 version of __put_user() has an > > extra check for access_ok(), preventing it from being used to implement > > __put_kernel_nofault(). > >

Re: [PATCH v2 07/18] nios2: drop access_ok() check from __put_user()

2022-02-23 Thread Dinh Nguyen
On 2/16/22 07:13, Arnd Bergmann wrote: From: Arnd Bergmann Unlike other architectures, the nios2 version of __put_user() has an extra check for access_ok(), preventing it from being used to implement __put_kernel_nofault(). Split up put_user() along the same lines as __get_user()/get_user()

Re: [PATCH v2 09/18] mips: use simpler access_ok()

2022-02-23 Thread Linus Torvalds
On Mon, Feb 21, 2022 at 5:25 AM Thomas Bogendoerfer wrote: > > With this patch [ .. snip snip ..] > I at least get my simple test cases fixed, but I'm not sure this is > correct. I think you really want to do that anyway, just to get things like wild kernel pointers right (ie think get_kernel_nof

Re: [PATCH v2 09/18] mips: use simpler access_ok()

2022-02-23 Thread Arnd Bergmann
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.