Re: [PATCH 089/104] virtiofsd: prevent races with lo_dirp_put()

2020-01-17 Thread Philippe Mathieu-Daudé
On 12/12/19 5:38 PM, Dr. David Alan Gilbert (git) wrote: From: Stefan Hajnoczi 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. Thi

[PATCH 089/104] virtiofsd: prevent races with lo_dirp_put()

2019-12-12 Thread Dr. David Alan Gilbert (git)
From: Stefan Hajnoczi 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 -