diff options
author | Andrei Vagin <avagin@gmail.com> | 2020-06-24 01:33:17 -0700 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2020-07-24 13:15:20 +0100 |
commit | 1b6867d2916bb91e94ddcc9c709e4779419fe391 (patch) | |
tree | 67255f70f601dd2b36f710d886ab39682f742cbd /include/vdso | |
parent | d53b5c013e1e7c3b43a7487171a84ee2acdd9597 (diff) | |
download | linux-1b6867d2916bb91e94ddcc9c709e4779419fe391.tar.bz2 |
arm64/vdso: Zap vvar pages when switching to a time namespace
The order of vvar pages depends on whether a task belongs to the root
time namespace or not. In the root time namespace, a task doesn't have a
per-namespace page. In a non-root namespace, the VVAR page which contains
the system-wide VDSO data is replaced with a namespace specific page
that contains clock offsets.
Whenever a task changes its namespace, the VVAR page tables are cleared
and then they will be re-faulted with a corresponding layout.
A task can switch its time namespace only if its ->mm isn't shared with
another task.
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200624083321.144975-3-avagin@gmail.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/vdso')
0 files changed, 0 insertions, 0 deletions