Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4462854iog; Tue, 21 Jun 2022 21:53:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tCsUm52m6XTu2gkZUu1ujM/sX+GFpnU2CAzshLwfCaOMjxrg9xZWKo6OCkbF2JU6VmQxsF X-Received: by 2002:a17:907:7b92:b0:6db:71f1:fc20 with SMTP id ne18-20020a1709077b9200b006db71f1fc20mr1294184ejc.343.1655873633265; Tue, 21 Jun 2022 21:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655873633; cv=none; d=google.com; s=arc-20160816; b=dwyW0Y+FbAHx8rO7IbMUVddeibr7U2nYas6R6IQBc8Yjrdmifnuzj85kbvext4Iyd/ ShMGderwQEw0MiVxmGjhxTzJ3vcv5OnMLLtHa1/4UVjwbFD/zNa7TO45Pk+I9tefmctI x8OUErLACKojTH58HaKONGJf+K50QNswnHv/oUW7FakwfM3moLQapHadOvlRJMZyJT9d JYBJ1iolqitxAV5TWjKczENeUgKyQ9nM74Q0UH3IYxTw11sqZiiCuUPjiJLljIKjIdLn a5XaDjwstQggR/0d5sDemvoNf1NU+3OUNtFWob5LkuRQorUGIS/B0JjVImalWCx/WfdQ 47zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=SvpTBwVexYrFJCdZ3kGO9tYts3xgDDucgGQnhol99JQ=; b=BMz3b+l/MWwGdUjr7RXM8xbLD1ANk4UGSVqvtkVjq6qXL2GK0E1fOY3Dy0WJ5jNUpj haZHLowbMiy4sX9ZRXE5sfGJT9xg2kHnLbBw4Vu8y+reg5cJ9uarsfL/F+fhNU1sWEBV 3R6Gkl3PUa9euXzB0LPC4osArnGldn6zTGdVSklhiNxkcLb/rnpNx73EpbsnyH2g78lG xhpKSz6M/4GI2/Eh+c5GwYnNHrJ9eY9AnPXqNI2jT/i3cnxlWCMa5KZvJ9xSBelF5I/j WgGZGGQUadlCy/MVTzfFrGbog8Uf3l8aT5yUevfK0+4bwnrXR0aMFE2iGy/+OxGYflao JD8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he15-20020a1709073d8f00b006ff17ba1a4dsi6049269ejc.275.2022.06.21.21.53.26; Tue, 21 Jun 2022 21:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356923AbiFVEoi (ORCPT + 99 others); Wed, 22 Jun 2022 00:44:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiFVEog (ORCPT ); Wed, 22 Jun 2022 00:44:36 -0400 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5813333E17; Tue, 21 Jun 2022 21:44:35 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 16CF8C01E; Wed, 22 Jun 2022 06:44:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id C1B91C009; Wed, 22 Jun 2022 06:44:30 +0200 (CEST) Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id da68f758; Wed, 22 Jun 2022 04:44:27 +0000 (UTC) Date: Wed, 22 Jun 2022 13:44:12 +0900 From: Dominique Martinet To: Linus Torvalds Cc: Christian Schoenebeck , Tyler Hicks , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net Subject: [GIT PULL] 9p fixes for 5.19-rc4 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks to Tyler and Christian for the patch/reviews/tests! The following changes since commit b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3: Linux 5.19-rc2 (2022-06-12 16:11:37 -0700) are available in the Git repository at: https://github.com/martinetd/linux tags/9p-for-5.19-rc4 for you to fetch changes up to b0017602fdf6bd3f344dd49eaee8b6ffeed6dbac: 9p: fix EBADF errors in cached mode (2022-06-17 06:03:30 +0900) ---------------------------------------------------------------- 9p-for-5.19-rc4: fid refcount and fscache fixes This contains a couple of fixes: - fid refcounting was incorrect in some corner cases and would leak resources, only freed at umount time. The first three commits fix three such cases - cache=loose or fscache was broken when trying to write a partial page to a file with no read permission since the rework a few releases ago. The fix taken here is just to restore old behavior of using the special 'writeback_fid' for such reads, which is open as root/RDWR and such not get complains that we try to read on a WRONLY fid. Long-term it'd be nice to get rid of this and not issue the read at all (skip cache?) in such cases, but that direction hasn't progressed ---------------------------------------------------------------- Dominique Martinet (3): 9p: fix fid refcount leak in v9fs_vfs_atomic_open_dotl 9p: fix fid refcount leak in v9fs_vfs_get_link 9p: fix EBADF errors in cached mode Tyler Hicks (1): 9p: Fix refcounting during full path walks for fid lookups fs/9p/fid.c | 22 +++++++++------------- fs/9p/vfs_addr.c | 13 +++++++++++++ fs/9p/vfs_inode.c | 8 ++++---- fs/9p/vfs_inode_dotl.c | 3 +++ 4 files changed, 29 insertions(+), 17 deletions(-) -- Dominique