| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xen: Clear IRQ_GUEST bit from irq_desc status if its action is NULL
 On 09/13/2011 01:45 PM, Jan Beulich wrote: On 13.09.11 at 11:08, Igor Mammedov<imammedo@xxxxxxxxxx> wrote:On a system with Intel C600 series Patsburg SAS controller if following command are executed: rmmod isci modprobe isci the host will crash in pirq_guest_bind in attempt to dereference NULL action pointer. This is caused by isci driver which does not cleanup irq properly, removing device first and then os tries to unbind its irqs afterwards. c/s 20093 and 20844 fixed host crashes when removing isci module. However in dynamic_irq_cleanup 'action' field of irq_desc is set to NULL but IRQ_GUEST flag in 'status' field is not cleared. So on nextSo why don't you clear the bit there?attempt to bind pirq (modprobe isci) with IRQ_GUEST flag set, branch if ( !(desc->status& IRQ_GUEST) ) is skipped and host ends up with dereferencing NULL pointer 'action'. Second hunk is a bit of code cleanup, removing duplicate code and keeps IRQ_GUEST flag reset at one place.This is not just cleanup - till now, when action == NULL, the function would return 0, while with your patch it would return 1 (which is wrong afaict), so you'll minimally need to move down the unbind: label by one line. But the cleanup here would better be a separate patch anyway. Jan Thanks for review. I'll fix it and re-post it as 2 patches. 
 -- Thanks, Igor _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |