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)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 17 Jul 2014 15:18:57 +0000 (16:18 +0100)
commit601255ae3c98fdeeee3a8bb4696425e4f868b4f1
tree02f118302b7d2f01c0ee35a026e406976c23fc73
parent2fea7f6c98f5957e539eb8aa0ce849729b900342
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>
arch/arm64/kernel/vdso.c
arch/arm64/kernel/vdso/vdso.lds.S