Re: NFS corruption revisited

Trond Myklebust (trond.myklebust@fys.uio.no)
15 Sep 1999 18:22:06 +0200


Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> > The following is a ethereal dump of the NFS traffic for the particular
> > bytes above:
> >
> > packet #303:
> > 04b0 89 c0 50 8d 93 f0 fe ff ff 89 d0 50 8b 93 4c 00 ..P........P..L.
> > 04c0 00 00 89 d0 50 e8 ae e6 ff ff 83 c4 0c 8d 93 07 ....P...........
> > 04d0 ff ff ff 89 00 00 ......
> > ^^^^^
>
> That looks fine.
>
> > If additional data is required, please let me know.
>
> You need tcpdump data with the rpc fully decoded. Padding rpc's is quite
> valid and that is what the trace shows I believe.

Note that you can turn off padding by commenting the line
#define NFS_PAD_WRITES 1
in fs/nfs/nfs2xdr.c

If this shows padding to be the problem, then the bug lies with the
AIX server. It is supposed to read off the request length from the RPC
structure, rather than to assume things about the packet length.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/