From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0063.outbound.protection.outlook.com [104.47.1.63]) by dpdk.org (Postfix) with ESMTP id A0A33DE3 for ; Thu, 24 May 2018 20:22:00 +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=3g/5uWSGdWZm10NYWH4DGT3P+U63m02IXrjwMRKmYI0=; b=MNGCOEA47AAqa7x/B2tz89WaGE7uAQK1hqEnTEzlpxtVNeggksktkeoPfT+VQ2gV3VFXOwDAnVY2fhw/33eK2iyaboDdgt2gbbqiXRxq2SigBwJ7OgN3PaTDD5PS5BujIOWPDmgo1u6/vO5j3uv1DGQBDQndtDOQnCN8C8HXJpg= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2814.eurprd05.prod.outlook.com (10.172.11.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Thu, 24 May 2018 18:21:59 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d%13]) with mapi id 15.20.0797.011; Thu, 24 May 2018 18:21:59 +0000 From: Yongseok Koh To: Adrien Mazarguil CC: Shahaf Shuler , "dev@dpdk.org" , "Xueming(Steven) Li" Thread-Topic: [PATCH] net/mlx5: fix crash when configure is not called Thread-Index: AQHT82ywTcuGQZS1A0aGplyPxmXSQ6Q/MVmA Date: Thu, 24 May 2018 18:21:59 +0000 Message-ID: <69BE5B78-DAAA-4F84-A238-4E3BB8FF5B50@mellanox.com> References: <20180524143535.29996-1-adrien.mazarguil@6wind.com> In-Reply-To: <20180524143535.29996-1-adrien.mazarguil@6wind.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=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2814; 7:mXf7o5y/P1bNtn+HycEjmcMlJ06GgKoX41TYCYlzt7SO2BhvnqNq3lNk05bkPeiX1yuPvPnPQ2Y4bRwMGIbmIZEx949+5unBcDYp9P5w5hlGT9pRe5/AL4hN0fzr8odtLuU9QpoJ3ACbw6dkzZ8YF3oTkcxFzrsNi1n18FKnszF72HOQ922ExrxKR/Iwx0DCPNOtH3wwoBsit2EUhvRt18IJi5g+QnKcDmoLPW/iPR/sVFyFS/jzBVr1Xyd2az2D 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)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2814; x-ms-traffictypediagnostic: VI1PR0501MB2814: 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)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2814; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2814; x-forefront-prvs: 0682FC00E8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(346002)(39860400002)(376002)(396003)(189003)(199004)(83716003)(81166006)(2616005)(59450400001)(53546011)(25786009)(68736007)(6506007)(305945005)(76176011)(54906003)(2906002)(5660300001)(3660700001)(478600001)(6246003)(8936002)(5250100002)(6436002)(102836004)(316002)(107886003)(3280700002)(99286004)(66066001)(6512007)(8676002)(6916009)(2900100001)(81156014)(33656002)(97736004)(53936002)(14454004)(106356001)(86362001)(229853002)(186003)(26005)(105586002)(82746002)(6486002)(3846002)(6116002)(36756003)(486006)(446003)(476003)(7736002)(11346002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2814; H:VI1PR0501MB2045.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: NSgdZ5YL2CQ2/rpJPXY0zvHQ6Tttn2NIPYWGiWQPOQLozOhXjfrqTzc2SjHXMTT8jPQAtuNG5x8wRi7SSu9oviSAL6/4iogNdjT1e91aBSU1wMm0a3oyZ55ww3m7UFo962ZPliXanyt8qYBkULSKAxrN48XsG77kFKKdpoEYEImM/lBdKqYrS6V0Ahom8luv spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 802b4dd7-19f0-4a89-7b0a-08d5c1a33d19 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 802b4dd7-19f0-4a89-7b0a-08d5c1a33d19 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2018 18:21:59.0453 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2814 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: Thu, 24 May 2018 18:22:00 -0000 > On May 24, 2018, at 7:36 AM, Adrien Mazarguil wrote: >=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 mlx5_dev_close() calls > mlx5_mr_release() due to an uninitialized entry in the private structure. >=20 > Fixes: 974f1e7ef146 ("net/mlx5: add new memory region support") > Cc: Yongseok Koh >=20 > Signed-off-by: Adrien Mazarguil > --- Acked-by: Yongseok Koh =20 Thanks