From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0077.outbound.protection.outlook.com [104.47.0.77]) by dpdk.org (Postfix) with ESMTP id 1D8A7B62 for ; Mon, 28 May 2018 15:46:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JMAN27se5wrms1EVa9Egz3fq7nqV+6ow3Gdqb/97OpE=; b=iilQ5Lj8SwVfqANI4hwr4uKUExFU6+w6OPvC2bfN7V+Wd1+nR7xGUASKznZ0IQ9jZ2GqhVnM/1j3RSW6esnG70HIgSmADpbyKHTwsiDEPsCe15c9UoaCd9eOPC7oTNlwQIhIS/xgCjp2xby24N1DqHqMI5i9Clj5FzqKX8z1wsQ= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB5036.eurprd05.prod.outlook.com (20.176.236.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.16; Mon, 28 May 2018 13:46:05 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7%13]) with mapi id 15.20.0797.017; Mon, 28 May 2018 13:46:05 +0000 From: Shahaf Shuler To: Yongseok Koh , Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= CC: "dev@dpdk.org" , "ferruh.yigit@intel.com" , "Xueming(Steven) Li" Thread-Topic: [PATCH] net/mlx4: fix crash when configure is not called Thread-Index: AQHT9YkNY06NPFXDpUm8wzEy3UNe96RFKS5w Date: Mon, 28 May 2018 13:46:04 +0000 Message-ID: References: <20180527070455.13123-1-yskoh@mellanox.com> In-Reply-To: <20180527070455.13123-1-yskoh@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB5036; 7:7eFcN1KJHOm3lBDZOrtOTbHirmdCgP6eZQqNvkCLqj63lRoHF7w3h5YMWqzkJZXgaY9BPH0e7jVv5PAsyTd8cZjlEtGTCibCCllSZuVlItFD1Eu95t2b0Ucn8bsgOE8anE7IkTBwIvC25gd81ahQ31MZ2NO/o3XNHQbqk+CBJ+OEUs8jJWLEOOvvH4Fsjp2aF5LKwQZzg+mPAI3OtAoyVKd3Nn3mR60RNKuPpYr8KgTUPYfGV2IC3kGtTdqsEXju x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB5036; x-ms-traffictypediagnostic: DB7PR05MB5036: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(278428928389397); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB5036; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB5036; x-forefront-prvs: 06860EDC7B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(346002)(376002)(366004)(396003)(189003)(199004)(81166006)(81156014)(66066001)(446003)(3846002)(6116002)(99286004)(4326008)(6246003)(8676002)(305945005)(86362001)(6506007)(7736002)(102836004)(53936002)(59450400001)(33656002)(26005)(55016002)(68736007)(11346002)(8936002)(74316002)(5660300001)(107886003)(7696005)(97736004)(476003)(76176011)(2906002)(14454004)(5250100002)(25786009)(229853002)(486006)(106356001)(2900100001)(3660700001)(105586002)(316002)(3280700002)(6436002)(478600001)(9686003)(110136005)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB5036; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: xTvIxFlT5WhNAbGQr3QQ1cJWdeVs8po80WoridVKXS+ex9+A1c23RFXdBpi14LY/lBaAvw0TMJM8c4+SZcVTJTKZVKRFXKMB0B2dW5PNnn9RtVdAujJ8wUP9hex5y7GgHg5X8tMP3l5NklCcfoUmxbokLHa721nXPG/7eHVaFH1MRoArznM2eJ0R37aj/VOl spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ab37afe8-ebde-445a-f0a2-08d5c4a15bc3 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab37afe8-ebde-445a-f0a2-08d5c4a15bc3 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2018 13:46:04.9577 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5036 Subject: Re: [dpdk-dev] [PATCH] net/mlx4: fix crash when configure is not called 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: , X-List-Received-Date: Mon, 28 May 2018 13:46:07 -0000 Sunday, May 27, 2018 10:05 AM, Yongseok Koh: > Subject: [PATCH] net/mlx4: fix crash when configure is not called >=20 > Although uncommon, applications may destroy a device immediately after > probing it without going through dev_configure() first. >=20 > This patch addresses a crash which occurs when mlx4_dev_close() calls > mlx4_mr_release() due to an uninitialized entry in the private structure. >=20 > And the device's B-tree should be allocated once. >=20 > Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support") >=20 > Signed-off-by: Adrien Mazarguil > Signed-off-by: Xueming Li > Signed-off-by: Yongseok Koh > --- Applied to next-net-mlx, thanks.=20