Bug 621218
| Summary: | mount.nfs crashes trying to connect via NFSv1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Mark Meyer <ofosos> | ||||
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | yanfu,wang <yanwang> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.5 | CC: | jlayton | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-09-28 20:06:27 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
The problem seems to be fixed in nfs-utils-1.0.9-50.el5 # mount -o nfsvers=1 bighat:/home /mnt/bighat NFS version 1 is not supported. |
Created attachment 436565 [details] Core dump Description of problem: We are trying to connect to a NetApp filer using CentOS 5.5. The filer doesn't seem buggy. However mount.nfs tries to connect via V3, V2 then V1. Upon connecting with V1 mount.nfs segfaults. (gdb) bt #0 nfsmount (spec=<value optimized out>, node=0x2b9494122010 "/mnt/nfs", flags=0x7fff93ab8ddc, extra_opts=0x7fff93ab8dd0, mount_opts=0x7fff93ab8dc8, running_bg=0) at nfsmount.c:1132 It crashes since there's no code in nfsmount.c:nfsmount to handle V1 replies. See particularly line 1092 and line 1109, dispatching over the version tag and then crashing in line 1132. My suggestion is to review nfs-utils 1.1 series and go with that. Also at the moment there's no functional support for V1 anyways so dropping it should not constitute a major change. nfs-utils as included in CentOS/RHEL 5.5 is broken and should be updated. Version-Release number of selected component (if applicable): nfs-utils 1.0.9 How reproducible: Issue mount mount.nfs for a server that doesn't provide proper NFS service. Steps to Reproduce: 1. 2. 3. Actual results: Exit without mounting anything. Expected results: SIGSEGV Additional info: