diff options
author | Andrei Vagin <avagin@gmail.com> | 2020-06-24 11:33:17 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2020-07-24 15:15:20 +0300 |
commit | 1b6867d2916bb91e94ddcc9c709e4779419fe391 (patch) | |
tree | 67255f70f601dd2b36f710d886ab39682f742cbd /arch/arm64/include | |
parent | d53b5c013e1e7c3b43a7487171a84ee2acdd9597 (diff) | |
download | linux-1b6867d2916bb91e94ddcc9c709e4779419fe391.tar.xz |
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 'arch/arm64/include')
0 files changed, 0 insertions, 0 deletions