From: Keir Fraser Subject: Re: Xen 4.0.0x allows for data corruption in Dom0 Date: Tue, 09 Mar 2010 10:15:45 +0000 Message-ID: References: <4B9624FD02000078000336EA@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B9624FD02000078000336EA@vpn.id2.novell.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: Jan Beulich , Pasi =?ISO-8859-1?B?S+Rya2vkaW5lbg==?= Cc: "xen-devel@lists.xensource.com" , Joanna Rutkowska , Daniel Stodden List-Id: xen-devel@lists.xenproject.org On 09/03/2010 09:37, "Jan Beulich" wrote: >> 7dc2000: 5a02 0000 0000 0000 760d d90c c500 0000 Z.......v....... >> 7dc2010: 3785 8def 8003 0000 1eb2 27b5 ff00 0000 7.........'..... >> 2dc0d000:7802 0000 0000 0000 ec70 d8eb ce00 0000 x........p...... >> 2dc0d010:6fb9 a66d 8403 0000 1eb2 27b5 ff00 0000 o..m......'..... > > How about these being vcpu_time_info structures? The fields > appear to all make sense. The only thing not matching this would > be a few differently looking corruption entries sent earlier by Joanna, > so this may not be the only thing. But it would explain why with 3.4.2 > the issue is not present. Pasi, can you try the attached patch (which simply stubs out the new VCPUOP_register_vcpu_time_memory_area hypercall)? I'm pretty sure this is it: just look at the implementation of __update_vcpu_system_time: when v!=current it will write to a virtual address in v, using current's page tables. This will happen on context switch dom0->domU for example. A quite suitable fix for 4.0.0 is to leave the hypercall stubbed out imo. -- Keir