arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 13 Oct 2016 16:42:09 +0000 (17:42 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 22 Mar 2017 09:39:48 +0000 (17:39 +0800)
commit7841412d4c9d4977e62adaf05e6b55461ee25847
tree5e75cbcf3cc71c2fb31377f4ceb0656af2ef639e
parentcac5bc4eaee18bad89a256aa62627508df7cec91
arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y

As it turns out, the KASLR code breaks CONFIG_MODVERSIONS, since the
kcrctab has an absolute address field that is relocated at runtime
when the kernel offset is randomized.

This has been fixed already for PowerPC in the past, so simply wire up
the existing code dealing with this issue.

Cc: <stable@vger.kernel.org>
Fixes: f80fb3a3d508 ("arm64: add support for kernel ASLR")
Tested-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/module.h