summary refs log tree commit diff stats
path: root/python/qemu/accel.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-07-26 10:11:03 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-01-23 16:41:37 +0000
commitacefdde73b403576a241ebd8dbe8431ddc0d9442 (patch)
tree807c0e6b16c3852777b95ff85f8158fcffe24462 /python/qemu/accel.py
parentbaed65c060c0e524530bc243eec427fb408bd477 (diff)
downloadfocaccia-qemu-acefdde73b403576a241ebd8dbe8431ddc0d9442.tar.gz
focaccia-qemu-acefdde73b403576a241ebd8dbe8431ddc0d9442.zip
virtiofsd: prevent races with lo_dirp_put()
Introduce lo_dirp_put() so that FUSE_RELEASEDIR does not cause
use-after-free races with other threads that are accessing lo_dirp.

Also make lo_releasedir() atomic to prevent FUSE_RELEASEDIR racing with
itself.  This prevents double-frees.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'python/qemu/accel.py')
0 files changed, 0 insertions, 0 deletions