Re: [2.6.8-rc4] New nfsd-related kernel panic
From: Neil Brown
Date: Wed Aug 11 2004 - 18:01:41 EST
On Wednesday August 11, wa1ter@xxxxxxxxxxxxx wrote:
>
> Anyone else seeing this?
Yes. I've just sent the following patch to Linus/Andrew.
NeilBrown
diff ./fs/nfsd/nfs3xdr.c~current~ ./fs/nfsd/nfs3xdr.c
--- ./fs/nfsd/nfs3xdr.c~current~ 2004-08-12 08:32:26.000000000 +1000
+++ ./fs/nfsd/nfs3xdr.c 2004-08-12 08:37:33.000000000 +1000
@@ -347,8 +347,8 @@ nfs3svc_decode_readargs(struct svc_rqst
svc_take_page(rqstp);
args->vec[v].iov_base = page_address(rqstp->rq_respages[pn]);
args->vec[v].iov_len = len < PAGE_SIZE? len : PAGE_SIZE;
+ len -= args->vec[v].iov_len;
v++;
- len -= PAGE_SIZE;
}
args->vlen = v;
return xdr_argsize_check(rqstp, p);
diff ./fs/nfsd/nfsxdr.c~current~ ./fs/nfsd/nfsxdr.c
--- ./fs/nfsd/nfsxdr.c~current~ 2004-08-12 08:32:26.000000000 +1000
+++ ./fs/nfsd/nfsxdr.c 2004-08-12 08:38:49.000000000 +1000
@@ -255,8 +255,8 @@ nfssvc_decode_readargs(struct svc_rqst *
svc_take_page(rqstp);
args->vec[v].iov_base = page_address(rqstp->rq_respages[pn]);
args->vec[v].iov_len = len < PAGE_SIZE?len:PAGE_SIZE;
+ len -= args->vec[v].iov_len;
v++;
- len -= PAGE_SIZE;
}
args->vlen = v;
return xdr_argsize_check(rqstp, p);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/