[PATCH v2 0/2] XSA-343 followup patches

Juergen Gross posted 2 patches 3 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20201012092740.1617-1-jgross@suse.com
Maintainers: Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>, George Dunlap <george.dunlap@citrix.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>, Stefano Stabellini <sstabellini@kernel.org>, Ian Jackson <iwj@xenproject.org>, "Roger Pau Monné" <roger.pau@citrix.com>
There is a newer version of this series
xen/arch/x86/irq.c         |   6 +-
xen/arch/x86/pv/shim.c     |   9 +--
xen/common/event_channel.c | 109 +++++++++++++++++--------------------
xen/common/event_fifo.c    |  25 +++++++--
xen/include/xen/event.h    |  56 ++++++++++++++++---
xen/include/xen/sched.h    |   5 +-
6 files changed, 126 insertions(+), 84 deletions(-)
[PATCH v2 0/2] XSA-343 followup patches
Posted by Juergen Gross 3 years, 6 months ago
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.

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 | 109 +++++++++++++++++--------------------
 xen/common/event_fifo.c    |  25 +++++++--
 xen/include/xen/event.h    |  56 ++++++++++++++++---
 xen/include/xen/sched.h    |   5 +-
 6 files changed, 126 insertions(+), 84 deletions(-)

-- 
2.26.2