[libvirt PATCH 0/2] glib: Avoid yet another crash due to race in event loop code

Martin Kletzander posted 2 patches 3 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1614851225.git.mkletzan@redhat.com
src/qemu/qemu_agent.c     |  2 +-
src/qemu/qemu_monitor.c   |  2 +-
src/util/glibcompat.c     | 35 +++++++++++++++++++++++++++++++++++
src/util/glibcompat.h     | 11 +++++++++++
src/util/vireventglib.c   | 30 ------------------------------
src/util/vireventthread.c |  2 +-
6 files changed, 49 insertions(+), 33 deletions(-)
[libvirt PATCH 0/2] glib: Avoid yet another crash due to race in event loop code
Posted by Martin Kletzander 3 years, 1 month ago
Similarly to commit 0db4743645b7 we need to fix the other event loop as well.
To be completely honest I do not completely understand all the details in the
original workaround, so I just hope this is the best way to fix the issue.

Hopefully-resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1931331

Martin Kletzander (2):
  util: Move glib event loop workaround to glibcompat
  glib: Use safe glib event workaround in other event loops

 src/qemu/qemu_agent.c     |  2 +-
 src/qemu/qemu_monitor.c   |  2 +-
 src/util/glibcompat.c     | 35 +++++++++++++++++++++++++++++++++++
 src/util/glibcompat.h     | 11 +++++++++++
 src/util/vireventglib.c   | 30 ------------------------------
 src/util/vireventthread.c |  2 +-
 6 files changed, 49 insertions(+), 33 deletions(-)

-- 
2.30.1