NFS broken in latest 2.6.37-rcX
Hi all,
It seems that NFS got broken recently.
I've bisected this to babddc72a9468884ce1a23db3c3d54b0afa299f0.
Both NFS version 2 and 3 are affected. I haven't tested NFS 4.
I've been able to reproduce with both 32bit and 64bit kernels using gcc-4.5.1 with the fix for PR46915 included.
To reproduce, simply mount an NFS share and try to list the files with ls.
When listing the directory, the code seem to be looping in the commit I mentioned. The network traffic goes high and you always see the same packets flowing.
In current HEAD, the behavior is slightly different. The process uses 100% and either you get a kernel panic or if you are lucky, you get something like "memory exhausted".
I'm not sure how to troubleshoot this further.
Any idea ?
Guy
Quoted 15 lines · Guy Martin
It seems that NFS got broken recently.
I've bisected this tobabddc72a9468884ce1a23db3c3d54b0afa299f0.Both NFS version 2 and 3 are affected. I haven't tested NFS 4.
I've been able to reproduce with both 32bit and 64bit kernels using gcc-4.5.1 with the fix for PR46915 included.
To reproduce, simply mount an NFS share and try to list the files with ls.
When listing the directory, the code seem to be looping in the commit I mentioned. The network traffic goes high and you always see the same packets flowing.
Quoted 8 lines
In current HEAD, the behavior is slightly different. The process uses 100% and either you get a kernel panic or if you are lucky, you get something like "memory exhausted".
I'm not sure how to troubleshoot this further.
Any idea ?
You need to understand the failure mode.
I would do two things:
(a) Revert the patch on HEAD and see if it works. This is usually convincing proof that something is broken and the patch interacts badly with our arch.
(c) Put printfs in the code to see where it's looping and under what conditions.
Once you have a better grasp of the failure mode you can contact the author of the patch and tell them about the breakage, CC linux-parisc, and ask for help.
That would be me plan of attack.
Cheers,
Carlos.
Quoted 33 lines · Carlos O'Donell
Quoted 15 lines · Guy Martin
It seems that NFS got broken recently.
I've bisected this tobabddc72a9468884ce1a23db3c3d54b0afa299f0.Both NFS version 2 and 3 are affected. I haven't tested NFS 4.
I've been able to reproduce with both 32bit and 64bit kernels using gcc-4.5.1 with the fix for PR46915 included.
To reproduce, simply mount an NFS share and try to list the files with ls.
When listing the directory, the code seem to be looping in the commit I mentioned. The network traffic goes high and you always see the same packets flowing.
Quoted 8 lines
In current HEAD, the behavior is slightly different. The process uses 100% and either you get a kernel panic or if you are lucky, you get something like "memory exhausted".
I'm not sure how to troubleshoot this further.
Any idea ?
You need to understand the failure mode.
I would do two things:
(a) Revert the patch on HEAD and see if it works. This is usually convincing proof that something is broken and the patch interacts badly with our arch.
Quoted 8 lines
(c) Put printfs in the code to see where it's looping and under what conditions.
Once you have a better grasp of the failure mode you can contact the author of the patch and tell them about the breakage, CC linux-parisc, and ask for help.
That would be me plan of attack.
Arm ran into this as well
http://marc.info/?t=129372938100002
It looks to be an inequivalent aliasing problem caused by writes via the kernel direct mapping, and reads via vmalloc space.
James
James,
Thanks for pointing me to the thread.
I reached similar conclusion as well. After adding lots of printk, I could see that the page where the skb buff is copied is not or partially updated when being read by xdr_page_filler.
Cheers,
Guy
Quoted 54 lines · On Wed, 05 Jan 2011 11:36:01 -0600 James Bottomley…
Quoted 34 lines · Carlos O'Donell
Quoted 15 lines · Guy Martin
It seems that NFS got broken recently.
I've bisected this tobabddc72a9468884ce1a23db3c3d54b0afa299f0.Both NFS version 2 and 3 are affected. I haven't tested NFS 4.
I've been able to reproduce with both 32bit and 64bit kernels using gcc-4.5.1 with the fix for PR46915 included.
To reproduce, simply mount an NFS share and try to list the files with ls.
When listing the directory, the code seem to be looping in the commit I mentioned. The network traffic goes high and you always see the same packets flowing.
Quoted 8 lines
In current HEAD, the behavior is slightly different. The process uses 100% and either you get a kernel panic or if you are lucky, you get something like "memory exhausted".
I'm not sure how to troubleshoot this further.
Any idea ?
You need to understand the failure mode.
I would do two things:
(a) Revert the patch on HEAD and see if it works. This is usually convincing proof that something is broken and the patch interacts badly with our arch.
Quoted 8 lines
(c) Put printfs in the code to see where it's looping and under what conditions.
Once you have a better grasp of the failure mode you can contact the author of the patch and tell them about the breakage, CC linux-parisc, and ask for help.
That would be me plan of attack.
Arm ran into this as well
http://marc.info/?t=129372938100002
It looks to be an inequivalent aliasing problem caused by writes via the kernel direct mapping, and reads via vmalloc space.
James
Quoted 7 lines · Guy Martin
James,
Thanks for pointing me to the thread.
I reached similar conclusion as well. After adding lots of printk, I could see that the page where the skb buff is copied is not or partially updated when being read by
xdr_page_filler.
So does this fix it?
James
---
fs/nfs/dir.c +1 -0
@@ -1783,6 +1783,7 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *symmemcpy (kaddr, symname, pathlen);if (pathlen <PAGE_SIZE )memset (kaddr + pathlen,0 ,PAGE_SIZE - pathlen); +flush_kernel_dcache_page (page);kunmap_atomic (kaddr,KM_USER0 ); error =NFS_PROTO (dir)->symlink (dir, dentry, page, pathlen, &attr);
fs/nfs/nfs4proc.c +1 -0
@@ -205,6 +205,7 @@ static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dent readdir->pgbase = (char *)p - (char *)start; readdir->count -= readdir->pgbase; +flush_kernel_dcache_page (*readdir->pages);kunmap_atomic (start,KM_USER0 ); }