From: Thomas Weißschuh Date: Tue, 28 Oct 2025 09:15:38 +0000 (+0100) Subject: um: Split out default elf_aux_hwcap X-Git-Tag: v6.19-rc1~104^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83b4b44a2b05330d13a4432caae0b036f9621ea1;p=thirdparty%2Fkernel%2Flinux.git um: Split out default elf_aux_hwcap Setting all auxiliary vector values to default values if one of them was not provided by the host will discard perfectly fine values. Remove the elf_aux_platform fallback from the vDSO ones. As zero is the correct fallback anyways, don't create a new conditional. Signed-off-by: Thomas Weißschuh Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-3-e930063eff5f@weissschuh.net Signed-off-by: Johannes Berg --- diff --git a/arch/um/os-Linux/elf_aux.c b/arch/um/os-Linux/elf_aux.c index 4aadb9ea5ae3a..9ee0e31997904 100644 --- a/arch/um/os-Linux/elf_aux.c +++ b/arch/um/os-Linux/elf_aux.c @@ -62,11 +62,9 @@ __init void scan_elf_aux( char **envp) } } if ( ! __kernel_vsyscall || ! vsyscall_ehdr || - ! elf_aux_hwcap || ! page_size || (vsyscall_ehdr % page_size) ) { __kernel_vsyscall = 0; vsyscall_ehdr = 0; - elf_aux_hwcap = 0; } else { vsyscall_end = vsyscall_ehdr + page_size;