Skip to content

venus: fix use-after-free in proxy_context sync thread

Ryan Neph requested to merge ryanneph/virglrenderer:fix-proxy-ctx-sync into master

When process isolation (proxy_context) and threaded fence sync (sync_thread) are integrated, there is a shmem use-after-free in the sync_thread during normal context destruction that crashes the VM.

This fix reorders sync_thread shutdown before shmem unmapping and mutex destruction.

/cc @zzyiwei @olv

Edited by Ryan Neph

Merge request reports