Bug 493519

Summary: mount syscall fails with EINVAL for NFSv4 with sec=krb5 option.
Product: [Fedora] Fedora Reporter: Stephen J Alexander <stevea12345>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 10CC: bjorn.sund, goto110, kernel-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-18 09:10:29 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:
Description Flags
Result of: strace -vf -s 256 ... none

Description Stephen J Alexander 2009-04-02 04:09:53 UTC
Description of problem:
Attempting to mount an nfs4 file system with kerberos security flavor always fails with an unusual error "mount.nfs4: an incorrect mount option was specified".

Version-Release number of selected component (if applicable):
Several F10 kernel revs.

How reproducible:
100%

Steps to Reproduce:
1.Config an NFSv4 server, config & start NFS client services
2.Command "mount amanita:/ /tmp/mp -t nfs4 -o sec=krb5"
3.
  
Actual results:
[root@luchs ~]# mount google.com:/ /tmp/mp -t nfs4 -o sec=krb5p
mount.nfs4: an incorrect mount option was specified


Expected results:
Successful mount.

Additional info:

Same mount command, same config, same client hardware, successfully mounts w/ Fedora8.

The sec=krb5, krbi, krb5 and  lkey security flavors all fail.

The "none" and "sys" flavors succeed (server is reconfigured).

Args to the mount syscall look correct (see strace).

[root@luchs ~]# strace -f -etrace=mount mount amanita:/ /tmp/mp -t nfs4 -o sec=krb5
Process 25897 attached
Process 25896 suspended
[pid 25897] mount("amanita:/", "/tmp/mp", "nfs4", 0, "sec=krb5,clientaddr=192.168.0.12"...) = -1 EINVAL (Invalid argument)
mount.nfs4: an incorrect mount option was specified
Process 25896 resumed
Process 25897 detached
--- SIGCHLD (Child exited) @ 0 (0) ---

Comment 1 Chuck Ebbert 2009-04-10 23:57:48 UTC
Can you add the -v option to strace so it shows all the mount options?

Comment 2 Stephen J Alexander 2009-04-11 01:23:13 UTC
Created attachment 339148 [details]
Result of: strace -vf -s 256 ...

The command:
strace -vf -s 256  mount -t nfs4 -o sec=krb5 boletus:/ /tmp/mp 2>/tmp/strace.txt
resulted in the attached file,including:
[pid  6820] mount("boletus:/", "/tmp/mp", "nfs4", 0, "sec=krb5,clientaddr=192.168.0.121,addr=192.168.0.122") = -1 EINVAL (Invalid argument)

The "mount -v" coomand presents the following:
[root@luchs Desktop]# date
Fri Apr 10 21:07:37 EDT 2009
[root@luchs Desktop]# mount -v -t nfs4 -o sec=krb5 boletus:/ /tmp/mp
mount.nfs4: timeout set for Fri Apr 10 21:09:42 2009
mount.nfs4: text-based options: 'sec=krb5,clientaddr=192.168.0.121,addr=192.168.0.122'
mount.nfs4: mount(2): Invalid argument
mount.nfs4: an incorrect mount option was specified

The relevant system software is represented by:
[root@luchs Desktop]# uname -a
Linux luchs.localdomain 2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23 23:37:54 EDT 2009 i686 i686 i386 GNU/Linux
[root@luchs Desktop]# yum list nfs*
Loaded plugins: refresh-packagekit
Installed Packages
nfs-utils.i386                                                1:1.1.4-8.fc10                                       installed
nfs-utils-lib.i386                                            1.1.4-1.fc10                                         installed
Available Packages
nfs-utils-lib-devel.i386                                      1.1.4-1.fc10                                         fedora   
nfs4-acl-tools.i386                                           0.3.2-2.fc9                                          fedora   
nfswatch.i386                                                 4.99.9-3.fc9                                         fedora  
===

Comment 3 Stephen J Alexander 2009-06-26 10:48:02 UTC
Same problem exists in Fedora 11.   All Kerberos client NFS4 is broken.
Same exact symptoms.  Strace is basically identical.

Comment 4 Bjørn Tore Sund 2009-11-02 15:41:15 UTC
Is anyone looking at this problem?

Comment 5 Bjørn Tore Sund 2009-11-02 15:50:24 UTC
Steve...  In my case the issue resolved itself by setting SECURE_NFS="yes" in /etc/sysconfig/nfs on the Fedora 10 client and rebooting.

-BT

Comment 6 Bug Zapper 2009-11-18 09:58:02 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Bug Zapper 2009-12-18 09:10:29 UTC
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.