[PATCH 03/10] um: Split out default elf_aux_hwcap
Thomas Weißschuh
linux at weissschuh.net
Tue Oct 28 02:15:38 PDT 2025
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 at weissschuh.net>
---
arch/um/os-Linux/elf_aux.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/um/os-Linux/elf_aux.c b/arch/um/os-Linux/elf_aux.c
index 4aadb9ea5ae3..9ee0e3199790 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;
--
2.51.1.dirty
More information about the linux-um
mailing list