Re: [PATCH 3/6] [-mm] epoll: remember the event if epoll_wait returns-EFAULT

From: Davide Libenzi
Date: Thu Feb 26 2009 - 11:36:33 EST


On Tue, 24 Feb 2009, Tony Battersby wrote:

> If epoll_wait returns -EFAULT, the event that was being returned when
> the fault was encountered will be forgotten. This is not a big deal
> since EFAULT will happen only if a buggy userspace program passes in a
> bad address, in which case what happens later usually doesn't matter.
> However, it is easy to remember the event for later, and this patch
> makes a simple change to do that.

It doesn't really matter with an EFAULT coming, anyway ...

Acked-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>


- Davide


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