From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read()
Date: Thu, 03 Dec 2009 11:19:52 -0800 [thread overview]
Message-ID: <4B180F58.1030007@oracle.com> (raw)
In-Reply-To: <1259867892-1635-1-git-send-email-sunil.mushran@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 <sunil.mushran@oracle.com>
> ---
> 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,
>
next prev parent reply other threads:[~2009-12-03 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 19:18 [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read() Sunil Mushran
2009-12-03 19:19 ` Sunil Mushran [this message]
2009-12-04 2:55 ` Joel Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B180F58.1030007@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.