]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit946ce5a89d3b9a27d25b0beb0356c906a31baa1b
tree0d484f889d6c1f7ba8cc4ec1984ee5d7350869b5
parenta6a665e459f3cdf26a27056f3915ea2e1c50cf5c
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