OSDN Git Service

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)
commit0bd3ef34d2a8dd4056560567073d8bfc5da92e39
tree54e5db9859e03f183308bb2e86058664eba4ef07
parent13e4cdd785867a632516f9cb5dfbe5ba20822820
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