]> Gentwo Git Trees - linux/.git/commit
x86/um: Do not inherit vDSO from host
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 28 Oct 2025 09:15:39 +0000 (10:15 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Nov 2025 12:02:33 +0000 (13:02 +0100)
commit70d52694b6a67ace517da44ce4071594fcccd1ee
treeb6d382f32b1224837aa48663e5dffdbb8ac1339e
parent83b4b44a2b05330d13a4432caae0b036f9621ea1
x86/um: Do not inherit vDSO from host

Inheriting the vDSO from the host is problematic. The values read
from the time functions will not be correct for the UML kernel.
Furthermore the start and end of the vDSO are not stable or
detectable by userspace. Specifically the vDSO datapages start
before AT_SYSINFO_EHDR and the vDSO itself is larger than a single page.

This codepath is only used on 32bit x86 UML. In my testing with both
32bit and 64bit hosts the passthrough functionality has always been
disabled anyways due to the checks against envp in scan_elf_aux().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-4-e930063eff5f@weissschuh.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/os-Linux/elf_aux.c
arch/um/os-Linux/user_syms.c
arch/x86/um/Kconfig
arch/x86/um/Makefile
arch/x86/um/asm/elf.h
arch/x86/um/elfcore.c [deleted file]