[PATCH] AFS: Remove all AFS /proc entries in module cleanup
David Howells
dhowells at redhat.com
Wed Feb 28 08:20:11 EST 2007
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.
- Poornima
Signed-off-by: B N Poornima <poornima at in.ibm.com>
Signed-Off-By: David Howells <dhowells at redhat.com>
---
fs/afs/proc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/afs/proc.c b/fs/afs/proc.c
index 8da8330..5b6ba12 100644
--- a/fs/afs/proc.c
+++ b/fs/afs/proc.c
@@ -179,6 +179,8 @@ void afs_proc_cleanup(void)
remove_proc_entry("rootcell", proc_afs);
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