Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] locking issue for autowhite list?

2009-01-23 by manu@netbsd.org

<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@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.