mbox series

[v4,0/2] XSA-343 followup patches

Message ID 20201102150408.4954-1-jgross@suse.com (mailing list archive)
Headers show
Series XSA-343 followup patches | expand

Message

Juergen Gross Nov. 2, 2020, 3:04 p.m. UTC
The patches for XSA-343 produced some fallout, especially the event
channel locking has shown to be problematic.

Patch 1 is targeting fifo event channels for avoiding any races for the
case that the fifo queue has been changed for a specific event channel.

The second patch is modifying the per event channel locking scheme in
order to avoid deadlocks and problems due to the event channel lock
having been changed to require IRQs off by the XSA-343 patches.

Changes in V4:
- switched to real rwlock

Changes in V3:
- addressed comments

*** BLURB HERE ***

Juergen Gross (2):
  xen/events: access last_priority and last_vcpu_id together
  xen/evtchn: rework per event channel lock

 xen/arch/x86/irq.c         |   6 +-
 xen/arch/x86/pv/shim.c     |   9 +--
 xen/common/event_channel.c | 120 ++++++++++++++++++-------------------
 xen/common/event_fifo.c    |  25 ++++++--
 xen/include/xen/event.h    |  55 +++++++++++++----
 xen/include/xen/sched.h    |   6 +-
 6 files changed, 131 insertions(+), 90 deletions(-)