Re: [PATCH] procfs: Fix race between proc_readdir and remove_proc_entry

2006-12-14 Thread Darrick J. Wong
Oops, sent a corrupt and old version of the patch. Here's the correct patch. While running a insmod/rmmod loop with the mptsas driver (vanilla 2.6.19, IBM Intellistation Z30, SAS1064E controller if it matters), I encountered a bad dereference of the pointer "de": spin_unlock(&proc_subdir_lock);

[PATCH] procfs: Fix race between proc_readdir and remove_proc_entry

2006-12-14 Thread Darrick J. Wong
Hi, While running a insmod/rmmod loop with the mptsas driver (vanilla 2.6.19, IBM Intellistation Z30, SAS1064E controller if it matters), I encountered the following messages from the kernel: [53092.441412] general protection fault: [1] PREEMPT SMP [53092.447058] CPU 4 [53092.449108] Modul