UPSTREAM: 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)
committerJeff Vander Stoep <jeffv@google.com>
Thu, 20 Oct 2016 22:40:41 +0000 (15:40 -0700)
commit4a8b645cef3caa87b85269078d9e1f02115107b6
tree26d35adb9ec85c8f939791dd01f6fd50e4946eb8
parentffa907b7664062250d813d97fb9a9bdb5511897a
UPSTREAM: 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>
Bug: 30369029
(cherry picked from commit 8fe88a4145cdeee486af60e61f5d5a14f804fa45)
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Change-Id: Ia40bb68eb5ba7df14214243657948d469f1d5717
arch/arm64/include/asm/module.h