Re: [Qemu-devel] [PATCH 1/1] event_notifier: prevent accidental use after close

2017-03-02 Thread Stefan Hajnoczi
On Thu, Mar 02, 2017 at 07:13:08PM +0100, Halil Pasic wrote: > Let's set the handles to the underlying facilities to their extremal > value so no accidental misuse can happen, and to make it obvious that the > notifier is dysfunctional. E.g. if we just close an fd but do not touch > the int holding

[Qemu-devel] [PATCH 1/1] event_notifier: prevent accidental use after close

2017-03-02 Thread Halil Pasic
Let's set the handles to the underlying facilities to their extremal value so no accidental misuse can happen, and to make it obvious that the notifier is dysfunctional. E.g. if we just close an fd but do not touch the int holding the fd eventually a read/write could succeed again when the fd gets