Skip to content
Snippets Groups Projects
Commit 966025b1 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé :speech_balloon:
Browse files

Fix crash in libvirtd when events are registered & ACLs active


When a client disconnects from libvirtd, all event callbacks
must be removed. This involves running the public API

  virConnectDomainEventDeregisterAny

This code does not run in normal API dispatch context, so no
identity was set. The result was that the access control drivers
denied the attempt to deregister callbacks. The callbacks thus
continued to trigger after the client was free'd causing fairly
predictable use of free memory & a crash.

This can be triggered by any client with readonly access when
the ACL drivers are active.

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 8294aa0c)
parent fea25509
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment