[PATCH 2/5] um: Kconfig: select generic vDSO options for UML (MMU only)
Haikal Firmansyah
haikalfirmansyh.kernel at gmail.com
Sun Nov 22 05:42:17 PST 2026
Select GENERIC_GETTIMEOFDAY and GENERIC_VDSO_OVERFLOW_PROTECT
so UML can use the generic vDSO framework (lib/vdso) instead of
its hand-written syscall-shim vDSO. This is the Kconfig half of
the generic-vDSO conversion; the code half follows in the next
patches.
The selects are gated on MMU: GENERIC_GETTIMEOFDAY pulls in
VDSO_DATASTORE and TIME_NS_VDSO, whose code calls MMU-only
functions (_install_special_mapping, vma_is_special_mapping,
zap_vma_range) and therefore breaks the NOMMU build at link time.
NOMMU UML keeps the old shim vDSO (um_vdso.c), which needs none of
this. This follows the existing pattern in arch/riscv/Kconfig,
which selects GENERIC_GETTIMEOFDAY only "if MMU && 64BIT".
Signed-off-by: Haikal Firmansyah <haikalfirmansyh.kernel at gmail.com>
---
arch/um/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/um/Kconfig b/arch/um/Kconfig
index 7245e3ada..faf4b197c 100644
--- a/arch/um/Kconfig
+++ b/arch/um/Kconfig
@@ -33,6 +33,8 @@ config UML
select GENERIC_IRQ_SHOW
select GENERIC_CPU_DEVICES
select GENERIC_SMP_IDLE_THREAD
+ select GENERIC_GETTIMEOFDAY if MMU
+ select GENERIC_VDSO_OVERFLOW_PROTECT if MMU
select HAVE_GCC_PLUGINS
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
--
2.43.0
More information about the linux-um
mailing list