Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When mariadb try's to done its SST replication, it will call this tool.
But ss will crash with an core dump.
Version-Release number of selected component (if applicable):
iproute-4.11.0-25.el7_7.2
How reproducible:
Evey time, using mariadb 10.4.11
Steps to Reproduce:
1. call rm -f /var/lib/mysql/* to force an SST sync on start
2. call systemctl start mariadb
Actual results:
The node will sync it with the rest of the cluster, but the called ss tool will crash.
Expected results:
No crash of ss.
Hi Frank, thanks for the report.
From the CentOS report attached to this issue I see that crash happens following the command 'ss -p state listening ( sport = '' 4445 )'. Can you please confirm that? I tried to reproduce the issue using the previous command (and nc to open a socket on port 4445), without success.
I see you manage to reproduce it reliably, can you please attach a coredump so I can examine it? Thanks in advance!
Hi Andrea,
yes this will be correct. But the command will called by the mysqld.
It looks like selinux will play an role here, because set it to setenforce 0, then no crash will happens.
So I have added the aureport running setenforce 1 and for setenforce 0.
Hi Frank and thanks for the info.
Upstream commit ebbb219c924cc ("ss: fix NULL pointer access when parsing unix sockets with oldformat") should fix this crash.
Are you able to apply this patch and verify if this is correct?
Hi Andrea,
yes of course, when you can show me, where I can find the patch.
Than I can build an rpm package and test it in the cluster.
Query old google for it will result in an patch, but I don't know is it the right one.
Hi Andrea,
I have tested the patch and it will do the job.
Now an friendly "Cannot open netlink socket: Permission denied" is reported instant of an crash :)
I think the patch included to the package.
Thanks for the help.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (iproute bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:3999