From: "Jan Beulich" Subject: Re: Crash with paravirt-ops 2.6.31.6 kernel Date: Wed, 25 Nov 2009 10:22:45 +0000 Message-ID: <4B0D13850200007800021FC6@vpn.id2.novell.com> References: <28846609.721258484676784.JavaMail.root@ifrit.dereferenced.org> <20091122095403.GA1496@wavehammer.waldi.eu.org> <1258989935.7590.52.camel@zakaz.uk.xensource.com> <4B0AC6FA0200007800021812@vpn.id2.novell.com> <1258994658.7590.80.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1258994658.7590.80.camel@zakaz.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , Bastian Blank , "544145@bugs.debian.org" <544145@bugs.debian.org> List-Id: xen-devel@lists.xenproject.org >>> Ian Campbell 23.11.09 17:44 >>> >On Mon, 2009-11-23 at 16:31 +0000, Jan Beulich wrote: >> >> It does not happen on XenSource 2.6.18 kernel >> > >> >I assume that this kernel (perhaps coincidentally) manages to use >> >FLAT_USER_CS32 for compat mode processes. >> > >> >> , or the Debian 2.6.26 kernel. >> > >> >This was a forward ported 2.6.18-style kernel so I guess the same = reason >> >as 2.6.18. >>=20 >> If your analysis was right, 2.6.18 as well as our forward ported = kernels >> should also be affected (both ia32_sysenter_target and ia32_cstar_target= >> store __USER32_CS to the frame, and return via HYPERVISOR_iret), yet >> supposedly they don't have the problem (though I can't say why that >> would be). So perhaps there's some other yet un-described aspect to >> this, or I'm being confused by something... > >I didn't try any of these kernels myself so I don't really know what >happens. Okay, I think I spotted the relevant difference: 2.6.18 and forward ports set VGCF_in_syscall only when returning from 64-bit system calls (through ret_from_sys_call) - 32-bit syscalls (regardless of the entry path taken) return through int_ret_from_sys_call. 32-bit guest kernels shouldn't be affected by this, as compat mode returns from the hypervisor (compat_restore_all_guest) always use iret. Jan