<manu@...> wrote: > The greylist entries held in memory have a p_refcnt field, for reference > count. It avoids the entry being free'ed by a thread while the MX sync > thread is working on it. > > It seems there is no similar locking mechanism for the autowhite list. I > think a thread can therefore free an autowhite entry while the sync > thread is working on it. This is likely to lead to a crash. > > Anyone has an opinion on this? Did I miss something? Yes: the refcount on the greylist is useless, as only the sync thread actually use it. I suspect this can also cause troubles. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@...
Message
Re: [milter-greylist] locking issue for autowhite list?
2009-01-23 by manu@netbsd.org