From: Igor Mammedov <imammedo@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: xen: Clear IRQ_GUEST bit from irq_desc status if its action is NULL
Date: Tue, 13 Sep 2011 14:36:35 +0200 [thread overview]
Message-ID: <4E6F4E53.3010100@redhat.com> (raw)
In-Reply-To: <4E6F5E830200007800055D49@nat28.tlf.novell.com>
On 09/13/2011 01:45 PM, Jan Beulich wrote:
>>>> On 13.09.11 at 11:08, Igor Mammedov<imammedo@redhat.com> 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 next
>
> So why don't you clear the bit there?
then we may hit
BUG_ON(!(desc->status & IRQ_GUEST));
in pirq_guest_unbind -> __pirq_guest_unbind
It seams safer for me to clear bit in __pirq_guest_unbind
next prev parent reply other threads:[~2011-09-13 12:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 9:08 xen: Clear IRQ_GUEST bit from irq_desc status if its action is NULL Igor Mammedov
2011-09-13 11:45 ` Jan Beulich
2011-09-13 12:31 ` Igor Mammedov
2011-09-13 12:36 ` Igor Mammedov [this message]
2011-09-13 13:10 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E6F4E53.3010100@redhat.com \
--to=imammedo@redhat.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.