diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2015-01-22 02:36:05 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-01-22 12:50:56 +0100 |
commit | 2f896d5866107e2926dcdec34a7d40bc56dd2951 (patch) | |
tree | 45269256d0e928bcc51838ce63f2913abe252480 /arch/arm64/include | |
parent | arm64: respect mem= for EFI (diff) | |
download | linux-2f896d5866107e2926dcdec34a7d40bc56dd2951.tar.xz linux-2f896d5866107e2926dcdec34a7d40bc56dd2951.zip |
arm64: use fixmap for text patching
When kernel text is marked as read only, it cannot be modified directly.
Use a fixmap to modify the text instead in a similar manner to
x86 and arm.
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/fixmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/fixmap.h b/arch/arm64/include/asm/fixmap.h index 9ef6eca905ca..defa0ff98250 100644 --- a/arch/arm64/include/asm/fixmap.h +++ b/arch/arm64/include/asm/fixmap.h @@ -49,6 +49,7 @@ enum fixed_addresses { FIX_BTMAP_END = __end_of_permanent_fixed_addresses, FIX_BTMAP_BEGIN = FIX_BTMAP_END + TOTAL_FIX_BTMAPS - 1, + FIX_TEXT_POKE0, __end_of_fixed_addresses }; |