From: Keir Fraser Subject: Re: Bug in CS 20073 Date: Fri, 21 Aug 2009 14:10:42 +0100 Message-ID: References: <1250856190.2390.23.camel@moss-pluto.epoch.ncsc.mil> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1250856190.2390.23.camel@moss-pluto.epoch.ncsc.mil> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stephen Smalley Cc: Xen , "Zhang, Xiantao" List-Id: xen-devel@lists.xenproject.org On 21/08/2009 13:03, "Stephen Smalley" wrote: > On Thu, 2009-08-20 at 17:02 +0100, Keir Fraser wrote: >> Looks like a lock normally taken with irqs disabled may be being taken with >> irqs enabled. Which wouldn't be allowed but could be easy to fix. > > This appears to have been introduced by CS 20073, x86: Implement > per-cpu vector for xen hypervisor. It introduces mixed usage of > spin_lock() and spin_lock_irqsave() on the vector_lock, whereas > previously it was always spin_lock_irqsave(). Xiantao, Can you make a patch for this? Any acquisition of the lock where irqs may not already be disabled must do spin_lock_irq or spin_lock_irqsave. -- Keir