diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2019-07-26 10:11:03 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:37 +0000 |
commit | acefdde73b403576a241ebd8dbe8431ddc0d9442 (patch) | |
tree | 807c0e6b16c3852777b95ff85f8158fcffe24462 /util/qemu-option.c | |
parent | baed65c060c0e524530bc243eec427fb408bd477 (diff) | |
download | qemu-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