[Top] [All Lists]

Re: [PATCH 1/4] ext4: Fix possible use-after-free with AIO

To: Jan Kara <jack@xxxxxxx>
Subject: Re: [PATCH 1/4] ext4: Fix possible use-after-free with AIO
From: Theodore Ts'o <tytso@xxxxxxx>
Date: Tue, 29 Jan 2013 22:51:25 -0500
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, stable@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1359502081-20240-2-git-send-email-jack@xxxxxxx>
References: <1359502081-20240-1-git-send-email-jack@xxxxxxx> <1359502081-20240-2-git-send-email-jack@xxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Jan 30, 2013 at 12:27:58AM +0100, Jan Kara wrote:
> Running AIO is pinning inode in memory using file reference. Once AIO
> is completed using aio_complete(), file reference is put and inode can
> be freed from memory. So we have to be sure that calling aio_complete()
> is the last thing we do with the inode.
> CC: linux-ext4@xxxxxxxxxxxxxxx
> CC: "Theodore Ts'o" <tytso@xxxxxxx>
> CC: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
> Acked-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
> Signed-off-by: Jan Kara <jack@xxxxxxx>

I've picked up the ext4 change.  Sorry for not getting to this sooner.

                                           - Ted

<Prev in Thread] Current Thread [Next in Thread>