From e8bf515b01902b6fea05cb8bd87df18d001dac27 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Thu, 4 Dec 2025 09:13:49 +0900 Subject: [PATCH v5 2/2] libpq: Authorize pthread_exit() in libpq-check --- src/interfaces/libpq/libpq-check.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interfaces/libpq/libpq-check.pl b/src/interfaces/libpq/libpq-check.pl index 274e873d1fca..1b610d9dc761 100755 --- a/src/interfaces/libpq/libpq-check.pl +++ b/src/interfaces/libpq/libpq-check.pl @@ -55,9 +55,11 @@ while (<$fh>) # Set of symbols allowed: # __cxa_atexit - injected by some libcs (e.g., OpenBSD) # __tsan_func_exit - ThreadSanitizer instrumentation + # pthread_exit - legitimate thread cleanup next if /__cxa_atexit/; next if /__tsan_func_exit/; + next if /pthread_exit/; # Anything containing "exit" is suspicious. # (Ideally we should reject abort() too, but there are various scenarios -- 2.51.0