]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerWill Deacon <will.deacon@arm.com>
Mon, 17 Oct 2016 11:42:16 +0000 (12:42 +0100)
commit95b0dff71239a86b1eaa52d4d96fdf5e15b45f01
treeeca4b672bd771e8633d9a496c8a70ce3c3058a47
parent1df7eb1ca477b826c461b694d57789b4da41844a
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: 3b6fc70b4cce ("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>
arch/arm64/include/asm/module.h