]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: uaccess: Implement unsafe accessors
authorJulien Thierry <julien.thierry@arm.com>
Tue, 15 Jan 2019 13:58:27 +0000 (13:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Jan 2019 12:30:48 +0000 (12:30 +0000)
commitf8475f987c0da18d12b012f0df4f689f4b83f524
tree54e5db9859e03f183308bb2e86058664eba4ef07
parente322b8d648be547113f71fc8cb28f5ac2e299bf1
arm64: uaccess: Implement unsafe accessors

Current implementation of get/put_user_unsafe default to get/put_user
which toggle PAN before each access, despite having been told by the caller
that multiple accesses to user memory were about to happen.

Provide implementations for user_access_begin/end to turn PAN off/on and
implement unsafe accessors that assume PAN was already turned off.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/uaccess.h