arm64: vdso: move data page before code pages
authorWill Deacon <will.deacon@arm.com>
Wed, 9 Jul 2014 18:22:13 +0000 (19:22 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 21 Jan 2015 22:55:42 +0000 (22:55 +0000)
commit82a95d0521cb6258559d18dca736da8272ba05a7
tree5a17f67696e00400909e35505387a7b9031445cd
parent95c91bdd8eafdc74337049c45d74c903b7dac49c
arm64: vdso: move data page before code pages

Andy pointed out that binutils generates additional sections in the vdso
image (e.g. section string table) which, if our .text section gets big
enough, could cross a page boundary and end up screwing up the location
where the kernel expects to put the data page.

This patch solves the issue in the same manner as x86_32, by moving the
data page before the code pages.

Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 601255ae3c98fdeeee3a8bb4696425e4f868b4f1)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/kernel/vdso.c
arch/arm64/kernel/vdso/vdso.lds.S