Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp685568pxu; Fri, 4 Dec 2020 12:56:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwCD3GNuqCOSqWei0jSYeC9V5CwyD3C8Am3NVwIOBaU/AkSkog4lYbQfUOI13Hh3wNKsu4 X-Received: by 2002:a50:cd0a:: with SMTP id z10mr9408288edi.223.1607115363104; Fri, 04 Dec 2020 12:56:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607115363; cv=pass; d=google.com; s=arc-20160816; b=woL/lvc1HFMeqLUyV1CYYqAjn8ee/mkOy+/gwjSKdeVurrlj8WGlQMLAMsiDdzI1ZC nkhuqUkAIx+m4PyD1JLXuOvL+Lkt/RqsaTOeDtMpHJsPZKqjwe7NPt4MZxgKElDlbT4A OzjND/bDE2bOGClGxSTZOZldLNNycnEql0SadGF+xWofL63lGZv9jhFxvvxpSRclY58k GiqwhEwjy0kX2KX2I4QPWWiqUM1Q/9hxkiY7GhcJpM7WkJwTMLdUyAw93HGiQmGfhr1P 3CIl63rsJt3i8023aOEctvGSU1khc2/d+PAl87UOpGgbOqVbRtbqOHMsEHNPDCxkrdba OpvA== 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:to:from :dkim-signature; bh=kc3Xje0czN6gUa2qHlL+q18axMMgF0k4H68S8eWzroA=; b=nwtECGdWfF59NSjn6ihmMMooQ4PU4L8bf2qB5Wx7jV9HABe+Al2n4TpLpqTOZgnNsl /f5cz3CoYWVA0KUH66PU9HMkqo4wkhyX8vcxghMUNC664uZUDXWJSXVhZj2xx4wVzgFw s/deY92DwFZ9zyJiQTW6WvCYTPN/rfXUe1iulfMLsaOOtRfpurmmHm/RgIWz8wW5onIW iP2nCOAfyqq00ljOjbGe+3aRjsPIkox/5vTS+q9OOZIETqBw8xAmbYkriQQTrTk1IqfA sfyLPWQjzXdLe/3OOSk2AAI/q+Qn68qCBQeGIUTOCfcSsHId8idu/RQy74xi+Np7+BXm Tfqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=HuxyRHix; 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 dk11si3484744edb.594.2020.12.04.12.55.28; Fri, 04 Dec 2020 12:56:03 -0800 (PST) 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=HuxyRHix; 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 S1727774AbgLDUxt (ORCPT + 99 others); Fri, 4 Dec 2020 15:53:49 -0500 Received: from mail-mw2nam10on2097.outbound.protection.outlook.com ([40.107.94.97]:13440 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726021AbgLDUxs (ORCPT ); Fri, 4 Dec 2020 15:53:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fI62EP3bzgeepbWCq07hB4ETbgFNWjzP3I4k9cL+5o8j9Xpy6Sif5xFzdpKjKz7KI1j5LVc1cJ0DUrGpn9HGnUqPNvk2rQPlLIeNDvVH0aWYRSP8Ak2UJCOoUxuwgvTckprDb7XTy3y9f143QmDedSEFpuh8og6jYYIFZSsuIcu+nvR4Eo+HZzWSaDslxgDTknRHJ7dO+V8zUzxxGoBdVbDt4bzQtqr3Yw1LqUR+6fa0kTx1tyZSv50uRlr7PIjInLZTo1pd7PZXc+f07QrkJPc6ok3EhfmvbsX661z0GPv8llPaIuGwDKjSni/xmqdPcsdJckJHNQFdreVi6oN0Qg== 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=kc3Xje0czN6gUa2qHlL+q18axMMgF0k4H68S8eWzroA=; b=UKNwxJwyRrGvBj2a/XeOua4Z+w4jtyjFMuPEHWIq0tsbS+cP7b1O7lzix6YTLTh4I3vOmtdhE59VvOd7w78Lz8w9sJH+7IMRMkQRaxTITuTOYKMoSZCvakCXZLj7uCLO6vscLnxTjD8LBb1IHIGi/6PNZaPlHk6Zx5GCWUz2C6gwm6Ryx18emO6zd4UXHcPOgH1V3ERhjinnTRtRsZ9tQLZZIK+DISDKqkz219SOXaxKf+SnbvkgcwZKBhsY0fla0438hQtHYaJKFIo20OLS+BdCBM2BBGtEAFnq5awDNg387x1PnjPd/fQRcrWkgVEAJUCZYGLVTQGX5Tiu7WC2Bw== 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=kc3Xje0czN6gUa2qHlL+q18axMMgF0k4H68S8eWzroA=; b=HuxyRHixOFbU+dAgnJutPd7v9VcFE0xWZKrbXnMR5FEmRLXzs7Ine2ppRoQ1vQxBZqos7tvZz7nsyORgjnl8iT7f0hbr7RJnLHhNFvr27c0Rc3d59kRod3NrRE93YABpIijhRFkOFZgv1qMrkXtIJyByrzHjWGAw6TVv6Z4Y9xs= Received: from MN2PR13MB3957.namprd13.prod.outlook.com (2603:10b6:208:263::11) by MN2PR13MB3231.namprd13.prod.outlook.com (2603:10b6:208:135::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.6; Fri, 4 Dec 2020 20:52:55 +0000 Received: from MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e989:f666:131a:e210]) by MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e989:f666:131a:e210%9]) with mapi id 15.20.3654.009; Fri, 4 Dec 2020 20:52:55 +0000 From: Trond Myklebust To: "dan@kernelim.com" , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH] sunrpc: fix xs_read_xdr_buf for partial pages receive Thread-Topic: [PATCH] sunrpc: fix xs_read_xdr_buf for partial pages receive Thread-Index: AQHWymwYmrmKbI/UwECKVXQvJqiCDqnnagaA Date: Fri, 4 Dec 2020 20:52:55 +0000 Message-ID: <528fd4a869f0757e0a60e9c733d4625067693588.camel@hammerspace.com> References: <20201204183419.1532347-1-dan@kernelim.com> In-Reply-To: <20201204183419.1532347-1-dan@kernelim.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernelim.com; dkim=none (message not signed) header.d=none;kernelim.com; 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: a79b1117-9b2f-48c3-777b-08d898969320 x-ms-traffictypediagnostic: MN2PR13MB3231: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xCfTzqrgvhrzpih88Row0pQbMbg61cr7OzWc9AcJeac1YExhmOceE1Ae4usFmZPtD48gVAY/oBZEXd1qS4bh/0OoxOxZIY6cahY0lmMuea3X4jJ3GPKXvfVrz8PSOf3XYswSkia4WPkpU3u05WXK/ON4Mnhkkvf1OEYDa36wb0D0D1QPL4SnwxShxdC4z+HzWbESO57tVouQsP9LeVb2HyE0GfXmDjlluVTBc2xq2H/dBx4+aLsHIVQsf2TMg5pDRJjMqr4QRZseyT/vxt6DgkUyku0vuoBBXjfnGLaHam99OVj4yYKN4RRkkdsZsKVxl2jEnMi6C03T56lii7jPGw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR13MB3957.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(396003)(376002)(39840400004)(346002)(136003)(36756003)(6512007)(110136005)(6506007)(26005)(2906002)(186003)(8676002)(86362001)(5660300002)(316002)(66476007)(71200400001)(8936002)(66446008)(64756008)(6486002)(91956017)(2616005)(66556008)(76116006)(83380400001)(66946007)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?ZUtsTXlaV3p3djNZakpPWlVDZWpSZ045OHRmSHpDdmlJOEs1MWNNQUx6NCtZ?= =?utf-8?B?R0J1TkloenFqeHJ6dWNXZEMrRm1DeWl3VGtxSm5xcHMzMzNjeWxlbjk4QVVh?= =?utf-8?B?R2lXTHNzaDIyaklQWksyWmkxdWZGZXlYc1VuVzduQ0JLRHRqdFBCenZ6TFEw?= =?utf-8?B?MzVtTVJENTNRMkhucitzNzR3SU16T0prQVhWMFBTSkVGY3BqRmVibFY4WThP?= =?utf-8?B?WFcwQ1gyK25IY0RtY011WXZvd2NnZXNHVG1SaldTdHNvRjhCVFg1Nk03VXor?= =?utf-8?B?R1FpR2Y2d1FoOUNObHN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Vl5T210d2hCeURBcW95VkN2R3hBTitaR3kyUFFVOE1O?= =?utf-8?B?OFhlSUc4bnZGQ1lseVBjTWRETk1ucnBkSDRGczdQZkR6ZXdpV2hzNlZZMHJ1?= =?utf-8?Q?tNuqqjqP++UITsVhR/xu9neV4Lz3JJh1kH?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR13MB3957.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a79b1117-9b2f-48c3-777b-08d898969320 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2020 20:52:55.1888 (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: /mJrDDIOUTIDNr0CEBny11tBIo75JpcEC/QJ4zswOnKlGjfTqzGoaygxK4BJdPnM8xaSOacr2hAaJx33cuDPlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB3231 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gRnJpLCAyMDIwLTEyLTA0IGF0IDIwOjM0ICswMjAwLCBEYW4gQWxvbmkgd3JvdGU6DQo+IFdo ZW4gcmVjZWl2aW5nIHBhZ2VzIGRhdGEsIHJldHVybiB2YWx1ZSAncmV0JyB3aGVuIHBvc2l0aXZl IGluY2x1ZGVzDQo+IGBidWYtPnBhZ2VfYmFzZWAsIHNvIHdlIHNob3VsZCBzdWJ0cmFjdCBpdCBz aW1pbGFybHkgdG8gaG93IGl0IGlzDQo+IGRvbmUNCj4gZm9yIGBvZmZzZXRgLg0KPiANCj4gVGhp cyB3YXMgZGlzY292ZXJlZCBvbiB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