]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: avoid virt_to_page() translations on kernel symbols
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 30 Mar 2016 14:45:56 +0000 (16:45 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 14 Apr 2016 15:31:49 +0000 (16:31 +0100)
commit1921876a6f5305909aa2ac0fb21366db2c642ed2
treed6f08bc4b8ef2f63870a5a5c7f36add0d140e0db
parent61186ca075e21d9f6488dea99be5a42598fe754c
arm64: vdso: avoid virt_to_page() translations on kernel symbols

The translation performed by virt_to_page() is only valid for linear
addresses, and kernel symbols are no longer in the linear mapping.
So perform the __pa() translation explicitly, which does the right
thing in either case, and only then translate to a struct page offset.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/vdso.c