x86/vdso: Zap vvar pages when switching to a time namespace
authorDmitry Safonov <dima@arista.com>
Tue, 12 Nov 2019 01:27:15 +0000 (01:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:59 +0000 (12:20 +0100)
commit70ddf65184ec1e8989322f35193e4fde7377f0cc
tree57c0c780122cece61b02950fe7c2ee6abd5457f1
parente6b28ec65b6d433624a2c290073bc356c4fce914
x86/vdso: Zap vvar pages when switching to a time namespace

The VVAR page layout depends on whether a task belongs to the root or
non-root time namespace. Whenever a task changes its namespace, the VVAR
page tables are cleared and then they will be re-faulted with a
corresponding layout.

Co-developed-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191112012724.250792-27-dima@arista.com
arch/x86/entry/vdso/vma.c
include/linux/time_namespace.h
kernel/time/namespace.c