android_kernel_oneplus_msm8998/arch/arm64
Steve Capper 9e1485b1b5 arm64: Initialise high_memory global variable earlier
commit f24e5834a2c3f6c5f814a417f858226f0a010ade upstream.

The high_memory global variable is used by
cma_declare_contiguous(.) before it is defined.

We don't notice this as we compute __pa(high_memory - 1), and it looks
like we're processing a VA from the direct linear map.

This problem becomes apparent when we flip the kernel virtual address
space and the linear map is moved to the bottom of the kernel VA space.

This patch moves the initialisation of high_memory before it used.

Fixes: f7426b983a ("mm: cma: adjust address limit to avoid hitting low/high memory boundary")
Signed-off-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:22:08 +01:00
..
boot arm64: dts: NS2: reserve memory for Nitro firmware 2017-11-21 09:21:21 +01:00
configs arm64 fixes and clean-ups: 2015-11-12 15:33:11 -08:00
crypto crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes 2017-02-09 08:02:45 +01:00
include arm64: KVM: fix VTTBR_BADDR_MASK BUG_ON off-by-one 2017-12-16 10:33:50 +01:00
kernel arm64: fpsimd: Prevent registers leaking from dead tasks 2017-12-16 10:33:50 +01:00
kvm arm64: KVM: Survive unknown traps from guests 2017-12-16 10:33:52 +01:00
lib arm64: add KASAN support 2015-10-12 17:46:36 +01:00
mm arm64: Initialise high_memory global variable earlier 2017-12-25 14:22:08 +01:00
net bpf, arm64: fix jit branch offset related to ldimm64 2017-05-14 13:32:58 +02:00
xen
Kconfig irqchip/gicv3-its: numa: Enable workaround for Cavium thunderx erratum 23144 2016-09-15 08:27:47 +02:00
Kconfig.debug arm64: remove redundant FRAME_POINTER kconfig option and force to select it 2015-11-10 10:36:00 +00:00
Kconfig.platforms ARM: DT updates for v4.4 2015-11-10 15:06:26 -08:00
Makefile arm64: errata: Add -mpc-relative-literal-loads to build flags 2016-03-03 15:07:08 -08:00