x86/vdso: Handle faults on timens page
If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a namespace specific page which has the same layout as the VVAR page. 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-25-dima@arista.com
This commit is contained in:

committed by
Thomas Gleixner

parent
afaa7b5ac7
commit
af34ebeb86
@@ -3342,6 +3342,8 @@ static const struct vm_operations_struct special_mapping_vmops = {
|
||||
.fault = special_mapping_fault,
|
||||
.mremap = special_mapping_mremap,
|
||||
.name = special_mapping_name,
|
||||
/* vDSO code relies that VVAR can't be accessed remotely */
|
||||
.access = NULL,
|
||||
};
|
||||
|
||||
static const struct vm_operations_struct legacy_special_mapping_vmops = {
|
||||
|
Reference in New Issue
Block a user