Bug 1069393
| Summary: | systemd-208-14.fc20 segfaults if /proc/swaps does not exist | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matt Mullins <mokomull> | ||||
| Component: | systemd | Assignee: | systemd-maint | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 20 | CC: | johannbg, lnykryn, msekleta, plautrba, systemd-maint, vpavlin, zbyszek | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | systemd-208-15.fc20 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-03-08 03:34:12 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: | |||||||
| Attachments: |
|
||||||
|
Description
Matt Mullins
2014-02-24 22:22:59 UTC
Created attachment 867215 [details]
patch to check for ENOENT and return from swap_dispatch_reload and swap_enumerate
Attaching a patch that works against a machine without /proc/swaps.
I also reproduced #969795 on 208-9.fc20 by creating a bogus swap unit and attempting to start it (without CONFIG_SWAP enabled). I verified that with this patch, systemd successfully boots the machine without swap, and trying to enable the bogus swap unit also does not segfault.
Thank you for the patch. I'll go out in the next update. systemd-208-15.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/systemd-208-15.fc20 Package systemd-208-15.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-208-15.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3522/systemd-208-15.fc20 then log in and leave karma (feedback). systemd-208-15.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |