[PATCH 0/3] nsproxy: support CLONE_NEWTIME with setns()

From: Christian Brauner
Date: Fri Jun 19 2020 - 11:36:48 EST


Hey,

So far setns() was missing time namespace support. This was partially
due to it simply not being implemented but also because
vdso_join_timens() could still fail which made switching to multiple
namespaces atomically problematic. This series first fixes
vdso_join_timens() to never fail, introduces timens_commit() and finally
adds CLONE_NEWTIME support for setns().

Please note, that arm is currently in the process of adding
vdso_join_timens() support (cf. [1]) so it might make sense to split the
vdso_join_timens() change out and route it to mainline as a fix so both
my series and the arm support can be rebased on top of it. I've Cced the
relevant people and I'm also replying to the arm thread now.

[1]: https://lore.kernel.org/lkml/20200602180259.76361-1-avagin@xxxxxxxxx/

Thanks!
Christian

Christian Brauner (3):
timens: make vdso_join_timens() always succeed
timens: add timens_commit() helper
nsproxy: support CLONE_NEWTIME with setns()

arch/x86/entry/vdso/vma.c | 6 ++----
include/linux/time_namespace.h | 13 +++++++++----
kernel/nsproxy.c | 21 +++++++++++++++++++--
kernel/time/namespace.c | 22 ++++++++--------------
4 files changed, 38 insertions(+), 24 deletions(-)


base-commit: b3a9e3b9622ae10064826dccb4f7a52bd88c7407
--
2.27.0