]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:45:29 +0000 (03:45 -0400)
commitf1816cea0102651ce0924c57bb5a0dc0e15a9e49
tree39f1a7f95227cdd37b8ed3a56f142bd12f905766
parent44870b14a4b3fe0dba53858ba55851c7856847c3
arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y

commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/module.h