Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1291368pxv; Fri, 25 Jun 2021 09:30:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw75HwJlfhF4/+T2XtEjk31ZwEeZzTddzpJjgIGsZ3Ry7D6PRiFwHXXIVDc+KR1ZGgBDoEt X-Received: by 2002:a05:6402:4393:: with SMTP id o19mr15767385edc.263.1624638649606; Fri, 25 Jun 2021 09:30:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624638649; cv=pass; d=google.com; s=arc-20160816; b=FB2rOaO6PdA0jt7s3n9uii1gzqI19oFmWJwzNxgmVqlMLIiC/XtYTn9WDbGHfoEmk3 8KCokA7v0ggUNsUYP39tFmb74X9E648z4wvPXervpl2s7jelziuFsWUeB4IKoF3yeKDa pUBEnGgfIi6nZS4kVaHkWV4pcZGKSIF6JvrOcibemfsZXfB/ENdgZSQtgDfE601wmK89 WutXMBTj/ac7rYajaX9Lq97xICviK+pmM7HJ2Y2HtpaDbUyp/qLQ1IlpAd2HOeFp2HgR UfhpzItwyaGQ4LR/zmbzhxcBnB2vNTcU9NuZbdiw3y1ZUCQPCGzFy5qOPz13OSvVZGhs 1Kew== 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=3jNWkp9m1hUf8fRWUxIKXoUSo8P2Ja99/feff+LcqJo=; b=elDIPTnX3RsJMMy5F2YPz2MDJcnM7HxN2b0An3S1v3w9sKtW7govjQJqodBI9j0PR2 e+z8tGjnmXmau2hnPHQgYUw/RsRoRFmxUOtd5WiOs8dR+VKmxFFIrK52OvENl0Nspqut 8Mk8vepBSMUIeUHfl3VIUGYhg6bBZ4RkOVNmVb/85TcbPyNno2bCddrzGNNgFEMPACoj fuMf6suKS40+l/6/h+q0gMKK+SvMQiKovHcixag2maaVZAugjtL/Gw2ZJAs+JYM2IGfl yT2qHdCSiJpzeWtaW3bMoBnmaRPEU5qE60PJYz5uE1v/RNuz4jD4TpHIM1nske7jp1Xr RqMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=VdxLLGq6; 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 ia17si6541127ejc.157.2021.06.25.09.30.14; Fri, 25 Jun 2021 09:30:49 -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=VdxLLGq6; 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 S230019AbhFYQah (ORCPT + 99 others); Fri, 25 Jun 2021 12:30:37 -0400 Received: from mail-bn8nam11on2131.outbound.protection.outlook.com ([40.107.236.131]:19360 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230013AbhFYQag (ORCPT ); Fri, 25 Jun 2021 12:30:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+iyh1sHiqEHsW0aZewS4vh9CAvYrYPYhNHHzo7OOv6B7xT8pkp3nhwFvTdGHv4Ow20p0CnDJcKSYUCCQZJ4yABBmarwFmUfPvpik3/B9emjyVpszTpnObhDDXSvkOFKBGX0aDUDCMfIeWdiHrEon8t58HC4xUXoUo4H3uzhYSFp0905FMp49OLRacsLdg6LSvhnmRFyg9owgecfkHVOZ9lzCPs7ruOTtC0G1XpfU6RS8SeSd/i9iFWZp/MEnf+WbcSe96iN4zuB6+FzBA0bSUWuUvXEnT8Xo9TQBxWE5iuznL/vx5mOQUfNdwSbBwWCAo8J5mDFfF4FUHetOtUGQw== 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=3jNWkp9m1hUf8fRWUxIKXoUSo8P2Ja99/feff+LcqJo=; b=M02E3AryTPjiQVRENw53i4ai/da6GRy+2MeoexkzezYlHhH3Vw9PFbrfuW2kH6OHNaWFnSg2n5dLNgi3U+lVHAjNyM5sH9QfV9lVxdarcytbumg3mS7gaSX2hTIVdsF2lu5WlVwOCtko7lOACwz/JxkEdu8nBLOI8jdO8KKSWWjEO2Mk1JCaINGe17DYQ626tzDmO08mbfLZv5vEtliinY1jlkWx8JkHtmFdLao2/6bgF63WfB0IHXV7OeYKj+XB5L4DK7vOFrK3XBaHkhBbmfIDJcK5gHS+XArweDoyhmJ7lBqUmDCV9TGsysw/Cz8HRYw4CfNa8XfElksR2enc9g== 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=3jNWkp9m1hUf8fRWUxIKXoUSo8P2Ja99/feff+LcqJo=; b=VdxLLGq6c3lZDN748cWqkMoWvoS5ZR2czhQpfnMLz+rVYfZZbr+eSbUEpS+HN3QCiBlA4IVBCE9vNvfvQP7X/LOgwcx7NRbDHqWenLoxEHityk55BMM+bRjnr84ypRIyA81ROrB8rjbwFaN5V7iI5NtIstw4bT2shEQK1DYiQJY= Received: from CH0PR13MB5084.namprd13.prod.outlook.com (2603:10b6:610:111::7) by CH2PR13MB3317.namprd13.prod.outlook.com (2603:10b6:610:2d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.7; Fri, 25 Jun 2021 16:28:13 +0000 Received: from CH0PR13MB5084.namprd13.prod.outlook.com ([fe80::cc40:f406:86f9:3e05]) by CH0PR13MB5084.namprd13.prod.outlook.com ([fe80::cc40:f406:86f9:3e05%4]) with mapi id 15.20.4264.021; Fri, 25 Jun 2021 16:28:12 +0000 From: Trond Myklebust To: "bfields@fieldses.org" , "chuck.lever@oracle.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH] NFSD: Prevent a possible oops in the nfs_dirent() tracepoint Thread-Topic: [PATCH] NFSD: Prevent a possible oops in the nfs_dirent() tracepoint Thread-Index: AQHXadSSY72lgbY6MU6xHAIFBHV+9qsk6oSA Date: Fri, 25 Jun 2021 16:28:12 +0000 Message-ID: References: <162463396907.1820.8112792283525036426.stgit@klimt.1015granger.net> In-Reply-To: <162463396907.1820.8112792283525036426.stgit@klimt.1015granger.net> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: fieldses.org; dkim=none (message not signed) header.d=none;fieldses.org; dmarc=none action=none header.from=hammerspace.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ebd85fe5-5b4f-4900-4101-08d937f63a57 x-ms-traffictypediagnostic: CH2PR13MB3317: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qxK6rt/6Nv2P+gS9PlHT2+HhP1mJ/dWJTPj+KaC2KaSma3g8FtGrdC22iZ0vYZoAwogxxBMCsYLjNk0qHvIbIW9zycRDsZizx6byLI8O1eCc/e6IPM5pXbEJ1TyLAXuy1p4KK+0H3lN01RoodITkKl8pyxd2KtqKuJlk5wm+0OFq2WZ/mJaDMXRF0NNumT67MuGf4z1ihgeHfD/y7Nz+qFNMtEpWe3mX/IHxxGE/1f/hl41cfpDzsIbO2gbQFQtl6R9Tytt/z6RRYAkrQ4sp0NWdvtBLviooJ65ynK7DWy8SLcNhDspU8/7u8ObXdYuQRj8Xe0jDIoUJEg/r+mGRqANdNepH8fMuQiWBEDsMELHbY1kUw7g6Mao/Va7z4lv2GonNeoMyGtPbqDpoMRDYrNUlLDxCwnjJwmb1p0feRYR6FaWCYmsxgZDqkhJU8Y3IjLGN2lCuGBY6SQZBH3JgoALYtL9vxJVFs37Y3DirT5e4xozIO2cfDHxJYhNeE39ZqwpLlAdgjgC4X68pDFsgBfG4KLEewgY4vvPef41iDSby1ZSkwf6qV6klo9O2FUR7qz3T1yWHBYBZqkrqKWYEB2+UDIc+TnBL9dffXdzJmJU= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR13MB5084.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(346002)(39830400003)(376002)(396003)(366004)(110136005)(86362001)(5660300002)(2906002)(6506007)(2616005)(71200400001)(8676002)(186003)(66556008)(64756008)(4326008)(6512007)(26005)(76116006)(66446008)(8936002)(83380400001)(36756003)(316002)(66946007)(122000001)(6486002)(478600001)(38100700002)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?UkM1R3dDdFlnc3JiOEFtMC8rSXFtZ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: text/plain; charset="utf-8" Content-ID: <8103B4B187247E4D9B85E8AA9751211B@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: CH0PR13MB5084.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebd85fe5-5b4f-4900-4101-08d937f63a57 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2021 16:28:12.8561 (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: evEf2PFdLygpveN3aH3kRt3Y6ced+chKC4CyRm4eeugoifdFnsV0YXDnq995+ik8EDGkkyhODin/qJppkKgZqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3317 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gRnJpLCAyMDIxLTA2LTI1IGF0IDExOjEyIC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g VGhlIGRvdWJsZSBjb3B5IG9mIHRoZSBzdHJpbmcgaXMgYSBtaXN0YWtlLCBwbHVzIF9fYXNzaWdu X3N0cigpDQo+IHVzZXMgc3RybGVuKCksIHdoaWNoIGlzIHdyb25nIHRvIGRvIG9uIGEgc3RyaW5n IHRoYXQgaXNuJ3QNCj4gZ3VhcmFudGVlZCB0byBiZSBOVUwtdGVybWluYXRlZC4NCj4gDQo+IEZp eGVzOiA2MDE5Y2UwNzQyY2EgKCJORlNEOiBBZGQgYSB0cmFjZXBvaW50IHRvIHJlY29yZCBkaXJl Y3RvcnkNCj4gZW50cnkgZW5jb2RpbmciKQ0KPiBTaWduZWQtb2ZmLWJ5OiBDaHVjayBMZXZlciA8 Y2h1Y2subGV2ZXJAb3JhY2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