aboutsummaryrefslogtreecommitdiff
path: root/util/qemu-option.c
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 /util/qemu-option.c
parentbaed65c060c0e524530bc243eec427fb408bd477 (diff)
downloadqemu-acefdde73b403576a241ebd8dbe8431ddc0d9442.zip
qemu-acefdde73b403576a241ebd8dbe8431ddc0d9442.tar.gz
qemu-acefdde73b403576a241ebd8dbe8431ddc0d9442.tar.bz2
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 'util/qemu-option.c')
0 files changed, 0 insertions, 0 deletions