Bug 1433969
| Summary: | coredump happens when starting kdump service with "path /" specified in /etc/kdump.conf | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Xunlei Pang <xlpang> |
| Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | dwalsh, kdump-team-bugs, lvrabec, mgrepl, mmalik, plautrba, ssekidde, xlpang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-29 13:54:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Xunlei Pang
2017-03-20 13:34:03 UTC
The root cause is that "restorecon" generated the coredump. I was able to reproduce it in the following way: 1) create a symbol link file, say mkdir /restorecon touch /restorecon/test ln /restorecon/test -s /restorecon/link 2) then "restorecon /restorecon/link" or "restorecon /restorecon//link" or even more "/" appended to the second "/", it works well 3) but "restorecon //restorecon/link"(append multiple "/" at the very beginning) will surely trigger coredump So the bug is due to some problem of "restorecon", but we could make a simple workaround by stripping all the duplicate "/". Also we better not do the relabel in case of "/", as there are so many files(including procfs, sysfs, etc) under "/" which is really time-consuming and needless. Besides the special "path /", It also affects kdump using "path /var/crash" if there happens to be some link file and needs to be relabelled, because our script generates two more "/" at the very beginning. After discussion, we decide to reassign it to "restorecon" related component. Which version of libselinux was installed on your machine, when the coredump appeared? It's possible that you encountered BZ#1404644. (In reply to Milos Malik from comment #4) > Which version of libselinux was installed on your machine, when the coredump > appeared? I confirmed it has been fixed on latest rhel7.4(with the following RPMs): policycoreutils-2.5-14.el7.x86_64 libselinux-2.5-11.el7.x86_64 libselinux-python-2.5-11.el7.x86_64 libselinux-utils-2.5-11.el7.x86_64 I think you can close it as CURRENTRELEASE, thanks! *** This bug has been marked as a duplicate of bug 1404644 *** |