[MDEV-30587] TLS/SSL error when executing tests Created: 2023-02-07 Updated: 2023-07-21 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | SSL, Tests |
| Affects Version/s: | 10.6.12 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Funda Wang | Assignee: | Daniel Black |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Anolis OS 23, OpenSSL-3.0.7 |
||
| Issue Links: |
|
||||||||
| Description |
|
When compiling mariadb 10.6.12 under Anolis OS (Fedora rawhide based), nine tests failed with "TLS/SSL error: unexpected eof while reading". Build/test log of 10.6.12: |
| Comments |
| Comment by Daniel Black [ 2023-02-07 ] |
|
From openssl issue 18866:
|
| Comment by Daniel Black [ 2023-02-07 ] |
|
9EOR9, this appears as the Connector/C set SSL_set_quiet_shutdown(ssl, 1); in ma_tls_close (libmariadb/secure/openssl.c) as well as the server (vio/viossl.c). vio/viossl.c describes us a immune to truncation attacks, so maybe we just need to add the option to both client and server. |
| Comment by Daniel Black [ 2023-02-07 ] |
|
Odd that our Debian sid builders use openssl-3.0.7 and run the same tests without error. Default security level maybe as I cautiously look at Debian patches. |
| Comment by Funda Wang [ 2023-05-13 ] |
|
No, I don't think the problem comes from openssl side. Because mariadb 10.6.8 w/openssl3 patch tests pased without any problems. |
| Comment by Daniel Black [ 2023-06-05 ] |
|
Its only when --ssl is added to the mtr options that this shows up. https://github.com/mariadb-corporation/mariadb-connector-c/pull/222 |