]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm64: extable: add new extable type EX_TYPE_KACCESS_ERR_ZERO support
authorTong Tiangen <tongtiangen@huawei.com>
Tue, 21 Jun 2022 07:26:29 +0000 (07:26 +0000)
committerWill Deacon <will@kernel.org>
Tue, 28 Jun 2022 11:11:00 +0000 (12:11 +0100)
commit4953fc3d3270b7466a3b334838b76308c75f7751
treed4d99ecc033576f5dcd3ba8f7b1e83db363ef24f
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
arm64: extable: add new extable type EX_TYPE_KACCESS_ERR_ZERO support

Currently, The extable type EX_TYPE_UACCESS_ERR_ZERO is used by
__get/put_kernel_nofault(), but those helpers are not uaccess type, so we
add a new extable type EX_TYPE_KACCESS_ERR_ZERO which can be used by
__get/put_kernel_no_fault().

This is also to prepare for distinguishing the two types in machine check
safe process.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220621072638.1273594-2-tongtiangen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/asm-extable.h
arch/arm64/include/asm/uaccess.h
arch/arm64/mm/extable.c