From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id EA81CA0471 for ; Tue, 18 Jun 2019 06:07:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 122FF1C031; Tue, 18 Jun 2019 06:07:05 +0200 (CEST) Received: from us-smtp-delivery-181.mimecast.com (us-smtp-delivery-181.mimecast.com [63.128.21.181]) by dpdk.org (Postfix) with ESMTP id 524BC1BFF1 for ; Tue, 18 Jun 2019 06:07:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rbbn.com; s=mimecast20180816; t=1560830822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ovof/2EO0ioKnNLL6QOAiX6OMN9fMjEEf0yHe5gN3Aw=; b=m/iFcl4fHvx7N1Rfl1A1QSF8g0e59j3F5V7nRunfBygZG7h+lYlya3NC1eDkjgVp8nXEbb Cr381Caoim4eAA8yDZVZ573dvUh3j+yjg1S0ifL5w96Lgpnked9AaUF9rUiMhBt3riO7Ba vmSqMUeGef+V5nSwJKpPshjen8KZBrI= Received: from NAM05-BY2-obe.outbound.protection.outlook.com (mail-by2nam05lp2057.outbound.protection.outlook.com [104.47.50.57]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-346-pWzqnV88Ng-yqfSw5c8Z4Q-1; Tue, 18 Jun 2019 00:07:00 -0400 Received: from BN7PR03MB3892.namprd03.prod.outlook.com (20.176.177.22) by BN7PR03MB3522.namprd03.prod.outlook.com (20.176.19.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Tue, 18 Jun 2019 04:06:56 +0000 Received: from BN7PR03MB3892.namprd03.prod.outlook.com ([fe80::29e6:3f50:b4a6:9a08]) by BN7PR03MB3892.namprd03.prod.outlook.com ([fe80::29e6:3f50:b4a6:9a08%3]) with mapi id 15.20.1987.014; Tue, 18 Jun 2019 04:06:56 +0000 From: "Dey, Souvik" To: Ferruh Yigit , Yangchao Zhou , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] kni: fix possible kernel crash with va2pa Thread-Index: AQHU2LUpYjogxZpePUOrbIuonydKM6YYL/IAgIkzbbA= Date: Tue, 18 Jun 2019 04:06:55 +0000 Message-ID: References: <20190228073010.49716-1-zhouyates@gmail.com> <20190312092232.93640-1-zhouyates@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [24.61.94.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dd7a8839-3289-4767-77f6-08d6f3a2679c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN7PR03MB3522; x-ms-traffictypediagnostic: BN7PR03MB3522: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 007271867D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(39860400002)(396003)(346002)(199004)(189003)(25786009)(14444005)(99286004)(256004)(110136005)(6246003)(486006)(11346002)(446003)(478600001)(14454004)(6506007)(790700001)(53546011)(6116002)(3846002)(229853002)(186003)(8676002)(26005)(102836004)(66446008)(71190400001)(76116006)(476003)(81156014)(52536014)(5660300002)(76176011)(81166006)(7696005)(74316002)(33656002)(86362001)(64756008)(66476007)(8936002)(73956011)(7736002)(66556008)(66946007)(9686003)(236005)(6306002)(54896002)(55016002)(71200400001)(2501003)(6436002)(9326002)(2906002)(53936002)(68736007)(66066001)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR03MB3522; H:BN7PR03MB3892.namprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: u0+cgrcYp56bWFj90EoMVThwtsQWgReCwgjQX1DuPLFfZ6ztKRCIV1R5h0YXh6ZmnngrUt/1fWJzigRfTba5eWRBi+DeqGxL9331HrOv8q1UroxURjkCrTxlCtDC1HI796xt1UpREPEY7PbnMWsap+cgEjf06yqVI2G0DR1t/F0HGIAtfh9DuJ0w778kLI6LYIXRqi+S7C0ZpUuVugu3vbUJ2+B/LCxzR4FVstk6UJmdYybZOPfmbiPhO2j2Dx+jRXD8ZGbVObVL0HYhvMEvd2nGha71di5mxBb7rmbjCadPaVeBJmzSbFa4v33PBnOpkEKVM4xwXZpPuku/aIj//j12w+MgDW7C5mw0EIg27qLfhkSP83anZvAwwCiVTKNVdw/FRvf2SIiS7Hj5hfyQuYYlbLAy76RkwPePV7BqX1o= MIME-Version: 1.0 X-OriginatorOrg: rbbn.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd7a8839-3289-4767-77f6-08d6f3a2679c X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2019 04:06:55.2272 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sodey@rbbn.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB3522 X-MC-Unique: pWzqnV88Ng-yqfSw5c8Z4Q-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2] kni: fix possible kernel crash with va2pa X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgWWlnaXQsDQogICAgICAgICAgICAgIEkgd2FzIGZhY2luZyB0aGUga2VybmVsIGNyYXNoIGlz c3VlLCBhdCBza2Jfb3Zlcl9wdXQoKSwgdXNpbmcgZHBkayB1c2luZyAxOC4xMSBvbiA0LjE5LjI4 IGtlcm5lbC4gT24gY2hlY2tpbmcgSSBkaWQgZmluZCB0aGlzICBwYXRjaCBhbmQgdGhpcyBwYXRj aCBpcyBzb2x2aW5nIHRoZSBpc3N1ZSBhbHNvLiBCdXQgdGhlbiBJIHNhdyB5b3UgY29tbWVudCBp biB0aGUgcGF0Y2ggYW5kIHRoYXTigJlzIGxvb2tzIHNjYXJ5IHRvIGhhdmUgdGhlIHBhdGNoLiBJ cyB0aGVyZSBhbnkgaW1wcm92ZW1lbnRzL2ZpeGVzIHBsYW5uZWQgZm9yIHRoaXMgaXNzdWUgYW5k IGluIHdoaWNoIHZlcnNpb24/IGlzIHRoZXJlIGFueSBwZXJmb3JtYW5jZSBpbXBhY3Qgb2YgdGhl IGJlbG93IHBhdGNoID8gQXMgdGhpcyBpc3N1ZXMgaXMgYmxvY2tpbmcgb3VyIHJlbGVhc2UgYW55 IGlucHV0cyB0byB0aGlzIGFzYXAgd2lsbCBiZSByZWFsbHkgYXBwcmVjaWF0ZWQuDQoNCi0tDQpS ZWdhcmRzLA0KU291dmlrDQoNCkZyb206IGRldiA8ZGV2LWJvdW5jZXNAZHBkay5vcmc+IE9uIEJl aGFsZiBPZiBGZXJydWggWWlnaXQNClNlbnQ6IEZyaWRheSwgTWFyY2ggMjIsIDIwMTkgNDo0OSBQ TQ0KVG86IFlhbmdjaGFvIFpob3UgPHpob3V5YXRlc0BnbWFpbC5jb20+OyBkZXZAZHBkay5vcmcN ClN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2Ml0ga25pOiBmaXggcG9zc2libG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