]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: add mutex when freeing private callbacks
authorMike Pontillo <mpontillo@digitalocean.com>
Tue, 7 Mar 2023 17:57:56 +0000 (17:57 +0000)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 7 Mar 2023 22:51:11 +0000 (23:51 +0100)
commit6386dd897df596a01e3cf0db9f86d496891564dc
tree4a652c5fbd0f92d25ac752a19d1578d732fd6661
parentc0e60063c93362e8be5914c63d2f1c3a0f4bae8f
remote: add mutex when freeing private callbacks

This commit resolves illegal memory accesses observed via:

  remoteClientFreePrivateCallbacks()
  remoteClientCloseFunc()
  virNetServerClientCloseLocked()
  virNetServerProcessClients()
  daemonServerProcessClients()
  virHashForEach()
  virNetDaemonRun()
  main()

Signed-off-by: Mike Pontillo <mpontillo@digitalocean.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/remote/remote_daemon_dispatch.c