]> Git Repo - linux.git/commit
arm64: errata: add module build workaround for erratum #843419
authorWill Deacon <[email protected]>
Tue, 17 Mar 2015 12:15:02 +0000 (12:15 +0000)
committerWill Deacon <[email protected]>
Thu, 17 Sep 2015 10:57:03 +0000 (11:57 +0100)
commitdf057cc7b4fa59e9b55f07ffdb6c62bf02e99a00
tree866dd49a0acc98317cc3866738f3b417f44eccf2
parentbdec97a855ef1e239f130f7a11584721c9a1bf04
arm64: errata: add module build workaround for erratum #843419

Cortex-A53 processors <= r0p4 are affected by erratum #843419 which can
lead to a memory access using an incorrect address in certain sequences
headed by an ADRP instruction.

There is a linker fix to generate veneers for ADRP instructions, but
this doesn't work for kernel modules which are built as unlinked ELF
objects.

This patch adds a new config option for the erratum which, when enabled,
builds kernel modules with the mcmodel=large flag. This uses absolute
addressing for all kernel symbols, thereby removing the use of ADRP as
a PC-relative form of addressing. The ADRP relocs are removed from the
module loader so that we fail to load any potentially affected modules.

Cc: <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/Kconfig
arch/arm64/Makefile
arch/arm64/kernel/module.c
This page took 0.05146 seconds and 4 git commands to generate.