RE: [V9fs-developer] [PATCH RFC 0/4] 9p: fix open-unlink-f*syscall bug

From: Jianyong Wu
Date: Mon Sep 14 2020 - 08:40:21 EST




> -----Original Message-----
> From: Greg Kurz <groug@xxxxxxxx>
> Sent: Monday, September 14, 2020 4:36 PM
> To: Jianyong Wu <Jianyong.Wu@xxxxxxx>
> Cc: ericvh@xxxxxxxxx; lucho@xxxxxxxxxx; asmadeus@xxxxxxxxxxxxx; v9fs-
> developer@xxxxxxxxxxxxxxxxxxxxx; Justin He <Justin.He@xxxxxxx>; linux-
> kernel@xxxxxxxxxxxxxxx; Christian Schoenebeck
> <qemu_oss@xxxxxxxxxxxxx>
> Subject: Re: [V9fs-developer] [PATCH RFC 0/4] 9p: fix open-unlink-f*syscall
> bug
>
> On Mon, 14 Sep 2020 11:37:50 +0800
> Jianyong Wu <jianyong.wu@xxxxxxx> wrote:
>
> > open-unlink-f*syscall bug is a well-known bug in 9p, we try to fix the
> > bug in this patch set.
> > I take Eric's and Greg's patches which constiute the 1/4 - 3/4 of this
> > patch set as the main frame of the solution. In patch 4/4, I fix the
> > fid race issue exists in Greg's patch.
> >
>
> IIRC some patches were needed on the QEMU side as well... I'm spending
> less time on 9pfs in QEMU, so Cc'ing the new maintainer:
>
> Christian Schoenebeck <qemu_oss@xxxxxxxxxxxxx>
>
Ok, very kind of you.

Thanks
Jianyong
> > Eric Van Hensbergen (1):
> > fs/9p: fix create-unlink-getattr idiom
> >
> > Greg Kurz (1):
> > fs/9p: search open fids first
> >
> > Jianyong Wu (2):
> > fs/9p: track open fids
> > 9p: fix race issue in fid contention.
> >
> > fs/9p/fid.c | 72 +++++++++++++++++++++++++++++++++++------
> > fs/9p/fid.h | 25 +++++++++++---
> > fs/9p/vfs_dentry.c | 2 +-
> > fs/9p/vfs_dir.c | 20 ++++++++++--
> > fs/9p/vfs_file.c | 3 +-
> > fs/9p/vfs_inode.c | 52 +++++++++++++++++++++--------
> > fs/9p/vfs_inode_dotl.c | 44 ++++++++++++++++---------
> > fs/9p/vfs_super.c | 7 ++--
> > fs/9p/xattr.c | 18 ++++++++---
> > include/net/9p/client.h | 8 +++++
> > net/9p/client.c | 7 +++-
> > 11 files changed, 206 insertions(+), 52 deletions(-)
> >

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.