]> 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)
commit552ab9d6bf3908e65b697fed3c3f99993222f5ad
tree02f118302b7d2f01c0ee35a026e406976c23fc73
parent781ac040cb6ce38c8f8d05e9a516404284835a52
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