When starting the Docker container, docker logs tells me:
2025-03-03 5:11:46 0 [Warning] mysqld: io_uring_queue_init() failed with errno 1
2025-03-03 5:11:46 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
I worked before with 10..5.23. This one does not have those warns. The variable innodb_use_native_aio is still ON.
I tested 10.11.6 and today the latest 10.11.11. They both have these warns.
I am not sure how performance is affected by disabling native aio.
Performance definitely is impacted by not having native asynchronous I/O enabled.
Which operating system kernel is your container host running on? This should be a problem with the container environment. MariaDB is basically just a messenger here.
Marko Mäkelä
added a comment - Performance definitely is impacted by not having native asynchronous I/O enabled.
Which operating system kernel is your container host running on? This should be a problem with the container environment. MariaDB is basically just a messenger here.
I read somewhere that disabling name resolving could solve the issue. But that is already disabled.
skip_name_resolve
ON
Marcel de Rooy
added a comment - I read somewhere that disabling name resolving could solve the issue. But that is already disabled.
skip_name_resolve
ON
> Which operating system kernel is your container host running on?
The server is Debian 12.
Linux version 6.1.0-25-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26)
Marcel de Rooy
added a comment - > Which operating system kernel is your container host running on?
The server is Debian 12.
Linux version 6.1.0-25-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26)
I also noticed that ulimit -l (memlock) was rather low in the container. It gave 8192 (K).
I added several values to docker run including --ulimit memlock=268435456:268435456 but to no avail.
But note: The old 10.5.23 container has the same low memlock value.
Marcel de Rooy
added a comment - - edited I also noticed that ulimit -l (memlock) was rather low in the container. It gave 8192 (K).
I added several values to docker run including --ulimit memlock=268435456:268435456 but to no avail.
But note: The old 10.5.23 container has the same low memlock value.
10.5 didn't have io_uring which is why its unaffected.
On the late kernel version you have memlock limits don't apply to uring any more (and the error would be different if it did - it would tell the required size or ENOMEM I think from memory).
skip_name_resolve as a solution is very odd. They aren't connected to io_uring. Internet answers always have a few random answers.
Daniel Black
added a comment - 10.5 didn't have io_uring which is why its unaffected.
On the late kernel version you have memlock limits don't apply to uring any more (and the error would be different if it did - it would tell the required size or ENOMEM I think from memory).
skip_name_resolve as a solution is very odd. They aren't connected to io_uring. Internet answers always have a few random answers.
This is probably seccomp filters blocking io_uring in the default profile - https://github.com/moby/moby/commit/891241e7e74d4aae6de5f6125574eb994f25e169
Apparently https://github.com/moby/moby/issues/41371#issuecomment-1984972151 still the case, --security-opt=seccomp:unconfined . or create a custom seccomp profile - https://podman.io/blogs/2019/10/15/generate-seccomp-profiles .
If you do create a profile, a contribution on https://github.com/MariaDB/mariadb-docker would be most welcome.
Some text for a https://mariadb.com/kb/en/docker-official-image-frequently-asked-questions/ is probably the next step.
Thanks, Daniel. I am wondering if it was a good decision to use liburing if it is considered exploitable and we have to change sec profiles to get it working..
Docker does recommend to not change the default profile. And running unconfined to unblock liburing is no good strategy imo. Too bad that we cant pass an exception for liburing only on the docker run (without composing new seccomp profiles).
That said, I would argue that this is not just a matter of documentation. Since MariaDB is dockerized 'everywhere', this affects many people. Those who dont see it, have a degraded performance and others should be lowering security barriers. No nice choice.
In the meantime I stick to the latest 10.5 but has no good future either
Appreciating all prompt comments btw !
Marcel de Rooy
added a comment - - edited Thanks, Daniel. I am wondering if it was a good decision to use liburing if it is considered exploitable and we have to change sec profiles to get it working..
Docker does recommend to not change the default profile. And running unconfined to unblock liburing is no good strategy imo. Too bad that we cant pass an exception for liburing only on the docker run (without composing new seccomp profiles).
That said, I would argue that this is not just a matter of documentation. Since MariaDB is dockerized 'everywhere', this affects many people. Those who dont see it, have a degraded performance and others should be lowering security barriers. No nice choice.
In the meantime I stick to the latest 10.5 but has no good future either
Appreciating all prompt comments btw !
As all security exploitable is a really tough assessment, to work out.
On the plus side, if you consider mariadb is doing the uring, anything user attempted as exploitable needs to get into MariaDB's layers too, so if there's an exploit, its a tough one for a SQL user to inject.
> Since MariaDB is dockerized 'everywhere', this affects many people. Those who dont see it, have a degraded performance and others should be lowering security barriers. No nice choice.
MDEV-36182 is having contemplation for dual libaio fallback from liburing.
> In the meantime I stick to the latest 10.5 but has no good future either
Unclear if the degraded performance is actually worse than 10.5. Either way this is IO speed only. Welcome feedback on anyone who does benchmarks.
Daniel Black
added a comment - - edited Ack, its a tough assessment. I went as far as moby revert -> Blackhat link , page 6, https://syzkaller.appspot.com/upstream/fixed - check current io_uring in search results (which is scarier than I hoped).
As all security exploitable is a really tough assessment, to work out.
On the plus side, if you consider mariadb is doing the uring, anything user attempted as exploitable needs to get into MariaDB's layers too, so if there's an exploit, its a tough one for a SQL user to inject.
> Since MariaDB is dockerized 'everywhere', this affects many people. Those who dont see it, have a degraded performance and others should be lowering security barriers. No nice choice.
MDEV-36182 is having contemplation for dual libaio fallback from liburing.
> In the meantime I stick to the latest 10.5 but has no good future either
Unclear if the degraded performance is actually worse than 10.5. Either way this is IO speed only. Welcome feedback on anyone who does benchmarks.
People
Ian Gilfillan
Marcel de Rooy
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":791.1999998092651,"ttfb":150.19999980926514,"pageVisibility":"visible","entityId":133184,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"b943b4c2-1aaf-4a54-a007-24d7dd786604","navigationType":0,"readyForUser":862.2999997138977,"redirectCount":0,"resourceLoadedEnd":782,"resourceLoadedStart":155.7999997138977,"resourceTiming":[{"duration":138,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":155.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":293.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":138.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":156.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":294.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":146.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":156.2999997138977,"connectEnd":156.2999997138977,"connectStart":156.2999997138977,"domainLookupEnd":156.2999997138977,"domainLookupStart":156.2999997138977,"fetchStart":156.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":156.2999997138977,"responseEnd":302.90000009536743,"responseStart":302.90000009536743,"secureConnectionStart":156.2999997138977},{"duration":238.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":156.40000009536743,"connectEnd":156.40000009536743,"connectStart":156.40000009536743,"domainLookupEnd":156.40000009536743,"domainLookupStart":156.40000009536743,"fetchStart":156.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":156.40000009536743,"responseEnd":394.90000009536743,"responseStart":394.90000009536743,"secureConnectionStart":156.40000009536743},{"duration":241.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":156.59999990463257,"connectEnd":156.59999990463257,"connectStart":156.59999990463257,"domainLookupEnd":156.59999990463257,"domainLookupStart":156.59999990463257,"fetchStart":156.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":156.59999990463257,"responseEnd":398.40000009536743,"responseStart":398.40000009536743,"secureConnectionStart":156.59999990463257},{"duration":242.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":156.7999997138977,"connectEnd":156.7999997138977,"connectStart":156.7999997138977,"domainLookupEnd":156.7999997138977,"domainLookupStart":156.7999997138977,"fetchStart":156.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":156.7999997138977,"responseEnd":398.90000009536743,"responseStart":398.90000009536743,"secureConnectionStart":156.7999997138977},{"duration":242.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":157,"connectEnd":157,"connectStart":157,"domainLookupEnd":157,"domainLookupStart":157,"fetchStart":157,"redirectEnd":0,"redirectStart":0,"requestStart":157,"responseEnd":399.2999997138977,"responseStart":399.2999997138977,"secureConnectionStart":157},{"duration":288,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":157.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":242.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":157.2999997138977,"connectEnd":157.2999997138977,"connectStart":157.2999997138977,"domainLookupEnd":157.2999997138977,"domainLookupStart":157.2999997138977,"fetchStart":157.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":157.2999997138977,"responseEnd":399.69999980926514,"responseStart":399.69999980926514,"secureConnectionStart":157.2999997138977},{"duration":287.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":157.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":242.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":157.69999980926514,"connectEnd":157.69999980926514,"connectStart":157.69999980926514,"domainLookupEnd":157.69999980926514,"domainLookupStart":157.69999980926514,"fetchStart":157.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":157.69999980926514,"responseEnd":400.2999997138977,"responseStart":400.2999997138977,"secureConnectionStart":157.69999980926514},{"duration":292.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":158.59999990463257,"connectEnd":158.59999990463257,"connectStart":158.59999990463257,"domainLookupEnd":158.59999990463257,"domainLookupStart":158.59999990463257,"fetchStart":158.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":158.59999990463257,"responseEnd":451.19999980926514,"responseStart":451.19999980926514,"secureConnectionStart":158.59999990463257},{"duration":297.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":158.69999980926514,"connectEnd":158.69999980926514,"connectStart":158.69999980926514,"domainLookupEnd":158.69999980926514,"domainLookupStart":158.69999980926514,"fetchStart":158.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":158.69999980926514,"responseEnd":456.59999990463257,"responseStart":456.59999990463257,"secureConnectionStart":158.69999980926514},{"duration":20.199999809265137,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":473.90000009536743,"connectEnd":473.90000009536743,"connectStart":473.90000009536743,"domainLookupEnd":473.90000009536743,"domainLookupStart":473.90000009536743,"fetchStart":473.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":473.90000009536743,"responseEnd":494.09999990463257,"responseStart":494.09999990463257,"secureConnectionStart":473.90000009536743},{"duration":215.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":497.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":497.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":712.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":283.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":498.40000009536743,"connectEnd":498.40000009536743,"connectStart":498.40000009536743,"domainLookupEnd":498.40000009536743,"domainLookupStart":498.40000009536743,"fetchStart":498.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":498.40000009536743,"responseEnd":782,"responseStart":782,"secureConnectionStart":498.40000009536743},{"duration":446.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":498.7999997138977,"connectEnd":498.7999997138977,"connectStart":498.7999997138977,"domainLookupEnd":498.7999997138977,"domainLookupStart":498.7999997138977,"fetchStart":498.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":498.7999997138977,"responseEnd":945.2999997138977,"responseStart":945.2999997138977,"secureConnectionStart":498.7999997138977},{"duration":194.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":785.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":785.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":979.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":154.2000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":792.7999997138977,"connectEnd":792.7999997138977,"connectStart":792.7999997138977,"domainLookupEnd":792.7999997138977,"domainLookupStart":792.7999997138977,"fetchStart":792.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":792.7999997138977,"responseEnd":947,"responseStart":947,"secureConnectionStart":792.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":2,"responseStart":150,"responseEnd":153,"domLoading":153,"domInteractive":931,"domContentLoadedEventStart":931,"domContentLoadedEventEnd":977,"domComplete":1028,"loadEventStart":1028,"loadEventEnd":1028,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":893.5},{"name":"bigPipe.sidebar-id.end","time":894.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":894.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":896.7999997138977},{"name":"activityTabFullyLoaded","time":1002.7999997138977}],"measures":[],"correlationId":"e98d17e224a090","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Performance definitely is impacted by not having native asynchronous I/O enabled.
Which operating system kernel is your container host running on? This should be a problem with the container environment. MariaDB is basically just a messenger here.