Re: [PATCH v3] Fix rmmod/read/write races in /proc entries

2007-02-09 Thread Andrew Morton
On Thu, 8 Feb 2007 16:20:12 +0300 Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > +again: > spin_lock(_subdir_lock); > for (p = >subdir; *p; p=&(*p)->next ) { > if (!proc_match(len, fn, *p)) > continue; > de = *p; > + > + /* >

Re: [PATCH v3] Fix rmmod/read/write races in /proc entries

2007-02-09 Thread Andrew Morton
On Thu, 8 Feb 2007 16:20:12 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: +again: spin_lock(proc_subdir_lock); for (p = parent-subdir; *p; p=(*p)-next ) { if (!proc_match(len, fn, *p)) continue; de = *p; + + /* +

[PATCH v3] Fix rmmod/read/write races in /proc entries

2007-02-08 Thread Alexey Dobriyan
Fed up with verifying various barrier-based schemes, this version uses spinlock. --- Current /proc creation interfaces suffer from at least two types of races: 1. Write

[PATCH v3] Fix rmmod/read/write races in /proc entries

2007-02-08 Thread Alexey Dobriyan
Fed up with verifying various barrier-based schemes, this version uses spinlock. --- Current /proc creation interfaces suffer from at least two types of races: 1. Write