[Top] [All Lists]

Re: [PATCH 2/4] xfs: Fix possible use-after-free with AIO

To: Jan Kara <jack@xxxxxxx>
Subject: Re: [PATCH 2/4] xfs: Fix possible use-after-free with AIO
From: Ben Myers <bpm@xxxxxxx>
Date: Tue, 29 Jan 2013 18:56:56 -0600
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>, stable@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1359502081-20240-3-git-send-email-jack@xxxxxxx>
References: <1359502081-20240-1-git-send-email-jack@xxxxxxx> <1359502081-20240-3-git-send-email-jack@xxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
Hi Jan,

On Wed, Jan 30, 2013 at 12:27:59AM +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: xfs@xxxxxxxxxxx
> CC: Ben Myers <bpm@xxxxxxx>
> CC: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Ben Myers <bpm@xxxxxxx>
> Acked-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
> Signed-off-by: Jan Kara <jack@xxxxxxx>

We picked this up in the xfs tree.  Sorry to keep you hanging.


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