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

From: Marc-Christian Petersen (m.c.p@wolk-project.de)
Date: Thu Mar 27 2003 - 12:19:58 EST


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?

ciao, Marc
-
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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:28 EST