WSL2-Linux-Kernel/drivers/xen/events
Juergen Gross 85e40b0539 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>
2015-03-06 13:16:32 +00:00
..
Makefile xen/events: use the FIFO-based ABI if available 2014-01-06 10:07:57 -05:00
events_2l.c xen: Use the proper irq functions 2014-03-04 17:37:52 +01:00
events_base.c xen/events: avoid NULL pointer dereference in dom0 on large machines 2015-03-06 13:16:32 +00:00
events_fifo.c xen/events/fifo: remove a unecessary use of BM() 2014-07-31 17:59:18 +01:00
events_internal.h xen: add support for MSI message groups 2014-03-18 14:40:09 +00:00