Re: [patch][bugfix] epoll cross-thread deletion fix ...

Davide Libenzi (davidel@xmailserver.org)
Thu, 27 Mar 2003 10:03:25 -0800 (PST)


On Thu, 27 Mar 2003, Marc-Christian Petersen wrote:

> On Wednesday 26 March 2003 21:20, Davide Libenzi wrote:
>
> Hi Davide,
>
> > This fixes a bug that might happen having a thread doing epoll_wait() with
> > another thread doing epoll_ctl(EPOLL_CTL_DEL) and close(). The fast check
> > inside eventpoll_release() is good to not effect performace of code not
> > using epoll, but it requires get_file() to be called ( that can be avoided
> > by dropping the fast check ). I opted to keep the fast check and to have
> > epoll to call get_file() before the event send loop. I tested it on UP and
> > 2SMP with a bug-exploiting program provided by @pivia.com ( thx to them )
> > and it looks fine. I also update the 2.4.20 epoll patch with this fix :
> >
> > http://www.xmailserver.org/linux-patches/epoll-lt-2.4.20-0.5.diff
> so this is v0.63?

Ok, I messed up with namings :) Yes, it'll be 0.63 ...

- Davide

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