★ wanayoo — archive 1999 http://kernelnotes.org/patch/21-p0636.htmlNouvelle recherche | Portail wanayoo

NFS patch

Olaf Kirch (okir@monad.swb.de)
Sat Jul 12 03:31:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

21-nfs-client-fix.patch
Harald Koenig wrote:
:       RPC: rpc_send sending evil packet:
:            c84adc5e 01000000 00000000 00000000 00000000 00000000 00000000
This is definitely a bug in the NFS client. Let me explain what's happening and why the packet is evil:

The client sees a timeout (or some other problem, e.g. garbage reply). While it correctly figures that it should retransmit the packet, it does not rebuild the packet but resends the current network buffer which, for some reason, already contains an RPC *reply* (you can see that from the second long word - a call has a 0 there, while replies have a 1). The first long word is the transmission id (XID).

It appears there's a race condition somewhere in the RPC socket handling where the client doesn't notice that some packet has already been received when it starts waiting for the reply.

Can you please apply the enclosed patch and check what happens?

May I also request that people put `NFS' somewhere in the subject when they report a problem to linux-kernel that they suspect is nfs-related? Quite frequently, I scan the lists only by subject, so threads like this one usually escape me.




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.