arm64: use fixmap for text patching
authorLaura Abbott <[email protected]>
Thu, 22 Jan 2015 01:36:05 +0000 (01:36 +0000)
committerCatalin Marinas <[email protected]>
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 <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Tested-by: Kees Cook <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Signed-off-by: Laura Abbott <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/include/asm/fixmap.h
arch/arm64/kernel/insn.c