Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Thomas Weißschuh and committed by
Johannes Berg
83b4b44a c1b07751

-2
-2
arch/um/os-Linux/elf_aux.c
··· 62 62 } 63 63 } 64 64 if ( ! __kernel_vsyscall || ! vsyscall_ehdr || 65 - ! elf_aux_hwcap || 66 65 ! page_size || (vsyscall_ehdr % page_size) ) { 67 66 __kernel_vsyscall = 0; 68 67 vsyscall_ehdr = 0; 69 - elf_aux_hwcap = 0; 70 68 } 71 69 else { 72 70 vsyscall_end = vsyscall_ehdr + page_size;