linux/drivers/xen/events
Juergen Gross 4d3fe31bd9 xen/events: add a proper barrier to 2-level uevent unmasking
A follow-up patch will require certain write to happen before an event
channel is unmasked.

While the memory barrier is not strictly necessary for all the callers,
the main one will need it. In order to avoid an extra memory barrier
when using fifo event channels, mandate evtchn_unmask() to provide
write ordering.

The 2-level event handling unmask operation is missing an appropriate
barrier, so add it. Fifo event channels are fine in this regard due to
using sync_cmpxchg().

This is part of XSA-332.

Cc: stable@vger.kernel.org
Suggested-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Wei Liu <wl@xen.org>
2020-10-20 10:21:56 +02:00
..
events_2l.c xen/events: add a proper barrier to 2-level uevent unmasking 2020-10-20 10:21:56 +02:00
events_base.c xen/events: avoid removing an event channel while handling it 2020-10-20 10:21:51 +02:00
events_fifo.c xen: Use evtchn_type_t as a type for event channels 2020-04-07 12:12:54 +02:00
events_internal.h xen: Use evtchn_type_t as a type for event channels 2020-04-07 12:12:54 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00