alistair23-linux/drivers/xen/events
David Vrabel dcecb8fd93 xen/events/fifo: ensure all bitops are properly aligned even on x86
When using the FIFO-based ABI on x86_64, if the last port is at the
end of an event array page then sync_test_bit() on this port's event
word will read beyond the end of the page and in certain circumstances
this may fault.

The fault requires the following page in the kernel's direct mapping
to be not present, which would mean:

a) the array page is the last page of RAM; or

b) the following page is ballooned out /and/ it has been used for a
   foreign mapping by a kernel driver (such as netback or blkback)
   /and/ the grant has been unmapped.

Use the infrastructure added for arm64 to ensure that all bitops
operating on event words are unsigned long aligned.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
2014-07-31 17:58:38 +01:00
..
events_2l.c xen: Use the proper irq functions 2014-03-04 17:37:52 +01:00
events_base.c x86: Get rid of get_nr_irqs_gsi() 2014-05-16 14:05:19 +02:00
events_fifo.c xen/events/fifo: ensure all bitops are properly aligned even on x86 2014-07-31 17:58:38 +01:00
events_internal.h xen: add support for MSI message groups 2014-03-18 14:40:09 +00:00
Makefile xen/events: use the FIFO-based ABI if available 2014-01-06 10:07:57 -05:00