arm64: insn: avoid virt_to_page() translations on core kernel symbols
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 30 Mar 2016 14:45:59 +0000 (16:45 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 14 Apr 2016 15:31:49 +0000 (16:31 +0100)
commite44308e62e19b42810207780a2a32148af0cb5d9
tree0d484f889d6c1f7ba8cc4ec1984ee5d7350869b5
parent22b6f3b0549be61a2d5fe8210ff7628e6d2d8185
arm64: insn: avoid virt_to_page() translations on core kernel symbols

Before restricting virt_to_page() to the linear mapping, ensure that
the text patching code does not use it to resolve references into the
core kernel text, which is mapped in the vmalloc area.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/insn.c