arm64: use fixmap for text patching
authorLaura Abbott <lauraa@codeaurora.org>
Thu, 22 Jan 2015 01:36:05 +0000 (01:36 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 22 Jan 2015 11:50:56 +0000 (11:50 +0000)
commit2f896d5866107e2926dcdec34a7d40bc56dd2951
tree45269256d0e928bcc51838ce63f2913abe252480
parent6083fe74b7bfffc2c7be8c711596608bda0cda6e
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>
arch/arm64/include/asm/fixmap.h
arch/arm64/kernel/insn.c