From: Ian Campbell Subject: Re: Xen-4.3 - curious crash Date: Wed, 29 Jan 2014 09:25:22 +0000 Message-ID: <1390987522.31814.38.camel@kazak.uk.xensource.com> References: <52E81237.3010302@citrix.com> <52E8CD580200007800117D7E@nat28.tlf.novell.com> <1390985477.15103.4.camel@dagon.hellion.org.uk> <52E8D17E0200007800117D9F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52E8D17E0200007800117D9F@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Xen-devel List List-Id: xen-devel@lists.xenproject.org On Wed, 2014-01-29 at 09:01 +0000, Jan Beulich wrote: > >>> On 29.01.14 at 09:51, Ian Campbell wrote: > > On Wed, 2014-01-29 at 08:43 +0000, Jan Beulich wrote: > >> An interrupt not properly restoring EFLAGS.IF (or actually one not > >> properly restoring all of EFLAGS) would be very odd. About as odd > >> as a cosmic radiation induced bit flip resulting in some other > >> misbehavior. > > > > Isn't it also the affect of a missing spin_unlock(_irqrestore)? Or does > > something else catch that first? > > A missing plain spin_unlock() wouldn't have any effect of IF. And > a missing spin_unlock_irqrestore() would have an effect on IF in > the interrupt handler, but with the return being through an IRET > something would need to actively modify the flags on the stack > that IRET uses in order to affect the interrupted code's EFLAGS. Ah, I mistakenly thought that this issue was happening on that return path (i.e. before the IRET). Ian.