From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sunil Mushran Date: Thu, 03 Dec 2009 11:19:52 -0800 Subject: [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read() In-Reply-To: <1259867892-1635-1-git-send-email-sunil.mushran@oracle.com> References: <1259867892-1635-1-git-send-email-sunil.mushran@oracle.com> Message-ID: <4B180F58.1030007@oracle.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ocfs2-devel@oss.oracle.com This is for ocfs2 1.6. Not mainline. Sunil Mushran wrote: > __generic_file_aio_read() was being passed as incorrect address for pos > leading to a run-away read. > > Signed-off-by: Sunil Mushran > --- > kapi-compat/include/aiovec.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kapi-compat/include/aiovec.h b/kapi-compat/include/aiovec.h > index a10d5b5..a8896f1 100644 > --- a/kapi-compat/include/aiovec.h > +++ b/kapi-compat/include/aiovec.h > @@ -13,7 +13,7 @@ static ssize_t kapi_generic_file_aio_read(struct kiocb *iocb, > { > BUG_ON(iocb->ki_pos != pos); > > - return __generic_file_aio_read(iocb, iov, nr_segs, &pos); > + return __generic_file_aio_read(iocb, iov, nr_segs, &iocb->ki_pos); > } > > static ssize_t __ocfs2_file_aio_read(struct kiocb *iocb, >