On Thu, 1 May 2014, Leon Yu wrote:
> Date: Thu, 1 May 2014 03:31:28 +
> From: Leon Yu
> To: Benjamin LaHaise ,
> Alexander Viro
> Cc: linux-...@kvack.org, linux-fsde...@vger.kernel.org,
> linux-kernel@vger.kernel.org, Leon Yu
> Subject: [PATCH] ai
chianglun...@gmail.com
Subject: [PATCH] aio: fix potential leak in aio_run_iocb().
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().
Fix that in a such way to avoid hairy goto.
Hi
On Thu, May 01, 2014 at 03:31:28AM +, 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().
>
> Fix that in a such way to avoid hairy goto.
Good catch -- applied.
On Thu, May 01, 2014 at 03:31:28AM +, 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
On Thu, May 01, 2014 at 03:31:28AM +, 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
On Thu, May 01, 2014 at 03:31:28AM +, 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().
Fix that in a such way to avoid hairy goto.
Good catch -- applied.
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().
Fix that in a such way to avoid hairy goto.
Signed-off-by: Leon Yu
---
fs/aio.c | 6 ++
1 file changed, 2 insertions(+), 4
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().
Fix that in a such way to avoid hairy goto.
Signed-off-by: Leon Yu chianglun...@gmail.com
---
fs/aio.c | 6 ++
1 file changed, 2
8 matches
Mail list logo