Repository navigation
Bump openssl from openssl-3.5.7 to openssl-3.5.8 - #118927
Conversation
Point `contrib/openssl` at the `ClickHouse/openssl-3.5.8` branch of the ClickHouse fork, which carries the same 13 ClickHouse patches rebased on the upstream `openssl-3.5.8` tag. Generated headers in `contrib/openssl-cmake/common/include/openssl` are updated with the delta between the two upstream versions only: - `opensslv.h`: version 3.5.8, release date 25 Aug 2026 - `ssl.h`: add `SSL_VALUE_QUIC_MAX_PENDING_CONNS`, move the unused `SSL_SECOP_PEER_*` defines (mirrors `ssl.h.in`) The pre-generated assembly under `contrib/openssl-cmake/asm` is byte-identical when regenerated from 3.5.7 and 3.5.8 with `clang-22`, so it is left untouched. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [2f73ed7] Summary: ✅
AI ReviewSummaryThis PR bumps the vendored Missing context / blind spots
Final Verdict✅ No review findings in the current diff. Merge is reasonable once the remaining CI finishes green. LLVM Coverage ReportMeasured on commit 2f73ed7.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +332 lines in 79 files (-190 lines lost coverage) · Details |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units178 translation units recompiled, 28 s compile time in total, 178 of them have a recent master baseline. |
Backport #118927 to 26.8: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Cherry pick #118927 to 26.3: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Cherry pick #118927 to 26.6: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Cherry pick #118927 to 26.7: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Backport #118927 to 26.7: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Backport #118927 to 26.3: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
Backport #118927 to 26.6: Bump `openssl` from openssl-3.5.7 to openssl-3.5.8
…nt reads Bump contrib/mariadb-connector-c to pick up a single connector change: ERR_clear_error() before every SSL_connect/SSL_read/SSL_write whose result is interpreted through SSL_get_error(), plus capturing errno as the first statement of ma_tls_set_error(). SSL_get_error() only reports the retry flags of the operation just attempted while the calling thread's OpenSSL error queue is empty, and openssl.c never cleared it. A leftover ERR_LIB_SYS entry from any earlier OpenSSL operation on the same thread is therefore reported first (ossl_ssl_get_error() returns SSL_ERROR_SYSCALL for ERR_LIB_SYS before it looks at SSL_want_read() and the BIO retry flag), so a read that OpenSSL had already marked retryable becomes fatal. ma_tls_set_error() then pops the stale entry, gets NULL from ERR_reason_error_string() and prints strerror_r(errno) instead, producing mysqlxx::BadQuery: TLS/SSL error: Interrupted system call (4) on a healthy connection, with an errno that need not belong to the failing call. Every mysql() table function, MySQL table/database engine and MySQL dictionary read is affected: mysqlxx::Connection::connect enables TLS unconditionally via mysql_ssl_set, the sampling query profiler is on by default so query threads take periodic signals, and the TLS path bypasses ma_recv()'s EINTR retry loop because OPENSSL_USE_BIOMETHOD is undefined and SSL_set_fd() lets OpenSSL read the socket directly. No regression test ships with this. With an empty error queue the message is unreachable on the old pin: sock_read() zeroes errno before every recv, EINTR is classified retryable, and pvio_socket_wait_io_or_timeout() re-polls it against its deadline and reports ETIMEDOUT. 428000 instrumented un-injected reads produced none, and no SQL-reachable producer of a stale ERR_LIB_SYS entry was found, so the failing arm of a functional test would be unobservable. The fix was validated by forcing a stale entry on the reading thread instead: 20 of 20 reads and 2-3 of 20 02479_mysql_connect_to_self runs failed before it, 20 of 20 and 50 of 50 passed after, and 125319 stale entries were still measured at SSL entry on the green arm, so that arm is not vacuous. The changelog category is the one the fix-carrying contrib bumps use (usearch ClickHouse#118828, openssl ClickHouse#118927) rather than Bug Fix: the change in this repository is only the dependency pin, and the Bug Fix category's validation expects a regression test that reddens on master, which this defect cannot supply. Related: ClickHouse#105987
…nt reads Bump contrib/mariadb-connector-c to pick up a single connector change: ERR_clear_error() before every SSL_connect/SSL_read/SSL_write whose result is interpreted through SSL_get_error(), plus capturing errno as the first statement of ma_tls_set_error(). SSL_get_error() only reports the retry flags of the operation just attempted while the calling thread's OpenSSL error queue is empty, and openssl.c never cleared it. A leftover ERR_LIB_SYS entry from any earlier OpenSSL operation on the same thread is therefore reported first (ossl_ssl_get_error() returns SSL_ERROR_SYSCALL for ERR_LIB_SYS before it looks at SSL_want_read() and the BIO retry flag), so a read that OpenSSL had already marked retryable becomes fatal. ma_tls_set_error() then pops the stale entry, gets NULL from ERR_reason_error_string() and prints strerror_r(errno) instead, producing mysqlxx::BadQuery: TLS/SSL error: Interrupted system call (4) on a healthy connection, with an errno that need not belong to the failing call. Every mysql() table function, MySQL table/database engine and MySQL dictionary read is affected: mysqlxx::Connection::connect enables TLS unconditionally via mysql_ssl_set, the sampling query profiler is on by default so query threads take periodic signals, and the TLS path bypasses ma_recv()'s EINTR retry loop because OPENSSL_USE_BIOMETHOD is undefined and SSL_set_fd() lets OpenSSL read the socket directly. No regression test ships with this. With an empty error queue the message is unreachable on the old pin: sock_read() zeroes errno before every recv, EINTR is classified retryable, and pvio_socket_wait_io_or_timeout() re-polls it against its deadline and reports ETIMEDOUT. 428000 instrumented un-injected reads produced none, and no SQL-reachable producer of a stale ERR_LIB_SYS entry was found, so the failing arm of a functional test would be unobservable. The fix was validated by forcing a stale entry on the reading thread instead: 20 of 20 reads and 2-3 of 20 02479_mysql_connect_to_self runs failed before it, 20 of 20 and 50 of 50 passed after, and 125319 stale entries were still measured at SSL entry on the green arm, so that arm is not vacuous. The changelog category is the one the fix-carrying contrib bumps use (usearch ClickHouse#118828, openssl ClickHouse#118927) rather than Bug Fix: the change in this repository is only the dependency pin, and the Bug Fix category's validation expects a regression test that reddens on master, which this defect cannot supply. Connector change: ClickHouse/mariadb-connector-c#25 Related: ClickHouse#105987
Updates
contrib/opensslfromClickHouse/openssl-3.5.7(26868a38972e) toClickHouse/openssl-3.5.8(614167b874c6), which tracks the upstreamopenssl-3.5.8tag released on 25 Aug 2026. The fork branch carries the same 13 ClickHouse patches as before — MSan/TSan/LSan suppressions, nogetrandom, nosendmmsg/recvmmsg, ARMgetauxvalon musl, removed submodules — rebased 1:1 onto the new tag. We stay on the 3.5 LTS line.3.5.8 is a security and bug-fix patch release, fixing CVE-2026-18798, CVE-2026-63072, CVE-2026-63073, CVE-2026-63074, CVE-2026-63075, CVE-2026-63076, CVE-2026-14456, CVE-2026-14457, CVE-2026-54874 and CVE-2026-75803 in the QUIC, CMS, CMP, DTLS and AEAD code paths. Nothing moved in the build surface: no
.cfiles were added or removed undercrypto/,ssl/orproviders/, and the single deletion (crypto/aes/aes_x86core.c) was never referenced, socontrib/openssl-cmake/CMakeLists.txtneeds no changes. The 29 touched perlasm generators only differ in copyright headers and anicx/__clang_major__fallback in AVX detection, and regenerating the assembly from 3.5.7 and from 3.5.8 produces byte-identical output, so the checked-in files undercontrib/openssl-cmake/asm/are left alone.On the ClickHouse side only the two checked-in generated headers needed adapting.
common/include/openssl/opensslv.hgets the patch level 7 → 8, the new version strings and the 25 Aug 2026 release date.common/include/openssl/ssl.hgets thessl.h.indelta applied by hand — the newSSL_VALUE_QUIC_MAX_PENDING_CONNSvalue and theSSL_SECOP_PEER_*defines moved next toSSL_SECOP_PEERand marked unused — rather than a wholesale regeneration, since the checked-in headers were not produced by the documentedConfigureline and carry flags (OPENSSL_NO_FIPS_POST,OPENSSL_NO_FIPS_SECURITYCHECKS,OPENSSL_NO_ACVP_TESTS) the sources depend on. No changes insrc/or.gitmodules.One thing to fix before pushing: the diff stat also contains
contrib/usearch(submodule pointer moved), which is unrelated to this bump and isn't described above — drop it from the branch.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
opensslto 3.5.8.Workflow [PR]
Sync PR [sync-upstream/pr/118927]
Version info
26.9.1.1054(included in26.9and later)26.8.3.73,26.7.7.74,26.6.5.107,26.3.33.51