2007-02-20 23:33:16

by Jean-Denis Girard

[permalink] [raw]
Subject: Server not working since 2.6.20-rc

Hi list,

I have an LTSP environment, which is working fine with kernels before =

2.6.20 series. I think I started to test with 2.6.20-rc3, up to latest =

2.6.20.1, but mounting nfs shares from the clients fails with =

"permission denied". If I reboot server to 2.6.19.x without changing =

configuration, it works again.

When I try to mount /home from my laptop (with kernel 2.6.20), I get the =

well known message:
mount: tiare.sysnux.pf:/home failed, reason given by server: Permission =

denied

But, on the server I have:
[jdg@tiare ~]$ cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/home =

192.168.10.0/255.255.255.0(rw,insecure,root_squash,sync,wdelay,no_subtree_c=
heck,insecure_locks)

Client and server are based on Mandriva 2007. Server is 64 bits SMP. =

nfs-utils has been updated to 1.0.10. I can provide more details if needed.

I think I have done all checks recommended in the troubleshooting =

section of the nfs-howto. Any help would be greatly appreciated.


Thanks,
-- =

Jean-Denis Girard

SysNux Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/ T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2007-02-21 00:17:55

by Jean-Denis Girard

[permalink] [raw]
Subject: Re: Server not working since 2.6.20-rc

Kevin Coffman a =E9crit :
> This patch from Bruce worked for me:
> =

> --- a/net/sunrpc/svcsock.c~copy_address_correctly 2007-02-06
> 16:55:30.000000000 -0500
> +++ b/net/sunrpc/svcsock.c 2007-02-12 14:27:59.000000000 -0500
> @@ -1038,7 +1038,7 @@
> if (!(newsvsk =3D svc_setup_socket(serv, newsock, &err,
> (SVC_SOCK_ANONYMOUS | =

> SVC_SOCK_TEMPORARY))))
> goto failed;
> - memcpy(&newsvsk->sk_remote, &sin, slen);
> + memcpy(&newsvsk->sk_remote, sin, slen);
> newsvsk->sk_remotelen =3D slen;
> =

> /* make sure that we don't have too many active connections.

Thanks Kevin for very prompt reply, but I can't find that code in =

net/sunrpc/svcsock.c of the 2.6.20.1 kernel. At line 925 I have:
if (!(newsvsk =3D svc_setup_socket(serv, newsock, &err, 0)))
goto failed;


/* make sure that we don't have too many active connections.


Thanks,
-- =

Jean-Denis Girard

SysNux Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/ T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-02-20 23:40:43

by Kevin Coffman

[permalink] [raw]
Subject: Re: Server not working since 2.6.20-rc

On 2/20/07, Jean-Denis Girard <[email protected]> wrote:
> Hi list,
>
> I have an LTSP environment, which is working fine with kernels before
> 2.6.20 series. I think I started to test with 2.6.20-rc3, up to latest
> 2.6.20.1, but mounting nfs shares from the clients fails with
> "permission denied". If I reboot server to 2.6.19.x without changing
> configuration, it works again.
>
> When I try to mount /home from my laptop (with kernel 2.6.20), I get the
> well known message:
> mount: tiare.sysnux.pf:/home failed, reason given by server: Permission
> denied
>
> But, on the server I have:
> [jdg@tiare ~]$ cat /proc/fs/nfs/exports
> # Version 1.1
> # Path Client(Flags) # IPs
> /home
> 192.168.10.0/255.255.255.0(rw,insecure,root_squash,sync,wdelay,no_subtree_check,insecure_locks)
>
> Client and server are based on Mandriva 2007. Server is 64 bits SMP.
> nfs-utils has been updated to 1.0.10. I can provide more details if needed.
>
> I think I have done all checks recommended in the troubleshooting
> section of the nfs-howto. Any help would be greatly appreciated.
>

This patch from Bruce worked for me:

--- a/net/sunrpc/svcsock.c~copy_address_correctly 2007-02-06
16:55:30.000000000 -0500
+++ b/net/sunrpc/svcsock.c 2007-02-12 14:27:59.000000000 -0500
@@ -1038,7 +1038,7 @@
if (!(newsvsk = svc_setup_socket(serv, newsock, &err,
(SVC_SOCK_ANONYMOUS | SVC_SOCK_TEMPORARY))))
goto failed;
- memcpy(&newsvsk->sk_remote, &sin, slen);
+ memcpy(&newsvsk->sk_remote, sin, slen);
newsvsk->sk_remotelen = slen;

/* make sure that we don't have too many active connections.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-02-21 00:06:22

by NeilBrown

[permalink] [raw]
Subject: Re: Server not working since 2.6.20-rc

On Tuesday February 20, [email protected] wrote:
>
> This patch from Bruce worked for me:
>
> --- a/net/sunrpc/svcsock.c~copy_address_correctly 2007-02-06
> 16:55:30.000000000 -0500
> +++ b/net/sunrpc/svcsock.c 2007-02-12 14:27:59.000000000 -0500
> @@ -1038,7 +1038,7 @@
> if (!(newsvsk = svc_setup_socket(serv, newsock, &err,
> (SVC_SOCK_ANONYMOUS | SVC_SOCK_TEMPORARY))))
> goto failed;
> - memcpy(&newsvsk->sk_remote, &sin, slen);
> + memcpy(&newsvsk->sk_remote, sin, slen);
> newsvsk->sk_remotelen = slen;
>
> /* make sure that we don't have too many active connections.
>

That bug was never in mainline, so I doubt that was it. :-)

NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs