Re: [PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2020-01-17 Thread Philippe Mathieu-Daudé
On 1/17/20 4:28 PM, Dr. David Alan Gilbert wrote: * Philippe Mathieu-Daudé (phi...@redhat.com) wrote: On 12/12/19 5:39 PM, Dr. David Alan Gilbert (git) wrote: From: Stefan Hajnoczi When running with multiple threads it can be tricky to handle FUSE_INIT/FUSE_DESTROY in parallel with other requ

Re: [PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2020-01-17 Thread Dr. David Alan Gilbert
* Philippe Mathieu-Daudé (phi...@redhat.com) wrote: > On 12/12/19 5:39 PM, Dr. David Alan Gilbert (git) wrote: > > From: Stefan Hajnoczi > > > > When running with multiple threads it can be tricky to handle > > FUSE_INIT/FUSE_DESTROY in parallel with other request types or in > > parallel with th

Re: [PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2020-01-17 Thread Philippe Mathieu-Daudé
On 12/12/19 5:39 PM, Dr. David Alan Gilbert (git) wrote: From: Stefan Hajnoczi When running with multiple threads it can be tricky to handle FUSE_INIT/FUSE_DESTROY in parallel with other request types or in parallel with themselves. Serialize FUSE_INIT and FUSE_DESTROY so that malicious client

Re: [PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2020-01-16 Thread Dr. David Alan Gilbert
* Masayoshi Mizuma (msys.miz...@gmail.com) wrote: > On Thu, Dec 12, 2019 at 04:39:01PM +, Dr. David Alan Gilbert (git) wrote: > > From: Stefan Hajnoczi > > > > When running with multiple threads it can be tricky to handle > > FUSE_INIT/FUSE_DESTROY in parallel with other request types or in >

Re: [PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2020-01-15 Thread Masayoshi Mizuma
On Thu, Dec 12, 2019 at 04:39:01PM +, Dr. David Alan Gilbert (git) wrote: > From: Stefan Hajnoczi > > When running with multiple threads it can be tricky to handle > FUSE_INIT/FUSE_DESTROY in parallel with other request types or in > parallel with themselves. Serialize FUSE_INIT and FUSE_DES

[PATCH 101/104] virtiofsd: prevent FUSE_INIT/FUSE_DESTROY races

2019-12-12 Thread Dr. David Alan Gilbert (git)
From: Stefan Hajnoczi When running with multiple threads it can be tricky to handle FUSE_INIT/FUSE_DESTROY in parallel with other request types or in parallel with themselves. Serialize FUSE_INIT and FUSE_DESTROY so that malicious clients cannot trigger race conditions. Signed-off-by: Stefan Ha