Re: [PATCH v2 0/5] aio: fix use-after-free and missing wakeups

From: Eric Biggers
Date: Tue Dec 07 2021 - 14:10:27 EST


On Tue, Dec 07, 2021 at 12:17:58PM +0100, Christoph Hellwig wrote:
> On Tue, Dec 07, 2021 at 01:57:21AM -0800, Eric Biggers wrote:
> > This series fixes two bugs in aio poll, and one issue with POLLFREE more
> > broadly. This is intended to replace
> > "[PATCH v5] aio: Add support for the POLLFREE"
> > (https://lore.kernel.org/r/20211027011834.2497484-1-ramjiyani@xxxxxxxxxx)
> > which has some bugs.
> >
> > Careful review is appreciated; the aio poll code is very hard to work
> > with, and I don't know of an easy way to test it. Suggestions of any
> > aio poll tests to run would be greatly appreciated.
>
> libaio has a test for aio poll (test 22).

Great, it doesn't look very comprehensive but at least it is something. I ran
the whole libaio test suite (including that test), and all the tests pass both
before and after this patch series.

- Eric