Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38A54C43387 for ; Tue, 18 Dec 2018 14:55:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2BF621850 for ; Tue, 18 Dec 2018 14:55:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=hammerspace.com header.i=@hammerspace.com header.b="Bi5od/LC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbeLROzV (ORCPT ); Tue, 18 Dec 2018 09:55:21 -0500 Received: from mail-eopbgr820107.outbound.protection.outlook.com ([40.107.82.107]:18784 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726426AbeLROzU (ORCPT ); Tue, 18 Dec 2018 09:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/+2tYnuHlAqCzI0OAIi5WVP3H81XAI2wyCY8OxNgz3E=; b=Bi5od/LC3oGkt1GrDu7p6SngXeMcqNJGDEEcFfgCJxzXWAh5WQeCLhIXJO5Ip32tLfpgy1xW14BNMtkOoql4iOJ8J1LWmAOfS53tY4f4UiuTh4ERyJPRigcaNCWnDOCga3QthIAxpiZgnvypvDCjcjcNV0LMCdbDdsiQQp+FkGg= Received: from SN6PR13MB2494.namprd13.prod.outlook.com (52.135.95.148) by SN6PR13MB2351.namprd13.prod.outlook.com (52.135.94.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.15; Tue, 18 Dec 2018 14:55:15 +0000 Received: from SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::25d2:c29b:5dfa:e85f]) by SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::25d2:c29b:5dfa:e85f%4]) with mapi id 15.20.1446.015; Tue, 18 Dec 2018 14:55:15 +0000 From: Trond Myklebust To: "bfields@fieldses.org" , "vvs@virtuozzo.com" CC: "anna.schumaker@netapp.com" , "khorenko@virtuozzo.com" , "linux-nfs@vger.kernel.org" , "eshatokhin@virtuozzo.com" , "chuck.lever@oracle.com" , "jlayton@kernel.org" Subject: Re: [PATCH 1/4] nfs: use-after-free in svc_process_common() Thread-Topic: [PATCH 1/4] nfs: use-after-free in svc_process_common() Thread-Index: AQHUliTq8x5/j6ovkEmcMIRcXEAVYaWDeL8AgACVn4CAAGV+AIAAHc0AgAAFZwA= Date: Tue, 18 Dec 2018 14:55:15 +0000 Message-ID: <068f1741afc54367853a2e4501fd95c2ab12a989.camel@hammerspace.com> References: <134cf19c-e698-abed-02de-1659f9a5d4fb@virtuozzo.com> <20181217215026.GA8564@fieldses.org> <67f477b704d34b369f0530891a219f383f964001.camel@hammerspace.com> <4d878140-02c0-e306-fee6-1573d9fdecf2@virtuozzo.com> In-Reply-To: <4d878140-02c0-e306-fee6-1573d9fdecf2@virtuozzo.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=trondmy@hammerspace.com; x-originating-ip: [68.40.189.247] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN6PR13MB2351;6:bXy40HbDaAyJzITP5V2PNJ/NubWrmd3qkkO36szOhWdAz5BM64kSbMdzZqXlsCyQeyiSwLIgyKdEDzm6cb0n9IPBJ6LNe4yPE9Uns+6IbKJzIeBfln/YAUJp/J/xw5c+FXA08al9/lnv2wCpNWVB5ukHmKY2qoyb4gyieYmcECEs8Twzu8Pahn8+kwaT4QJXgDWwPtncgY9k/WGAIKYLB9MyAZIt2ySe/aOj2o8GI7Y4T18xZlHc761fm6ggNzBPDBIXYsNIbQ83JKktTmqAI7tHTgUCPzLUCFKri/mINYlHgYtUZ0UWbTXG3JBsFn1zpwnKe6KyPM1SF3GnhN9FX6GTQh+WjeD8mDTTgOTr7VjjEHUK32mgjjGe9zsnL1NdqVFxYV8U3Ny5D7wnnOHXWzMkrtEriYRvJNgJuAkIQ6BvWtav9KMshh0MND0bhoTtjjk2ZOFmUTCK79NbYgJ+EQ==;5:15hOFZP5zZMXWZJ/0AceaKRzpQeOwRxr8kJzYcdS/loswfVXkbrSXnZtTetwbJWe6T66WUud9xdNCvt76ddJpf9svjb55H2j6crxvlbG7Avbw96DSYmVpS44RuKvbOBD6Z8aB7fAONS60QBYOt7ghVxDr++qSO6Sbnwsf3yCMmk=;7:JVLix/F4IjR4GmVB4M6mIgkiCEhwVGEOAjckR4clFvZ82kutjE/Nhy8nemT3pm3lueirhP8PRYyCHRZ5MjLhzHijDPP6V/aYS4ehXiVt9BCv05D4Eap2q42wqV0COOa5ObqaRCyYTWDHdpeoZBKv/g== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 7345c584-d556-4a0d-6b30-08d664f8d1c8 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:SN6PR13MB2351; x-ms-traffictypediagnostic: SN6PR13MB2351: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231475)(944501520)(52105112)(10201501046)(148016)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:SN6PR13MB2351;BCL:0;PCL:0;RULEID:;SRVR:SN6PR13MB2351; x-forefront-prvs: 08902E536D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39840400004)(376002)(136003)(366004)(396003)(199004)(189003)(2906002)(53546011)(486006)(106356001)(11346002)(446003)(102836004)(99286004)(76176011)(6116002)(105586002)(3846002)(6506007)(25786009)(36756003)(2616005)(8676002)(110136005)(66066001)(93886005)(6436002)(68736007)(118296001)(54906003)(26005)(8936002)(81166006)(186003)(229853002)(81156014)(478600001)(316002)(6486002)(14454004)(86362001)(4326008)(97736004)(7736002)(305945005)(71200400001)(71190400001)(2501003)(6512007)(5660300001)(53936002)(14444005)(4001150100001)(256004)(476003)(6246003);DIR:OUT;SFP:1102;SCL:1;SRVR:SN6PR13MB2351;H:SN6PR13MB2494.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hammerspace.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: DwaPK9pgsyQFH6ZBSinzabN3WQgr1Z4/pj+XcHtzV3C36UyLOjL/F8jWq4+cxWva1+rWdo0v3uWnHuQ2FuZSbnChB6juLaRms/yh67vjcNtepzUrPvX6tHr4mlpeWrDCQD3+3lXCF4GSchg6R58LRKpFlYLhS3UgBJo9mCTBdCtsp7IrqsPaZq0WAcbPPjRf5ip6pSg8Rkw9QiyYWzP04AUiX5SP1aiTxpfTI3FOQ3w63USkBt9dzEHYQjsKAHXj9fnAdIHQ07AlnBsusIvd0WYIgapwiI4nQYHhXd4Bx4HG4uHPsY2cg34dcC3tLSz2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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-Network-Message-Id: 7345c584-d556-4a0d-6b30-08d664f8d1c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 14:55:15.2042 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR13MB2351 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gVHVlLCAyMDE4LTEyLTE4IGF0IDE3OjM1ICswMzAwLCBWYXNpbHkgQXZlcmluIHdyb3RlOg0K PiBPbiAxMi8xOC8xOCAzOjQ5IFBNLCBUcm9uZCBNeWtsZWJ1c3Qgd3JvdGU6DQo+ID4gT24gVHVl LCAyMDE4LTEyLTE4IGF0IDA5OjQ1ICswMzAwLCBWYXNpbHkgQXZlcmluIHdyb3RlOg0KPiA+ID4g T24gMTIvMTgvMTggMTI6NTAgQU0sIEouIEJydWNlIEZpZWxkcyB3cm90ZToNCj4gPiA+ID4gT24g TW9uLCBEZWMgMTcsIDIwMTggYXQgMDc6MjM6NTRQTSArMDMwMCwgVmFzaWx5IEF2ZXJpbiB3cm90 ZToNCj4gPiA+ID4gPiBpZiBub2RlIGhhdmUgTkZTdjQxKyBtb3VudHMgaW5zaWRlIHNldmVyYWwg bmV0IG5hbWVzcGFjZXMNCj4gPiA+ID4gPiBpdCBjYW4gbGVhZCB0byB1c2UtYWZ0ZXItZnJlZSBp biBzdmNfcHJvY2Vzc19jb21tb24oKQ0KPiA+ID4gPiA+IA0KPiA+ID4gPiA+IHN2Y19wcm9jZXNz X2NvbW1vbigpIA0KPiA+ID4gPiA+ICAgICAgICAgLyogU2V0dXAgcmVwbHkgaGVhZGVyICovDQo+ ID4gPiA+ID4gICAgICAgICBycXN0cC0+cnFfeHBydC0+eH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