Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11.5, 11.1.2
-
None
-
Official Docker image
Description
I've built a docker image based on the official MariaDB image, but with the OpenSSL FIPS provider (v3.0.0) built and configured for use (but no other changes). When I try to run this image, it crashes on launch after logging [Entrypoint]: Initializing database files. I've tried with both mariadb:11-jammy and mariadb:10-jammy with the same results. I've also tried doing a full build of OpenSSL 3.0.8 with its FIPS provider and configuring the system to use that OpenSSL, also with the same results.
I assume based on the documentation here that MariaDB is intended to function correctly with OpenSSL 3 using the FIPS provider. I have confirmed using the ldd command on that page that the server is dynamically linking against the expected OpenSSL libraries.
I've attached the output (both stdout and stderr) from running docker logs on the container (crashlog.txt) as well as the Dockerfile and openssl.cnf files used to build the container.
For convenience, here are the full instructions to reproduce. First, put the attached Dockerfile and opensl.cnf in a directory. From that directory, build the image:
docker build -t mariadb-fips .
|
Then run the image:
docker run --detach --name mariadb-fips --env MARIADB_USER=example-user --env MARIADB_PASSWORD=my_cool_secret --env MARIADB_ROOT_PASSWORD=my-secret-pw mariadb-fips
|
After a couple of seconds, observe that the container has stopped and check the logs:
docker ps -a
|
docker logs mariadb-fips
|
Attachments
Issue Links
- relates to
-
MDEV-27778 md5 in FIPS crashes with OpenSSL 3.0.0
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Attachment | Dockerfile [ 72244 ] |
Attachment | Dockerfile [ 72258 ] |
Assignee | Daniel Black [ danblack ] | Vladislav Vaintroub [ wlad ] |
Attachment | Dockerfile-1 [ 72357 ] | |
Attachment | openssl-1.cnf [ 72358 ] |
Fix Version/s | 10.11 [ 27614 ] |
11.0.4-MariaDB-1:11.0.4+maria~ubu2204 source revision: 5e2d08b5e89ec600f46021d99beeb2635eef4f45
(gdb) bt
#0 0x00007fcf1676b75b in kill () at ../sysdeps/unix/syscall-template.S:120
#1 0x0000560999302c2d in handle_fatal_signal (sig=<optimized out>) at ./sql/signal_handler.cc:372
#2 <signal handler called>
#3 0x0000000000000000 in ?? ()
#4 0x0000560999511821 in md5_input (len=4455,
buf=0x56099bd67858 "select `mysql`.`global_priv`.`Host` AS `Host`,`mysql`.`global_priv`.`User` AS `User`,if(json_value(`mysql`.`global_priv`.`Priv`,'$.plugin') in ('mysql_native_password','mysql_old_password'),ifnull(jso"..., context=0x7fff7066bcb0) at ./mysys_ssl/my_md5.cc:76
#5 my_md5 (digest=0x7fff7066bd50 "\001",
buf=0x56099bd67858 "select `mysql`.`global_priv`.`Host` AS `Host`,`mysql`.`global_priv`.`User` AS `User`,if(json_value(`mysql`.`global_priv`.`Priv`,'$.plugin') in ('mysql_native_password','mysql_old_password'),ifnull(jso"..., len=4455) at ./mysys_ssl/my_md5.cc:101
#6 0x0000560999195557 in TABLE_LIST::calc_md5 (this=this@entry=0x56099bd077b0, buffer=buffer@entry=0x7fff7066bf30 "") at ./sql/table.cc:5910
#7 0x0000560999185455 in mysql_register_view (backup_file_name=0x7fff7066c580 "", mode=VIEW_CREATE_NEW, view=0x56099bd077b0,
ddl_log_state=0x7fff7066be50, thd=0x56099bce4048) at ./sql/sql_view.cc:1035
#8 mysql_create_view (thd=thd@entry=0x56099bce4048, views=views@entry=0x56099bd077b0, mode=VIEW_CREATE_NEW) at ./sql/sql_view.cc:664
#9 0x000056099909b313 in mysql_execute_command (thd=0x56099bce4048, is_called_from_prepared_stmt=<optimized out>) at ./sql/sql_parse.cc:5833
#10 0x000056099909e867 in mysql_parse (thd=0x56099bce4048, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>)
at ./sql/sql_parse.cc:8030
#11 0x000056099909ec8f in bootstrap (file=0x56099aaea8e0 <instrumented_stdin>) at ./sql/sql_class.h:243
#12 0x0000560998f8f27e in mysqld_main (argc=<optimized out>, argv=<optimized out>) at ./sql/mysqld.cc:5959
#13 0x00007fcf16752d90 in __libc_start_call_main (main=main@entry=0x560998f42020 <main(int, char**)>, argc=argc@entry=18,
argv=argv@entry=0x7fff7066fc58) at ../sysdeps/nptl/libc_start_call_main.h:58
#14 0x00007fcf16752e40 in __libc_start_main_impl (main=0x560998f42020 <main(int, char**)>, argc=18, argv=0x7fff7066fc58, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff7066fc48) at ../csu/libc-start.c:392
#15 0x0000560998f83335 in _start ()
Seems related https://github.com/MariaDB/server/commit/f23f45413fd02c180182cd341b800e2b9fa169f4