]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: Split out default elf_aux_hwcap
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 28 Oct 2025 09:15:38 +0000 (10:15 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Nov 2025 12:02:33 +0000 (13:02 +0100)
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 <linux@weissschuh.net>
Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-3-e930063eff5f@weissschuh.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/os-Linux/elf_aux.c

index 4aadb9ea5ae3a16494e4a728237aa654e99927d6..9ee0e3199790439be7866c8ffe4a8ac5f45ae576 100644 (file)
@@ -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;