Re: [Lse-tech] Re: [PATCH 0/7]: Fix for unsafe notifier chain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 27 Nov 2005 14:47:36 +0100, 
Andi Kleen <[email protected]> wrote:
>akpm wrote
>>   - Introduce a new notifier API which is wholly unlocked
>
>The old notifiers were already wholly unlocked. So it wouldn't 
>even need any changes. Just additional locks everywhere.

Wrong.  The existing implementation is racy as hell.  There is NO
locking on the existing chains, these patches make the notifier chains
race free.

Some of the notifier callbacks are used in weird contexts, including
NMI, so the only option for those chains is RCU.  Obviously those
callbacks cannot sleep.  Other chains are used in more normal context
_AND_ the callbacks want to sleep, so those chains need to use sleeping
locks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux