]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04b138c8588121076ec1b989b5fd73d079aa2f1d
tree02f118302b7d2f01c0ee35a026e406976c23fc73
parentd6119e578be69ce58f30e2cd6cd6e1dbd46b30a9
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