]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: fix race in evtchn_fifo_unmask()
authorJuergen Gross <jgross@suse.com>
Tue, 20 Oct 2020 04:52:55 +0000 (06:52 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 20 Oct 2020 08:21:58 +0000 (10:21 +0200)
commitafff7855c8f3a160e97530713942c170faf33359
treed49649615f31a412be79528e3c3deb7985a8eb87
parent5cc6050957d7ccc777e3792f2adc59d3cec60a46
xen/events: fix race in evtchn_fifo_unmask()

Unmasking a fifo event channel can result in unmasking it twice, once
directly in the kernel and once via a hypercall in case the event was
pending.

Fix that by doing the local unmask only if the event is not pending.

This is part of XSA-332.

Cc: stable@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
drivers/xen/events/events_fifo.c