All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read()
@ 2009-12-03 19:18 Sunil Mushran
  2009-12-03 19:19 ` Sunil Mushran
  2009-12-04  2:55 ` Joel Becker
  0 siblings, 2 replies; 3+ messages in thread
From: Sunil Mushran @ 2009-12-03 19:18 UTC (permalink / raw)
  To: ocfs2-devel

__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,
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read()
  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
  2009-12-04  2:55 ` Joel Becker
  1 sibling, 0 replies; 3+ messages in thread
From: Sunil Mushran @ 2009-12-03 19:19 UTC (permalink / raw)
  To: ocfs2-devel

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,
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read()
  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
@ 2009-12-04  2:55 ` Joel Becker
  1 sibling, 0 replies; 3+ messages in thread
From: Joel Becker @ 2009-12-04  2:55 UTC (permalink / raw)
  To: ocfs2-devel

On Thu, Dec 03, 2009 at 11:18:12AM -0800, 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>

ack


-- 

 Brain: I shall pollute the water supply with this DNAdefibuliser,
        turning everyone into mindless slaves.
 Pinky: What about the people who drink bottled water?
 Brain: Pinky, people who pay 5 dollars for a bottle of water are
        already mindless slaves.

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-04  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-12-04  2:55 ` Joel Becker

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.