HomeFreeBSD

loader: Relax the check in is_kernphys_relocatable()

Description

loader: Relax the check in is_kernphys_relocatable()

The check fails in kernels compiled with KASAN because AddressSanitizer
inserts redzones around global variables, so the size of the "kernphys"
symbol is 32 rather than 8. Thus we fall back to copying even though
it's not necessary.

Simply remove the size check. I didn't want to extend the symbol size
check since there's no guarantee that AddressSanitizer will always emit
32 bytes for "kernphys".

Reviewed by: kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 9a964ad56182740ea09b87f7e6db4197c6756e48)

Details

Provenance
markjAuthored on Jun 15 2022, 2:47 PM
Parents
rG7f753c0c3377: msun: Rewrite function definitions with identifier lists
Branches
Unknown
Tags
Unknown