Thread (75 messages) 75 messages, 14 authors, 2022-02-25

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

From: Arnd Bergmann <arnd@kernel.org>
Date: 2022-02-24 07:06:15
Also in: linux-alpha, linux-arch, linux-m68k, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, linux-um, linuxppc-dev, lkml, sparclinux

On Thu, Feb 24, 2022 at 12:30 AM Dinh Nguyen [off-list ref] wrote:
On 2/16/22 07:13, Arnd Bergmann wrote: From: Arnd Bergmann [off-list ref]
quoted
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()

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Thanks! Could you also have a look at patch 2 (uaccess: fix nios2 and
microblaze get_user_8)? That one is actually more critical, and should
be backported to stable kernels.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help