From: Alex Bligh Subject: Re: workaround for dom0 crash due to QEMU using O_DIRECT Date: Mon, 08 Jul 2013 23:40:11 +0100 Message-ID: References: <20130708191853.GA4927@phenom.dumpdata.com> <8DEF24E1F5A12D950B781A14@Ximines.local> <1373316497.5453.44.camel@hastur.hellion.org.uk> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373316497.5453.44.camel@hastur.hellion.org.uk> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: dcrisan@flexiant.com, Stefano Stabellini , xen-devel@lists.xensource.com, Alex Bligh List-Id: xen-devel@lists.xenproject.org Ian, --On 8 July 2013 21:48:17 +0100 Ian Campbell wrote: >> Have we not got a danger here that trade_page could end up written >> to with VM A's data, and this could then find itself in VM B's disk? >> Or do we know that every access by the kernel after withdrawal >> of the grant is guaranteed to be a read? In which case making it read >> only might be safer. > > It absolutely should be read only. AFAICT that means PAGE_KERNEL_RO > rather than the PAGE_KERNEL in the patch. OK. We should test with that then (Diana: NB) > The case we are worried about is read-after-free on the network tx path. > There can be no write-after-free on the network rx path. Yes I couldn't think of a realistic scenario where this would happen, but something just feels wrong about the page not being read-only. -- Alex Bligh