Re: [Qemu-devel] [PATCH] 9p: write lock path in v9fs_co_open2()

2018-11-12 Thread zhibin hu
:39 PM Greg Kurz wrote: > On Mon, 12 Nov 2018 12:19:29 +0100 > Greg Kurz wrote: > > > On Mon, 12 Nov 2018 19:05:59 +0800 > > zhibin hu wrote: > > > > > yes, and this : > > > > > > > Yeah, all call sites of v9fs_path_copy() in v9fs_create()

Re: [Qemu-devel] [PATCH] 9p: write lock path in v9fs_co_open2()

2018-11-12 Thread zhibin hu
:28:28 +0800 > zhibin hu wrote: > > > hi, > > > > i use this patch with qemu 3.0.0 and it seems not fix completely. > > > > [root@localhost ~]# ./qemu-system-x86_64 -snapshot -m 1024 -smp 2 > > -enable-kvm -net nic,model=e1000 -net > > tap,helper=/us

Re: [Qemu-devel] [PATCH] 9p: write lock path in v9fs_co_open2()

2018-11-12 Thread zhibin hu
causes use-after-free issues that > can be detected by ASAN with a custom 9p client. > > Unlike other operations that only read the fid path, v9fs_co_open2() > does modify it. It should hence take the write lock. > > Cc: P J P > Reported-by: zhibin hu > Signed-off-by: Gr