[PATCH v2 0/2] timens: Remove dependency on the vDSO

Thomas Weißschuh posted 2 patches 1 week ago
MAINTAINERS                      |   2 +
include/linux/time_namespace.h   |  36 ++++-----
init/Kconfig                     |   4 +-
kernel/time/Makefile             |   1 +
kernel/time/namespace.c          | 132 ++-----------------------------
kernel/time/namespace_internal.h |  28 +++++++
kernel/time/namespace_vdso.c     | 162 +++++++++++++++++++++++++++++++++++++++
lib/vdso/datastore.c             |  25 ------
8 files changed, 220 insertions(+), 170 deletions(-)
[PATCH v2 0/2] timens: Remove dependency on the vDSO
Posted by Thomas Weißschuh 1 week ago
Previously, missing time namespace support in the vDSO meant that time
namespaces needed to be disabled globally. This was expressed in a hard
dependency on the generic vDSO library. This also meant that architectures
without any vDSO or only a stub vDSO could not enable time namespaces.
Now that all architectures using a real vDSO are using the generic library,
that dependency is not necessary anymore.

Remove the dependency and let all architectures enable time namespaces.

Based on tip/timers/vdso.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Changes in v2:
- Convert mutex locking to guard() while at it.
- Link to v1: https://patch.msgid.link/20260323-vdso-timens-decoupling-v1-0-0181a809b7a6@linutronix.de

---
Thomas Weißschuh (2):
      vdso/timens: Move functions to new file
      timens: Remove dependency on the vDSO

 MAINTAINERS                      |   2 +
 include/linux/time_namespace.h   |  36 ++++-----
 init/Kconfig                     |   4 +-
 kernel/time/Makefile             |   1 +
 kernel/time/namespace.c          | 132 ++-----------------------------
 kernel/time/namespace_internal.h |  28 +++++++
 kernel/time/namespace_vdso.c     | 162 +++++++++++++++++++++++++++++++++++++++
 lib/vdso/datastore.c             |  25 ------
 8 files changed, 220 insertions(+), 170 deletions(-)
---
base-commit: 800023f70fe50d2363cf89525944f16c35f18cfc
change-id: 20250908-vdso-timens-decoupling-24c0eee0c6c4

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh@linutronix.de>