[parisc-linux] Fwd: Problems with raw interface.

Stephen C. Tweedie sct@redhat.com
26 Sep 2003 15:42:07 +0100


On Fri, 2003-09-26 at 15:20, David S. Miller wrote:

> Any page can be mremap()'d to any other address.

Yep.  At least this case is rare, and you can optimise for the simple
case by checking page->count.  But the general case really does need to
be covered if you're going to be fully correct for all cases.

And with O_DIRECT being an unprivileged operation, users have the
ability to expose this problem quite easily.