unsafe fn check_elf_base(base: *const Elf_Ehdr) -> Option<NonNull<Elf_Ehdr>>Expand description
Check that base is a valid pointer to the kernel-provided vDSO.
base is some value we got from a AT_SYSINFO_EHDR aux record somewhere,
which hopefully holds the value of the kernel-provided vDSO in memory. Do a
series of checks to be as sure as we can that it’s safe to use.