diff options
author | Andrei Vagin <[email protected]> | 2020-06-24 01:33:17 -0700 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2020-07-24 13:15:20 +0100 |
commit | 1b6867d2916bb91e94ddcc9c709e4779419fe391 (patch) | |
tree | 67255f70f601dd2b36f710d886ab39682f742cbd /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | d53b5c013e1e7c3b43a7487171a84ee2acdd9597 (diff) |
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 <[email protected]>
Reviewed-by: Vincenzo Frascino <[email protected]>
Reviewed-by: Dmitry Safonov <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions