From owner-freebsd-arch Wed May 16 13:51: 6 2001 Delivered-To: freebsd-arch@freebsd.org Received: from midten.fast.no (midten.fast.no [213.188.8.11]) by hub.freebsd.org (Postfix) with ESMTP id 67B3B37B422 for ; Wed, 16 May 2001 13:51:03 -0700 (PDT) (envelope-from Tor.Egge@fast.no) Received: from fast.no (IDENT:tegge@midten.fast.no [213.188.8.11]) by midten.fast.no (8.9.3/8.9.3) with ESMTP id WAA01047; Wed, 16 May 2001 22:50:59 +0200 (CEST) Message-Id: <200105162050.WAA01047@midten.fast.no> To: dillon@earth.backplane.com Cc: arch@FreeBSD.ORG Subject: Re: on load control / process swapping From: Tor.Egge@fast.no In-Reply-To: Your message of "Wed, 16 May 2001 13:31:46 -0700 (PDT)" References: <200105162031.f4GKVkd77205@earth.backplane.com> X-Mailer: Mew version 1.70 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 16 May 2001 22:50:59 +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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