| Summary: | nfs-server-generator segfaults when /etc/fstab does not exist | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Yu Watanabe <watanabe.yu> | ||||
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 24 | CC: | bcodding, bfields, jlayton, smayhew, steved | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | nfs-utils-1.3.4-1.rc2.fc24 nfs-utils-1.3.4-1.rc2.fc25 nfs-utils-1.3.4-1.rc2.fc23 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-08-29 18:52:33 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: | |||||
| Attachments: |
|
||||||
The upstream commit:
commit 21c3ca72fb1b3b4aea30b7cc4989b23daf6bd2dd
Author: Yu Watanabe <watanabe.yu+redhat.bugzilla>
Date: Wed Aug 24 09:15:34 2016 -0400
nfs-server-generator: Fix segfault when /etc/fstab does not exist
Added a couple checks to handle failures correctly
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1369714
Signed-off-by: Steve Dickson <steved>
nfs-utils-1.3.4-1.rc2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a94a72af2b nfs-utils-1.3.4-1.rc2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f19497102 nfs-utils-1.3.4-1.rc2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a8cab6d575 nfs-utils-1.3.4-1.rc2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a8cab6d575 nfs-utils-1.3.4-1.rc2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f19497102 nfs-utils-1.3.4-1.rc2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a94a72af2b nfs-utils-1.3.4-1.rc2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. nfs-utils-1.3.4-1.rc2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. nfs-utils-1.3.4-1.rc2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 1193520 [details] generator-fix-segfault-when-fstab-does-not-exist.patch Description of problem: if /etc/fstab does not exist, nfs-server-generator crashes. ===== kernel: nfs-server-gene[599]: segfault at 0 ip 00007f135061018b sp 00007ffc41ff7ad0 error 4 in libc-2.23.so[7f135059a000+1b9000] systemd[589]: /usr/lib/systemd/system-generators/nfs-server-generator terminated by signal SEGV. ===== Version-Release number of selected component (if applicable): nfs-utils-1.3.4-1.rc1.fc24.x86_64 How reproducible: always Steps to Reproduce: 1. boot system which does not have /etc/fstab. 2. 3. Actual results: nfs-server-generator segfaults. Expected results: nfs-server-generator run as expected. Additional info: I think this bug can be fixed by the attached patch.