summaryrefslogtreecommitdiff
path: root/fs/read_write.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-01-30 00:28:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-04 06:03:36 +0800
commita50f81417a3a08d843a2da3bea16a03f4d593783 (patch)
tree51e90c002d5022e3c13c9b8059909bbb865eaa3c /fs/read_write.c
parentf9cf4f43eb21f39d69f0d0846166d87279234cd0 (diff)
fs: Fix possible use-after-free with AIO
commit 54c807e71d5ac59dee56c685f2b66e27cd54c475 upstream. 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. Acked-by: Jeff Moyer <jmoyer@redhat.com> CC: Christoph Hellwig <hch@infradead.org> CC: Jens Axboe <axboe@kernel.dk> CC: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions