From: Jan Kara Date: Wed, 30 Jan 2013 03:48:17 +0000 (-0500) Subject: ext4: fix possible use-after-free with AIO X-Git-Tag: v3.9-rc1~64^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=091e26dfc156aeb3b73bc5c5f277e433ad39331c;p=pandora-kernel.git ext4: fix possible use-after-free with AIO 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: stable@vger.kernel.org Reviewed-by: Carlos Maiolino Acked-by: Jeff Moyer Signed-off-by: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed