[Devel] [PATCH hci-8.1 v2 5/6] timens: keep the option off where the vDSO updates its own time data

Eva Kurchatova eva.kurchatova at virtuozzo.com
Mon Oct 19 03:05:57 MSK 2026


Mainline moved sparc to the generic vDSO library in 7c5fc16c7a56
("sparc64: vdso: Switch to the generic vDSO library") before it let
TIME_NS go without the vDSO; this kernel has not, and its sparc vDSO
knows nothing of the offsets, so a task in a time namespace would read
host time from it and namespace time from the syscall. Keep the option
off where a vDSO updates its own time data without the generic library,
sparc here. x86_64 and arm64 keep it, and User Mode Linux, which has no
such vDSO, gets it.

https://virtuozzo.atlassian.net/browse/VSTOR-148112
Feature: fix ms/timens

Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 44b2d4426109..0b0ec9322846 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1306,6 +1306,7 @@ config UTS_NS
 
 config TIME_NS
 	bool "TIME namespace"
+	depends on GENERIC_GETTIMEOFDAY || !GENERIC_TIME_VSYSCALL
 	default y
 	help
 	  In this namespace boottime and monotonic clocks can be set.
-- 
2.56.0



More information about the Devel mailing list