xfs
[Top] [All Lists]

Re: TAKE - fix O_DIRECT and uninitialized user memory

To: lord@xxxxxxx, linux-xfs@xxxxxxxxxxx
Subject: Re: TAKE - fix O_DIRECT and uninitialized user memory
From: Andrew Morton <akpm@xxxxxxxxx>
Date: Thu, 12 Jun 2003 03:26:11 -0700
In-reply-to: <20030612032219.1842b0a2.akpm@xxxxxxxxx>
References: <200306111559.h5BFx0m15358@xxxxxxxxxxxxxxxxxxxx> <20030612032219.1842b0a2.akpm@xxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Andrew Morton <akpm@xxxxxxxxx> wrote:
>
> oops.
> 
>  What happens if an application passes multiple presentations of
>  the same page into a single non-O_DIRECT write() or read()?
> 
>  ie:
> 
>       mmap(buf, 4096, PROT_READ, MAP_FIXED, fd1, 0);
>       mmap(buf+4096, 4096, PROT_READ, MAP_FIXED, fd1, 0);
>       write(fd2, buf, 8192);

oops.  Forget I said that.  I'll go back to sleep now.


<Prev in Thread] Current Thread [Next in Thread>