WSL2-Linux-Kernel/drivers/xen/events
Juergen Gross b6622798bc xen/events: avoid handling the same event on two cpus at the same time
When changing the cpu affinity of an event it can happen today that
(with some unlucky timing) the same event will be handled on the old
and the new cpu at the same time.

Avoid that by adding an "event active" flag to the per-event data and
call the handler only if this flag isn't set.

Cc: stable@vger.kernel.org
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Link: https://lore.kernel.org/r/20210306161833.4552-4-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2021-03-10 16:39:29 -06:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
events_2l.c xen/events: don't unmask an event channel when an eoi is pending 2021-03-10 16:37:29 -06:00
events_base.c xen/events: avoid handling the same event on two cpus at the same time 2021-03-10 16:39:29 -06:00
events_fifo.c xen/events: don't unmask an event channel when an eoi is pending 2021-03-10 16:37:29 -06:00
events_internal.h xen/events: don't unmask an event channel when an eoi is pending 2021-03-10 16:37:29 -06:00