From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0047.outbound.protection.outlook.com [104.47.1.47]) by dpdk.org (Postfix) with ESMTP id CB3233572 for ; Sun, 27 May 2018 07:04:03 +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=k5RxiOn55KGXH7FOIOqB48KlM6VJ8JwxrJmLZocGziI=; b=XCKLpkEAFvHyux0scHJRE5mZQlYP4mZI+IvPX0xcRkx+a1LFFibJAVCXmMApqvTeSzgrJSIvr+3mrs3l29va3lFLAX71CTZCWJeY5fKIa6qLV4MrqgolkCk9llkIUT1kISjeiyOVNuIM2cU5AT2X4Ht+0axl7PHNvQyw7EP7F50= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4219.eurprd05.prod.outlook.com (52.134.108.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Sun, 27 May 2018 05:04:02 +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.011; Sun, 27 May 2018 05:04:02 +0000 From: Shahaf Shuler To: Yongseok Koh , Adrien Mazarguil CC: "dev@dpdk.org" , "Xueming(Steven) Li" Thread-Topic: [PATCH] net/mlx5: fix crash when configure is not called Thread-Index: AQHT82yzcOboSBCOjUWl5IaF2L1nbaQ/MVuAgAPX7jA= Date: Sun, 27 May 2018 05:04:02 +0000 Message-ID: References: <20180524143535.29996-1-adrien.mazarguil@6wind.com> <69BE5B78-DAAA-4F84-A238-4E3BB8FF5B50@mellanox.com> In-Reply-To: <69BE5B78-DAAA-4F84-A238-4E3BB8FF5B50@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; DB7PR05MB4219; 7:ZCi2gKN4q3wQOjsGnpGj6CDZCAjjfcQIsPfhv7WUOiqH29D3iWNrgwyoD77TU6c64wBFqrWo/J9brzQzu7vByBmaaqlR5Gelofxl8OAZIyKfBSY8w0FpkZLHOLNL5+Famb7DcehLHhBmELNIF4GIT+Je7jB8ViRDW+WW9ENFEnxYOsCogNZxWU0HaOBff79QZzHa6AURilPlum3Ukkg/+AKFy9Tt7tVHtO+WLxYZSWz+6mHfDJA2Mpy4ZyuswnpK 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:DB7PR05MB4219; x-ms-traffictypediagnostic: DB7PR05MB4219: 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)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB4219; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4219; x-forefront-prvs: 0685122203 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39380400002)(396003)(376002)(39860400002)(189003)(199004)(5250100002)(59450400001)(107886003)(99286004)(53936002)(26005)(102836004)(25786009)(9686003)(86362001)(229853002)(74316002)(2900100001)(54906003)(110136005)(53546011)(6246003)(6506007)(97736004)(7696005)(76176011)(11346002)(81156014)(446003)(33656002)(8936002)(476003)(486006)(105586002)(106356001)(478600001)(316002)(55016002)(66066001)(4326008)(7736002)(305945005)(81166006)(8676002)(68736007)(14454004)(6116002)(3846002)(6436002)(5660300001)(3280700002)(3660700001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4219; 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: vl6SkdtNt5nYSoB/dctSQxVzuPiDwpj6EsGDZM744vmCxwkDg1kKoqWj1Wo7GMVs2f+ZTAYCtF5TGumt9OYSa+Lp3sq+lcWHV7+rDpnXnvIoiy6NnhGYeozko6D8cHGZWvThYGXo0IHqjmZnr57WriKbkC70j2Az6MB12XrJKgA9QuWYxyKE0p3MfhskZFh9 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6400e50d-44b7-468e-dcc3-08d5c38f43a5 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6400e50d-44b7-468e-dcc3-08d5c38f43a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2018 05:04:02.4226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4219 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: 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: Sun, 27 May 2018 05:04:04 -0000 Thursday, May 24, 2018 9:22 PM, Yongseok Koh: > Subject: Re: [PATCH] net/mlx5: fix crash when configure is not called >=20 >=20 > > On May 24, 2018, at 7:36 AM, Adrien Mazarguil > wrote: > > > > Although uncommon, applications may destroy a device immediately after > > probing it without going through dev_configure() first. > > > > This patch addresses a crash which occurs when mlx5_dev_close() calls > > mlx5_mr_release() due to an uninitialized entry in the private structur= e. > > > > Fixes: 974f1e7ef146 ("net/mlx5: add new memory region support") > > Cc: Yongseok Koh > > > > Signed-off-by: Adrien Mazarguil > > --- > Acked-by: Yongseok Koh Applied to next-net-mlx, thanks.=20 >=20 > Thanks