[PATCH] afs_proc_cleanup()

B N Poornima poornima at in.ibm.com
Thu Jan 18 08:53:51 EST 2007


 
Hi,
This is regarding a bug in the 'kafs' module. Whenever the kafs module
is unloaded, it produces the following stack trace. 
********************************************************************
kAFS: Red Hat AFS client v0.1 unregistering.
BUG: at fs/proc/generic.c:732 remove_proc_entry()
 [<c0195380>] remove_proc_entry+0x11b/0x175
 [<c013b52e>] sys_delete_module+0x1a5/0x1cf
 [<c0158bc2>] remove_vma+0x36/0x3b
 [<c01594ca>] do_munmap+0x193/0x1ac
 [<c0103da0>] syscall_call+0x7/0xb
 [<c02a0033>] nf_ip_checksum+0xd4/0xe1
 =======================
***************************************************************
The problem is reproducible on the latest rc kernel - 2.6.20-rc5. The
cause of the problem being kafs driver trying to free the /proc/fs/afs
directory which is not empty. 
I'm attaching the patch which solves the problem, for review. 

- Poornima

-------------- next part --------------
Signed-off-by: B N Poornima <poornima at in.ibm.com>
---
--- fs/afs/proc.org	2007-01-16 18:08:12.016135000 +0530
+++ fs/afs/proc.c	2007-01-16 18:09:02.566135000 +0530
@@ -178,6 +178,8 @@ void afs_proc_cleanup(void)
 {
 	remove_proc_entry("cells", proc_afs);
 
+	remove_proc_entry("rootcell", proc_afs);
+
 	remove_proc_entry("fs/afs", NULL);
 
 } /* end afs_proc_cleanup() */


More information about the linux-afs mailing list