* Hanging nfs4+krb5 mounts with negative uids?
@ 2013-01-21 15:07 richard
2013-01-21 16:05 ` richard
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: richard @ 2013-01-21 15:07 UTC (permalink / raw)
To: linux-nfs
Hi all,
I have a question about nfs-utils. It's about a patch that was submitted,
way back in 2010, fixing hanging mounts because of a int/uint problem:
you can read the commit message at:
http://www.spinics.net/lists/linux-nfs/msg14723.html
This code gets hit, e.g. with the new debian stable release where
nfs-kernel-server/nfs-common is upgraded to 1.2.6-3 (or upgrade
nfs-kernel-server from debian stable to debian unstable). On my nfsv4+krb5
system, this seems to do exactly the opposite of the patch: not fixing,
but in fact introducing a hanging mount.
When I change the code back from unsigned uid's to signed uid's the mount
works again.
Can anyone give me any help understanding why this is, or point me in a
direction in getting this solved? I very well might have just
misconfigured my nfsv4 + krb5 system (asking myself why am I getting
negative uids?)
Some more information to help debugging:
1) I'm running a VM as a kerberos KDC/admin server (debian sid/unstable)
2) I'm running a second VM as a nfsv4 server configured to use this
kerberos VM (debian squeeze/stable)
3) All VM's are running linux kernel 3.7 (no modules, crypto stuff
configured), time is synchronized by ntpdate
4) On both the nfs-server as an nfs-client, I can succesfully mount using
krb5/5i/5p.
Problem: once I dist-upgrade the nfs-server to unstable where
nfs-utils=1.2.6-3, the mount hangs as described in debian bug #682709.
When I delete the newly acquired
machine credential /tmp/krb5cc_machine_***, and retry the mount, the
syslog error is the following:
ERROR: GSS-API: error in gss_acquire_cred(): Unspecified GSS failure.
Minor code may provide more information - Unknown error
I have a patch available for 1.2.6-3 (basically the opposite of the
commit), that works for my environment. Just a few lines, can paste if
anyone is interested.
Thanks for the help!
Richard van den Toorn
(The Netherlands)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Hanging nfs4+krb5 mounts with negative uids?
2013-01-21 15:07 Hanging nfs4+krb5 mounts with negative uids? richard
@ 2013-01-21 16:05 ` richard
2013-01-21 16:11 ` J. Bruce Fields
2013-01-22 16:47 ` Sven Geggus
2 siblings, 0 replies; 6+ messages in thread
From: richard @ 2013-01-21 16:05 UTC (permalink / raw)
To: linux-nfs
Hi all,
I have a question about nfs-utils. It's about a patch that was submitted,
way back in 2010, fixing hanging mounts because of a int/uint problem:
you can read the commit message at:
http://www.spinics.net/lists/linux-nfs/msg14723.html
This code gets hit, e.g. with the new debian stable release where
nfs-kernel-server/nfs-common is upgraded to 1.2.6-3 (or upgrade
nfs-kernel-server from debian stable to debian unstable). On my nfsv4+krb5
system, this seems to do exactly the opposite of the patch: not fixing,
but in fact introducing a hanging mount.
When I change the code back from unsigned uid's to signed uid's the mount
works again.
Can anyone give me any help understanding why this is, or point me in a
direction in getting this solved? I very well might have just
misconfigured my nfsv4 + krb5 system (asking myself why am I getting
negative uids?)
Some more information to help debugging:
1) I'm running a VM as a kerberos KDC/admin server (debian sid/unstable)
2) I'm running a second VM as a nfsv4 server configured to use this
kerberos VM (debian squeeze/stable)
3) All VM's are running linux kernel 3.7 (no modules, crypto stuff
configured), time is synchronized by ntpdate
4) On both the nfs-server as an nfs-client, I can succesfully mount using
krb5/5i/5p.
Problem: once I dist-upgrade the nfs-server to unstable where
nfs-utils=1.2.6-3, the mount hangs as described in debian bug #682709.
When I delete the newly acquired
machine credential /tmp/krb5cc_machine_***, and retry the mount, the
syslog error is the following:
ERROR: GSS-API: error in gss_acquire_cred(): Unspecified GSS failure.
Minor code may provide more information - Unknown error
I have a patch available for 1.2.6-3 (basically the opposite of the
commit), that works for my environment. Just a few lines, can paste if
anyone is interested.
Thanks for the help!
Richard van den Toorn
(The Netherlands)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hanging nfs4+krb5 mounts with negative uids?
2013-01-21 15:07 Hanging nfs4+krb5 mounts with negative uids? richard
2013-01-21 16:05 ` richard
@ 2013-01-21 16:11 ` J. Bruce Fields
2013-01-21 19:38 ` richard
2013-01-22 16:47 ` Sven Geggus
2 siblings, 1 reply; 6+ messages in thread
From: J. Bruce Fields @ 2013-01-21 16:11 UTC (permalink / raw)
To: richard; +Cc: linux-nfs
On Mon, Jan 21, 2013 at 04:07:39PM +0100, richard@vdtoorn.nl wrote:
> Hi all,
>
> I have a question about nfs-utils. It's about a patch that was submitted,
> way back in 2010, fixing hanging mounts because of a int/uint problem:
>
> you can read the commit message at:
> http://www.spinics.net/lists/linux-nfs/msg14723.html
>
> This code gets hit, e.g. with the new debian stable release where
> nfs-kernel-server/nfs-common is upgraded to 1.2.6-3 (or upgrade
> nfs-kernel-server from debian stable to debian unstable). On my nfsv4+krb5
> system, this seems to do exactly the opposite of the patch: not fixing,
> but in fact introducing a hanging mount.
>
> When I change the code back from unsigned uid's to signed uid's the mount
> works again.
Assuming you're running kernel 3.7--this shoulds like the problem fixed
by kernel commit 621eb19ce1ec.. "svcrpc: Revert "sunrpc/cache.h: replace
simple_strtoul"", which has also been backported to 3.7.3. Could you
let us know whether applying that patch, or upgrading to 3.7.3, fixes
the problem?
--b.
>
> Can anyone give me any help understanding why this is, or point me in a
> direction in getting this solved? I very well might have just
> misconfigured my nfsv4 + krb5 system (asking myself why am I getting
> negative uids?)
>
> Some more information to help debugging:
>
> 1) I'm running a VM as a kerberos KDC/admin server (debian sid/unstable)
> 2) I'm running a second VM as a nfsv4 server configured to use this
> kerberos VM (debian squeeze/stable)
> 3) All VM's are running linux kernel 3.7 (no modules, crypto stuff
> configured), time is synchronized by ntpdate
> 4) On both the nfs-server as an nfs-client, I can succesfully mount using
> krb5/5i/5p.
>
> Problem: once I dist-upgrade the nfs-server to unstable where
> nfs-utils=1.2.6-3, the mount hangs as described in debian bug #682709.
> When I delete the newly acquired
> machine credential /tmp/krb5cc_machine_***, and retry the mount, the
> syslog error is the following:
>
> ERROR: GSS-API: error in gss_acquire_cred(): Unspecified GSS failure.
> Minor code may provide more information - Unknown error
>
> I have a patch available for 1.2.6-3 (basically the opposite of the
> commit), that works for my environment. Just a few lines, can paste if
> anyone is interested.
>
> Thanks for the help!
>
> Richard van den Toorn
> (The Netherlands)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hanging nfs4+krb5 mounts with negative uids?
2013-01-21 16:11 ` J. Bruce Fields
@ 2013-01-21 19:38 ` richard
2013-01-21 20:00 ` J. Bruce Fields
0 siblings, 1 reply; 6+ messages in thread
From: richard @ 2013-01-21 19:38 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: richard, linux-nfs
Hi Bruce,
Well done! Your answer to upgrade to a later version of the kernel fixed
the problem. I tested this on kernel 3.7.3 and it works beautifully.
Thanks very much!
Richard
>> This code gets hit, e.g. with the new debian stable release where
>> nfs-kernel-server/nfs-common is upgraded to 1.2.6-3 (or upgrade
>> nfs-kernel-server from debian stable to debian unstable). On my
>> nfsv4+krb5
>> system, this seems to do exactly the opposite of the patch: not fixing,
>> but in fact introducing a hanging mount.
>>
>> When I change the code back from unsigned uid's to signed uid's the
>> mount
>> works again.
>
> Assuming you're running kernel 3.7--this shoulds like the problem fixed
> by kernel commit 621eb19ce1ec.. "svcrpc: Revert "sunrpc/cache.h: replace
> simple_strtoul"", which has also been backported to 3.7.3. Could you
> let us know whether applying that patch, or upgrading to 3.7.3, fixes
> the problem?
>
> --b.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hanging nfs4+krb5 mounts with negative uids?
2013-01-21 19:38 ` richard
@ 2013-01-21 20:00 ` J. Bruce Fields
0 siblings, 0 replies; 6+ messages in thread
From: J. Bruce Fields @ 2013-01-21 20:00 UTC (permalink / raw)
To: richard; +Cc: linux-nfs
On Mon, Jan 21, 2013 at 08:38:16PM +0100, richard@vdtoorn.nl wrote:
> Hi Bruce,
>
> Well done! Your answer to upgrade to a later version of the kernel fixed
> the problem. I tested this on kernel 3.7.3 and it works beautifully.
Thanks for confirming.--b.
>
> Thanks very much!
>
> Richard
>
> >> This code gets hit, e.g. with the new debian stable release where
> >> nfs-kernel-server/nfs-common is upgraded to 1.2.6-3 (or upgrade
> >> nfs-kernel-server from debian stable to debian unstable). On my
> >> nfsv4+krb5
> >> system, this seems to do exactly the opposite of the patch: not fixing,
> >> but in fact introducing a hanging mount.
> >>
> >> When I change the code back from unsigned uid's to signed uid's the
> >> mount
> >> works again.
> >
> > Assuming you're running kernel 3.7--this shoulds like the problem fixed
> > by kernel commit 621eb19ce1ec.. "svcrpc: Revert "sunrpc/cache.h: replace
> > simple_strtoul"", which has also been backported to 3.7.3. Could you
> > let us know whether applying that patch, or upgrading to 3.7.3, fixes
> > the problem?
> >
> > --b.
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hanging nfs4+krb5 mounts with negative uids?
2013-01-21 15:07 Hanging nfs4+krb5 mounts with negative uids? richard
2013-01-21 16:05 ` richard
2013-01-21 16:11 ` J. Bruce Fields
@ 2013-01-22 16:47 ` Sven Geggus
2 siblings, 0 replies; 6+ messages in thread
From: Sven Geggus @ 2013-01-22 16:47 UTC (permalink / raw)
To: linux-nfs
richard@vdtoorn.nl wrote:
> Can anyone give me any help understanding why this is, or point me in a
> direction in getting this solved? I very well might have just
> misconfigured my nfsv4 + krb5 system (asking myself why am I getting
> negative uids?)
Looks like this is exactly what I ran into with vanilla Kernel 3.6.x on
debian wheezy.
It worked fine using 3.5.something and it works again using 3.7.3 after J.
Bruce Fields reverted the patch which caused the problem.
See http://marc.info/?t=135126949200001&r=1
I'm not 100% certain about the cause of this problem, but I would assume it
is because the mount is done as root which is not a valid kerberos realm (at
least in my case). However this is always the case when autofs is used
because "automount" is running as root.
Sven
--
"Those who do not understand Unix are condemned to reinvent it, poorly"
(Henry Spencer)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-22 17:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 15:07 Hanging nfs4+krb5 mounts with negative uids? richard
2013-01-21 16:05 ` richard
2013-01-21 16:11 ` J. Bruce Fields
2013-01-21 19:38 ` richard
2013-01-21 20:00 ` J. Bruce Fields
2013-01-22 16:47 ` Sven Geggus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).