Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1878558pxk; Sun, 13 Sep 2020 20:40:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwur/kbywCEdH24Ce+KIaBj2/yots33EQtKyz1qmW0iavvyvbu0QKuau7jlTqLdl789qm4M X-Received: by 2002:a17:906:9386:: with SMTP id l6mr12492581ejx.302.1600054835184; Sun, 13 Sep 2020 20:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600054835; cv=none; d=google.com; s=arc-20160816; b=XmeMvFurjYjHG1xZunT6nglny+NnDaz0yto1wxzJ/09PNZWBLLbAQcM2eEQ7ZQiLEj QKRcg98GNAgjvMWuO3b3Lcgrz5mOYiQOr2191SRAZv/ecrFP/qFLLqDUQPS8klLG7Ip3 am8VLllqrMDZ4VqqybjFHjni4IhvwiGiNb8mAmZGJoIMFmjXyxWcqumwRrHZldmirdP7 v8TujMqzco9X9qYZyi7WGUM3C12P9c4Qhst+ry2weS7M0bD7Zq5I67SHysRJdtEgMloP XokPkUlkA1A042oiJ4xTQaqyJgNbggc4dECcrnKOIfyg6mGKqcYjHmpknm7FL1LJkhIG AzeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kcYBoy9HTtyV/4uR0x0yvdz8qVMejLxSLHgSZ+J0pjA=; b=nSQq9yfK5x5iTfQ6uF+RMU40RcbT/psKFz4SmilgWMJZ407G1K1XNiZowVv0cTGwo7 BB7SFg6aTCIcxCEOif+Jg4Mb8soTYIt+nZSB/DHQZdDXie2zIyto25RwuLs9Somb4iZG iYaGaCjvb4+gNJBva7admPpSPUBRHtYMtjtbR21S66Wf7Q3WNlw8rBLGRL3c6GvkiVZp wBh7Qlv+yFDnKJFQJ3EEDvgybKKr0QqMdzjlhlaF42cj7oxJXkqZVhgy0synUeUah/wB PY6St3Z42xfuNSH4Q6Pa0vH57XvICX/gRgLtM04gDx4ATa7wd54x/6dXbM0ejoIAUWnw M5YA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si6547334edy.519.2020.09.13.20.40.12; Sun, 13 Sep 2020 20:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbgINDiO (ORCPT + 99 others); Sun, 13 Sep 2020 23:38:14 -0400 Received: from foss.arm.com ([217.140.110.172]:58106 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgINDiN (ORCPT ); Sun, 13 Sep 2020 23:38:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B17A1045; Sun, 13 Sep 2020 20:38:12 -0700 (PDT) Received: from entos-thunderx2-desktop.shanghai.arm.com (entos-thunderx2-desktop.shanghai.arm.com [10.169.212.215]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F2E7F3F718; Sun, 13 Sep 2020 20:38:09 -0700 (PDT) From: Jianyong Wu To: ericvh@gmail.com, lucho@ionkov.net, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, justin.he@arm.com, jianyong.wu@arm.com Subject: [PATCH RFC 0/4] 9p: fix open-unlink-f*syscall bug Date: Mon, 14 Sep 2020 11:37:50 +0800 Message-Id: <20200914033754.29188-1-jianyong.wu@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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(-) -- 2.17.1