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

From: Greg Kurz
Date: Mon Sep 14 2020 - 04:41:09 EST


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>

> 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(-)
>