From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Giovanni Bellac <giovannib1979@ymail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: 2.6.32.22 (amd64) domU Kernel doesnt boot - kernel panic
Date: Wed, 22 Sep 2010 15:48:57 -0700 [thread overview]
Message-ID: <4C9A87D9.9050400@goop.org> (raw)
In-Reply-To: <181628.18427.qm@web29720.mail.ird.yahoo.com>
On 09/21/2010 03:02 AM, Giovanni Bellac wrote:
> Hello
>
> I have used my 2.6.32.20 config and compiled now a 2.6.32.22 from
> kernel.org.
> 2.6.32.22 has the important security fix (local user can be root with
> a exploit).
Does this help?
Thanks,
J
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Date: Wed, 22 Sep 2010 15:28:52 -0700
Subject: [PATCH] xen: set up IRQ before binding virq to evtchn
Make sure the irq is set up before binding a virq event channel to it.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 3132a5e..cd17f86 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -426,6 +426,11 @@ static int bind_virq_to_irq(unsigned int virq, unsigned int cpu)
irq = per_cpu(virq_to_irq, cpu)[virq];
if (irq == -1) {
+ irq = find_unbound_irq();
+
+ set_irq_chip_and_handler_name(irq, &xen_percpu_chip,
+ handle_percpu_irq, "virq");
+
bind_virq.virq = virq;
bind_virq.vcpu = cpu;
if (HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq,
@@ -433,11 +438,6 @@ static int bind_virq_to_irq(unsigned int virq, unsigned int cpu)
BUG();
evtchn = bind_virq.port;
- irq = find_unbound_irq();
-
- set_irq_chip_and_handler_name(irq, &xen_percpu_chip,
- handle_percpu_irq, "virq");
-
evtchn_to_irq[evtchn] = irq;
irq_info[irq] = mk_virq_info(evtchn, virq);
next prev parent reply other threads:[~2010-09-22 22:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 10:02 2.6.32.22 (amd64) domU Kernel doesnt boot - kernel panic Giovanni Bellac
2010-09-21 13:51 ` Konrad Rzeszutek Wilk
2010-09-21 15:44 ` William Pitcock
2010-09-21 15:48 ` Jeremy Fitzhardinge
2010-09-21 16:03 ` Jeremy Fitzhardinge
2010-09-22 22:48 ` Jeremy Fitzhardinge [this message]
2010-09-23 16:18 ` AW: " Giovanni Bellac
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=4C9A87D9.9050400@goop.org \
--to=jeremy@goop.org \
--cc=giovannib1979@ymail.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.