]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/vdso: use the fault callback to map vvar pages
authorAndrei Vagin <avagin@gmail.com>
Wed, 24 Jun 2020 08:33:16 +0000 (01:33 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Jul 2020 12:15:20 +0000 (13:15 +0100)
commit07cc5af11c5df2bff4b4ba92cc7728af9e349f73
treec24e33b952d838bad3ae301104d5fce0e6c5b3d8
parent88732dd384b9767583d52f7ebc7696d1966fdb10
arm64/vdso: use the fault callback to map vvar pages

Currently the vdso has no awareness of time namespaces, which may
apply distinct offsets to processes in different namespaces. To handle
this within the vdso, we'll need to expose a per-namespace data page.

As a preparatory step, this patch separates the vdso data page from
the code pages, and has it faulted in via its own fault callback.
Subsquent patches will extend this to support distinct pages per time
namespace.

The vvar vma has to be installed with the VM_PFNMAP flag to handle
faults via its vma fault callback.

Signed-off-by: Andrei Vagin <avagin@gmail.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20200624083321.144975-2-avagin@gmail.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/vdso.c