diff options
author | Tong Tiangen <tongtiangen@huawei.com> | 2022-06-21 10:26:32 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-28 14:11:47 +0300 |
commit | c4ed0d73ede96f1f9a20b5af17aa793ca91f8c4c (patch) | |
tree | 7ef6a06759be20a5a12645380f88fece46a5f597 /arch/arm64/include/asm/asm-extable.h | |
parent | 59e8a1ce8f7b7dd3cf5979ded908158e7e8bd3bc (diff) | |
download | linux-c4ed0d73ede96f1f9a20b5af17aa793ca91f8c4c.tar.xz |
arm64: extable: make uaaccess helper use extable type EX_TYPE_UACCESS_ERR_ZERO
Currnetly, the extable type used by __arch_copy_from/to_user() is
EX_TYPE_FIXUP. In fact, It is more clearly to use meaningful
EX_TYPE_UACCESS_*.
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Link: https://lore.kernel.org/r/20220621072638.1273594-5-tongtiangen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/asm-extable.h')
-rw-r--r-- | arch/arm64/include/asm/asm-extable.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/asm-extable.h b/arch/arm64/include/asm/asm-extable.h index 2e1e6bc33bcd..73266553f8a2 100644 --- a/arch/arm64/include/asm/asm-extable.h +++ b/arch/arm64/include/asm/asm-extable.h @@ -64,6 +64,14 @@ .endm /* + * Create an exception table entry for uaccess `insn`, which will branch to `fixup` + * when an unhandled fault is taken. + */ + .macro _asm_extable_uaccess, insn, fixup + _ASM_EXTABLE_UACCESS(\insn, \fixup) + .endm + +/* * Create an exception table entry for `insn` if `fixup` is provided. Otherwise * do nothing. */ |