Messages in this thread | | | Date | Thu, 1 May 2014 08:24:06 +0200 | From | Mateusz Guzik <> | Subject | Re: [PATCH] aio: fix potential leak in aio_run_iocb(). |
| |
On Thu, May 01, 2014 at 03:31:28AM +0000, Leon Yu wrote: > iovec should be reclaimed whenever caller of rw_copy_check_uvector() returns, > but it doesn't hold when failure happens right after aio_setup_vectored_rw(). >
There is a proposal (wich a patch) to modify semantics of rw_copy_check_uvector so that it frees stuff on error, taking care of this case as well:
https://lkml.org/lkml/2014/4/25/778
-- Mateusz Guzik
| |