Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2001 22:50:59 +0200
From:      Tor.Egge@fast.no
To:        dillon@earth.backplane.com
Cc:        arch@FreeBSD.ORG
Subject:   Re: on load control / process swapping
Message-ID:  <200105162050.WAA01047@midten.fast.no>
In-Reply-To: Your message of "Wed, 16 May 2001 13:31:46 -0700 (PDT)"
References:  <200105162031.f4GKVkd77205@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>     Ok, I've done a quick once-over of the patch and I have a question:
>     What happens if you've just written that file normally and there are
>     still some uncomitted dirty buffers associated with it, and you then
>     do an O_DIRECT read of the file?  Do you get the old data or the new
>     data?

Currently, you get the old data.  That's both semantically incorrect
and a security hole.  Some check for dirty buffers should be made if
the OBJ_MIGHTBEDIRTY flag is set on the vm object.

- Tor Egge

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105162050.WAA01047>