Bug 281685

Summary: ASAN intercepting SHA256 and MD5 causes issues with OpenSSL's EVP
Product: Base System Reporter: Theo Buehler <tb>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: devnull
Priority: ---    
Version: 15.0-CURRENT   
Hardware: Any   
OS: Any   

Description Theo Buehler 2024-09-24 14:30:02 UTC
libmd has a few Init/Update/Final implementations of the same name as OpenSSL but with incompatible signature. For FreeBSD this is at least SHA2 and MD5. This causes issues when using ASAN, in particular in combination with EVP.

See https://github.com/libressl/portable/issues/1098 and https://github.com/openssl/openssl/issues/25456 for an example.

I suspect defining `SANITIZER_INTERCEPT_*` for these needs to be reconsidered.
Comment 1 Theo Buehler 2024-09-27 07:41:11 UTC
I reported this to LLVM upstream to make the NetBSD developers who added this aware.

https://github.com/llvm/llvm-project/issues/110215