Files
kernel_google_wahoo/arch/arm64/include/asm
Ard Biesheuvel 51a5438ce6 arm64: assembler: make adr_l work in modules under KASLR
commit 41c066f2c4d436c535616fe182331766c57838f0 upstream

When CONFIG_RANDOMIZE_MODULE_REGION_FULL=y, the offset between loaded
modules and the core kernel may exceed 4 GB, putting symbols exported
by the core kernel out of the reach of the ordinary adrp/add instruction
pairs used to generate relative symbol references. So make the adr_l
macro emit a movz/movk sequence instead when executing in module context.

While at it, remove the pointless special case for the stack pointer.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
[ dannf: backported to v4.4 by replacing the 3-arg adr_l macro in head.S
  with it's output, as this commit drops the 3-arg variant ]
Fixes: c042dd600f ("crypto: arm64/sha - avoid non-standard inline asm tricks")
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-11 13:36:45 +01:00
..
2014-04-18 11:40:33 +02:00
2015-10-28 19:09:17 +00:00
2015-11-17 12:05:18 +00:00
2014-11-05 09:03:25 +01:00
2015-07-27 11:08:42 +01:00
2015-09-16 16:53:39 +02:00
2014-09-25 15:35:41 +01:00
2015-05-19 15:27:42 +01:00
2014-11-28 10:24:59 +00:00
2015-10-12 17:46:36 +01:00
2014-07-10 11:06:00 +01:00
2015-10-19 17:55:12 +01:00
2015-10-14 13:51:41 +01:00
2015-10-14 13:51:41 +01:00