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

From: Christoph Hellwig
Date: Tue Dec 07 2021 - 06:18:05 EST


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).