Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1687221pxj; Wed, 19 May 2021 11:28:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9RgTEDiw3pLQdbtdjWLpZXIMY55W8zVoe7fsLp2wzSZZ+KN9FxjsQZglYQPQA5rODMVPo X-Received: by 2002:a17:906:a1cb:: with SMTP id bx11mr499552ejb.115.1621448921126; Wed, 19 May 2021 11:28:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621448921; cv=pass; d=google.com; s=arc-20160816; b=XX0KX1Gr1+2BR/2AjWdEmLyj/96HW+LKdn29og+9eK+376NzIeodYIT/AUMh9vmHOs 71Ar6sBJcS4a/qqKXZ5fwYt/yjnuZ3BcajMPja48Koia5Nmxq1XSU1F8p1t4/vL+W+qs bvHEJYrfMRK/b+B2TsrfE4BfyEPF46R4Fuhmxf7y3reKlcEJwv0f7/ZXhF0/sIQytFiG zJpXDaRN5dIxs/dXqtFGa0SljKNsNOGZpd5f9VAdSSQYcwj87Nb1QOVBL9V25/Fo/1d/ YXXbd3MfioJTgmL0l0pu/bc9Zt8XHvgLxa4E2Qq4J36051XbOAr1xE+L02Nt1oU3xM2G q5uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=uDSnGUM3sun98XFgDyFgcrGBTfWYKCshCxJrZqekPcI=; b=Yi3fHMWmZ+IQTT9xCyFgDpuyWU+VMLiF3Jy+epH5C4hMp8+63YG7+VDdFtG0VrflKL 1zBIOfpVKwp6UktJA1xVk2NS1TOczCMDagssGVBoPrAi2U48PZ11epj1R9uT+XSWf8iI 1B/gFLGxdEl4PovOXBC9dPoKSG/KhMTVvYxXTF7Qsk95+j6rxG2kb7dByEcZk0putOIb BZFizhtxF78q710/a6N8/8pIvQpX00hOal9dtshPNiK6kjOXySNpZf1CQgHAC5UrwWRY I6R+gC1ts3nDC+/ut8B03t2rfWX5XyABHX0OV3jTfmIZf/pIt/Q9uuX8MhEEqEy+O29D ZhVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=MNfRVZA0; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si3856020edd.372.2021.05.19.11.28.15; Wed, 19 May 2021 11:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=MNfRVZA0; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351264AbhERRzJ (ORCPT + 99 others); Tue, 18 May 2021 13:55:09 -0400 Received: from mail-dm6nam10on2093.outbound.protection.outlook.com ([40.107.93.93]:63591 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237923AbhERRzJ (ORCPT ); Tue, 18 May 2021 13:55:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A/Uea1lraKmfqK/tJ9+qAU+1533g6pkDxUTmpp5xVT627QXT2ShJA1hWuF9Kh339+MOJMUfa7nWxpLpXYdvuT5xYzcHiZSgBs7Wi7bAGyfP46pqWVVumaz+RNUOGz+7fFKda0xtxIcPTKVih9PduRK46xFgxhtvuLA/WBoLh9fs0W1FZknPRVsV7RIULI9b0yRJyqSb9KFWvsVkvMpIlBW42F8EvwwdoCh3x3IVZSBROyLwyChYsrP7huWmvQFgtc+vrmuF1S1z3ZHEMi3Eb4SC9TSdRA+bjY/VagGje7bMEbi6OQymbJEPYEDWEPj60dqGihDzW3o6eCIaInbSeFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uDSnGUM3sun98XFgDyFgcrGBTfWYKCshCxJrZqekPcI=; b=B4wwBNIo4ZfoLriv7u4V0OEzlYu4CNy1gEkheeo+O2Zv66fOf63z3F31GkrTxMB9rAISYwHCOi+1CTVuSFiq/zNJjVXcEIktofaSZLrw2okgficHGpaOrTMIpYEhPwtxIWfV7eqm2JornLPnItBIURkw4YGTUBL9Uzgx4cwF1N1jnaTdplkMPous4xdSTee82vRPr6kphe1+Z+daqkkJP53DleRFwXndR2/BnLvGtYAuVgJ/5NiTyhWTTO5Y87YQSG82LBsOho6VXqL3/CL/gkCE0fwhQKn8QKLs0uRvzDn1LTKSGJC1fvUYJgYmL/CzDgA1mbs2XthdGB/mc9pp0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uDSnGUM3sun98XFgDyFgcrGBTfWYKCshCxJrZqekPcI=; b=MNfRVZA0Ne2s2teDRtBZNzI5bwOcYfa877SOJYpWO9VEbNV+rhwe4/tIay/pa5ys6eR92l3Y2303lyvD4JhIQbHbnOjoB1AnjkyOGZMqWJJ4YMtN6/PGEkssEybh+QJq+P2t1Ym9woRQhxA3hY5b9hb2vGl5tLCQ7dHHrrUoM9g= Received: from DS7PR13MB4733.namprd13.prod.outlook.com (2603:10b6:5:3b1::24) by DM6PR13MB4081.namprd13.prod.outlook.com (2603:10b6:5:2a1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.11; Tue, 18 May 2021 17:53:47 +0000 Received: from DS7PR13MB4733.namprd13.prod.outlook.com ([fe80::4c65:55ca:a5a2:f18]) by DS7PR13MB4733.namprd13.prod.outlook.com ([fe80::4c65:55ca:a5a2:f18%7]) with mapi id 15.20.4150.011; Tue, 18 May 2021 17:53:47 +0000 From: Trond Myklebust To: "hch@infradead.org" CC: "bfields@fieldses.org" , "robbieko@synology.com" , "bingjingc@synology.com" , "linux-nfs@vger.kernel.org" , "nickhuang@synology.com" , "chuck.lever@oracle.com" Subject: Re: [PATCH] nfsd: Prevent truncation of an unlinked inode from blocking access to its directory Thread-Topic: [PATCH] nfsd: Prevent truncation of an unlinked inode from blocking access to its directory Thread-Index: AQHXSHWIwC4sG/njP0aIKkyiTSP2PqrjH9EAgAD/2YCABWzqAA== Date: Tue, 18 May 2021 17:53:47 +0000 Message-ID: <4387867bd64c5d3d8c67830a633b90e4a7e1ba38.camel@hammerspace.com> References: <20210514035829.5230-1-nickhuang@synology.com> <00195ec8bf1752306f549540eed74c3938c5e312.camel@hammerspace.com> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=none action=none header.from=hammerspace.com; x-originating-ip: [68.36.133.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 58293c6c-60e8-462c-0e00-08d91a25e32e x-ms-traffictypediagnostic: DM6PR13MB4081: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:843; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DS7nKUXkLh7FzWnKiTL7Rb6jPEtEPS55Acqra+I7X/4p5uPUTwibe11kOLSUJo0fVYAtv/cG9d9sMkyO8bnUXlzrTPZIX1a+VXeOBIPKx0TW3R/VkoAmCKgHQYRZ7GfqbEEdnbqvcxWMtO4RdfbmNu8DUk9RrwNZiHSQl0fSsJnz8td6km6ltnrnHel86WOW7+nwBRiXMZWY4pJkxCGf/qZ+YgxD/+WUkn/ZE8hPoOMAcc3u089QmBX5TLjS9DRJ8zwpYONRS9WUTMkKVm2QMDrY11aMcE6tnirNuFDVgT2c6I9sFKF0tBi36k0/KH942UrcxQD5IEbGEFh4l6Dt9U2JVLQnrcu9tfV656uC2nvJDpTHiOQd4CyvuXenaQEsaPIgRrpIOLvv9ZGh+btqZx0d69ld/g3jSH6+Jvaxx9fhUToiPCJ/9bEHR8yZJL2ZrYr4VDmzWHIy9/Sh+wLfnSwFYFxAwLALnbq1JdQfNRRqPqHTvZjg5R9bPVDsQnJy6j2DlyMUd+X3UmKyO152ycKYTp7rxCq2ttAxE1hwb48B+XTesdg2VisUen5clNkUlrk3PMaJO9hd4ISYWvsFvgv8ISbBmJ1s24gnBZx874Q= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR13MB4733.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(376002)(396003)(39830400003)(366004)(346002)(122000001)(54906003)(71200400001)(38100700002)(316002)(6512007)(478600001)(5660300002)(186003)(2906002)(83380400001)(26005)(6486002)(36756003)(4326008)(4744005)(86362001)(91956017)(2616005)(66946007)(6506007)(8676002)(66446008)(64756008)(76116006)(66556008)(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RKMFFNSnJyU09Ua1hk?= =?utf-8?Q?5DRz8GjJeB/MDoT6PGLTWuaSl+8GYb3kdIAOXyw?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <4B5B340E28CD5A43B35A04A9860AB8CE@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR13MB4733.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58293c6c-60e8-462c-0e00-08d91a25e32e X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2021 17:53:47.4466 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wVelEmx1dtiyBdVkLXf1c1DSyS5yiE8FeBsYjNX1x2pq9kEKISf4LLF9kleMBAAiZNcRnvqfCqHrXS8ArJ9egg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB4081 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gU2F0LCAyMDIxLTA1LTE1IGF0IDA4OjAyICswMTAwLCBDaHJpc3RvcGggSGVsbHdpZyB3cm90 ZToNCj4gT24gRnJpLCBNYXkgMTQsIDIwMjEgYXQgMDM6NDY6NTdQTSArMDAwMCwgVHJvbmQgTXlr bGVidXN0IHdyb3RlOg0KPiA+IFdoeSBsZWF2ZSB0aGUgY29tbWl0X21ldGFkYXRhKCkgY2FsbCB1 bmRlciB0aGUgbG9jaz8gSWYgeW91J3JlDQo+ID4gY29uY2VybmVkIGFib3V0IGxhdGVuY3ksIHRo ZW4gaXQgbWFrZXMgbW9yZSBzZW5zZSB0byBjYWxsDQo+ID4gZmhfdW5sb2NrKCkNCj4gPiBiZW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