From: Daniel Stodden Subject: Re: Xen 4.0.0x allows for data corruption in Dom0 Date: Mon, 8 Mar 2010 15:52:05 -0800 Message-ID: <1268092325.27980.318.camel@agari.van.xensource.com> References: <20100307143631.GO2580@reaktio.net> <20100307161256.GQ2580@reaktio.net> <1268090552.27980.288.camel@agari.van.xensource.com> <4B958896.4090004@invisiblethingslab.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4B958896.4090004@invisiblethingslab.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joanna Rutkowska Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Mon, 2010-03-08 at 18:30 -0500, Joanna Rutkowska wrote: > On 03/09/2010 12:22 AM, Daniel Stodden wrote: > > On Sun, 2010-03-07 at 11:12 -0500, Pasi K=C3=A4rkk=C3=A4inen wrote: > >> On Sun, Mar 07, 2010 at 02:39:09PM +0000, Keir Fraser wrote: > >>> On 07/03/2010 14:36, "Pasi K=C3=A4rkk=C3=A4inen" wro= te: > >>> > >>>>> Tried a few times and no luck reproducing so far. I hope some oth= er people > >>>>> on the list also will give it a go, since it's so easy to try it = out. > >>>>> > >>>> > >>>> I'm able to reproduce this with xen/master 2.6.31.6 dom0 kernel (f= rom > >>>> 2010-02-20), > >>>> but I'm not able to reproduce it with the current xen/stable 2.6.3= 2.9. > >>>> > >>>> I'll try with the most recent 2.6.31.6 dom0 kernel aswell.. > >>> > >>> Thanks Pasi! > >>> > >> > >> It seems to happen with the latest xen/master 2.6.31.6 aswell! > >=20 > > Does this look to you like we're corrupting memory or on-disk storage= ? > >=20 > > E.g. does a > > $ dd if=3D/dev/zero bs=3D1M | hexdump -C=20 > > have the same issue? > >=20 >=20 > I think there might be a chance that the above executes correctly, even > if we have memory corruption -- this might be e.g. because the actual > "dest" buffer here would be much smaller than the fs cache buffer used > when we copy onto disk. And so our small dest buffer might just not be > so likely to be hit with this presumably random corruption. >=20 > Perhaps dd'ing onto /dev/shm would be a better way to check this? I agree that a negative doesn't mean much. I'm just poking around there because the positive would have mattered: If we still get to see it, we're out of the storage discussion and can focus on memory corruption. Daniel