[compiler-rt] [rtsan] Add more socket interceptors (PR #115020)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 09:04:09 PST 2024


================
@@ -648,14 +684,20 @@ void __rtsan::InitializeInterceptors() {
   INTERCEPT_FUNCTION(usleep);
   INTERCEPT_FUNCTION(nanosleep);
 
-  INTERCEPT_FUNCTION(socket);
+  INTERCEPT_FUNCTION(accept);
+  INTERCEPT_FUNCTION(bind);
+  INTERCEPT_FUNCTION(connect);
+  INTERCEPT_FUNCTION(getaddrinfo);
+  INTERCEPT_FUNCTION(getnameinfo);
+  INTERCEPT_FUNCTION(listen);
+  INTERCEPT_FUNCTION(recv);
+  INTERCEPT_FUNCTION(recvfrom);
----------------
cjappl wrote:

Sorry - bit confusing on my end! I sorted this subgroup, which moved recvfrom up, it was always present.

Our unit tests DO fail if these are not present in my experience

https://github.com/llvm/llvm-project/pull/115020


More information about the llvm-commits mailing list