]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: uaccess: implement unsafe accessors
authorJulien Thierry <julien.thierry@arm.com>
Thu, 6 Sep 2018 11:09:56 +0000 (12:09 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Sep 2018 15:27:56 +0000 (16:27 +0100)
commit661709c5273572d93a7ace0c796645f3caaad4b2
treefb9a2e0d7f385293d8513bc81e893e7694823ac1
parent17e83386a8fffcb8d4575d6da73ed63cabf2f9fe
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.

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