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

Ben Myers bpm at sgi.com
Wed Jan 23 16:00:04 CST 2013


On Wed, Jan 23, 2013 at 01:56:18PM +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 at oss.sgi.com
> CC: Ben Myers <bpm at sgi.com>
> CC: stable at vger.kernel.org
> Signed-off-by: Jan Kara <jack at suse.cz>

Looks good!

Reviewed-by: Ben Myers <bpm at sgi.com>



More information about the xfs mailing list