summaryrefslogtreecommitdiff
path: root/drivers/xen/xen-pciback
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2015-02-26 06:52:05 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2015-03-06 13:16:32 +0000
commit85e40b0539b24518c8bdf63e2605c8522377d00f (patch)
treec495ad825da2b79d0a22987631826c1c370d4dc4 /drivers/xen/xen-pciback
parent604b91fee4fc53ddc83c221c9bbce771898ec872 (diff)
xen/events: avoid NULL pointer dereference in dom0 on large machines
Using the pvops kernel a NULL pointer dereference was detected on a large machine (144 processors) when booting as dom0 in evtchn_fifo_unmask() during assignment of a pirq. The event channel in question was the first to need a new entry in event_array[] in events_fifo.c. Unfortunately xen_irq_info_pirq_setup() is called with evtchn being 0 for a new pirq and the real event channel number is assigned to the pirq only during __startup_pirq(). It is mandatory to call xen_evtchn_port_setup() after assigning the event channel number to the pirq to make sure all memory needed for the event channel is allocated. Signed-off-by: Juergen Gross <jgross@suse.com> Cc: <stable@vger.kernel.org> # 3.14+ Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback')
0 files changed, 0 insertions, 0 deletions