]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ARM: 9112/1: uaccess: add __{get,put}_kernel_nofault
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Aug 2021 07:30:25 +0000 (08:30 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 20 Aug 2021 10:39:27 +0000 (11:39 +0100)
commit2df4c9a741a0b5e2883cc356c1b724d1f739fb55
treefb0a1688f228d9003d2a7d23ac3422f944969ccc
parent7e2d8c29ecdd86afbcedb9d9a977bab8af527add
ARM: 9112/1: uaccess: add __{get,put}_kernel_nofault

These mimic the behavior of get_user and put_user, except
for domain switching, address limit checking and handling
of mismatched sizes, none of which are relevant here.

To work with pre-Armv6 kernels, this has to avoid TUSER()
inside of the new macros, the new approach passes the "t"
string along with the opcode, which is a bit uglier but
avoids duplicating more code.

As there is no __get_user_asm_dword(), I work around it
by copying 32 bit at a time, which is possible because
the output size is known.

Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/uaccess.h