Branch: refs/heads/openssl-3.0 Home: https://github.com/openssl/openssl Commit: 4654e94a40220f49d0be2f18094bec465ce639df https://github.com/openssl/openssl/commit/4654e94a40220f49d0be2f18094bec465ce639df Author: Hongren Zheng <i...@zenithal.me> Date: 2024-05-20 (Mon, 20 May 2024)
Changed paths: M providers/fips/fipsprov.c Log Message: ----------- fips provider: explicitly setup cpuid when initializing Fixes: #23979 Previously fips module relied on OPENSSL_cpuid_setup being used as constructor by the linker to correctly setup the capability vector, either via .section .init (for x86_64) or via __attribute__((constructor)). This would make ld.so call OPENSSL_cpuid_setup before the init function for fips module. However, this early constructing behavior has several disadvantages: 1. Not all platform/toolchain supports such behavior 2. Initialisation sequence is not well defined, and some function might not be initialized when cpuid_setup is called 3. Implicit path is hard to maintain and debug Reviewed-by: Paul Dale <ppz...@gmail.com> Reviewed-by: Tomas Mraz <to...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24419) (cherry picked from commit a192b2439c0207ce1b04ba6137329b68f9e23680) To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications