From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76A4EA034C; Wed, 9 Nov 2022 14:34:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12421400EF; Wed, 9 Nov 2022 14:34:08 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2067.outbound.protection.outlook.com [40.107.220.67]) by mails.dpdk.org (Postfix) with ESMTP id 0C4F5400D4; Wed, 9 Nov 2022 14:34:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kviDMdiRGTomniZI908TUiDB19ANhAyXYbaMDnKqwNN1c8+8eArwz1Ei0Yum7rDDggucGm6WRqd+QFRaHGWbeAanEmqXk7rQH0wghZF/NBn0XiRXhNiLkRuuVpo+zED+XZWfS4+NxwTCB3CDG3X8/uz4/VVY/trtwv++4du5BBJa3R9fnaxUFSeexMjHDMK0I+G/B7B7p4XoQ20krrDYg1si8BKNICheoWgXb+mrjzGgL0F29yOVjVp8otKpj8SIM3fO6XLeJ7jEcvwQwdYZE6A3C85HaEH9Vx1GxWX84LqUYZJliYSCg40M6BpLrlB0Y61+9ADqTCAqig2jGIomkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ElRR8HQZFJ6naQxNcCAsIj9d/0m2R5FnhVZDXP5q8Mw=; b=kjfTY+WAnVv/83wY9KywjSqqyOQkvg2hpcbEv/Pt+D8fYkzC5Zl3ulrkIRDhRGstkncs3JloiLvC5m9FF05uv5LDLbC7I61oEwm7xToS8lqSUqg4nmu99FJ4UEloLPPucFtPfUkSlPQH95eunY2SzOdQO10ROE+7iBBvylBH5v+0kXi2WcS+obL3koCkuSImuiQLkfhURvrw5UwEgsZQSIE24Xvbuqzyajb1GgkqFF54Sn4fmMgrofCO5niXJyhwC9hTHuS96daL4yOSNTEm3InzteMBtPuR+VLvT/Y0ogmny6osIMhARDDl3psYaDCjllIB7rdxbdh7b1eK0G5wWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ElRR8HQZFJ6naQxNcCAsIj9d/0m2R5FnhVZDXP5q8Mw=; b=ieVYUA4m6jBrPZiaNHyoddP52hN3HnAkDyzsdNZNL9Yrp4x2MPBdKiv9X1fscWGRVGb+g5m5gcFjr9u2VJwBLysPyKUBjVzFkmcum7eKJkIuO6pp5AyTy8255l1Pw2p1VCG51ZSrBSqQ/kr+L8SSdfRSBveUkDApPEgEoRaIthtU/xXxOGfBb3PbwoTuinZrT0uQS+GrbtLNwNXetoxByI572DDpJXaF/N5vZ8nTiazslaCimfseTdBmvRbIcDiTlOLXZ8/Upev6tSQ/HgBDnbZdxa8ZXGtYDDUPb6B3FZZ99pHnVX2oK9D/3MTLpnxh3TMNc5miqZ41Lg8m6Yj0QQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by IA1PR12MB6139.namprd12.prod.outlook.com (2603:10b6:208:3e9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Wed, 9 Nov 2022 13:34:04 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::7c8c:ea68:bd84:9458]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::7c8c:ea68:bd84:9458%4]) with mapi id 15.20.5791.027; Wed, 9 Nov 2022 13:34:04 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Raslan Darawsheh , Matan Azrad , Michael Baum Subject: RE: [PATCH] net/mlx5: fix indexed pool local cache crash Thread-Topic: [PATCH] net/mlx5: fix indexed pool local cache crash Thread-Index: AQHY9DsBeycg77b1h06YRR93YVap/q42lz7g Date: Wed, 9 Nov 2022 13:34:04 +0000 Message-ID: References: <20221109125819.2923383-1-akozyrev@nvidia.com> In-Reply-To: <20221109125819.2923383-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB3753:EE_|IA1PR12MB6139:EE_ x-ms-office365-filtering-correlation-id: b4df2cf7-ccac-4345-4ef3-08dac2571209 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hFiNCStlvDbfeQnemKgaF3cpfE/krDd6dh3K3jftxGseg8Cg0oFBRK0oJVfj/egDKneoKxZfkjkazYgP/x4HTrbi7WbgR+u/2YxPsK2NHrKnjh4K/NTRUt+dB2uNND4KJfxxInpoGEcsbWQKlXuj5Nfc/z+VPKIFT1EtC4oFFi8rorubuYJghFlRoeKX2v3/g2n7sRaISoYIOOfXiEdGUz87E5X6z08JBZFrwV56rys/iFRI5Dkgat6xvMHJog54N4hL0QP8xqrBernh5BwLtNn9J7YAANa7bDeP/aSpTe7j0Mbst3Fs9YI3EMiMoxDcFMZcaA1/C0AutbhrqfQAYzyjxnSQl6V93RcGhJbH0j0puXVERvWs3bn6JioyX/1sFXvWy/fmyEwaJqtsMHQL0OXEAtuGSMJVNYcS+n9rQMuZphTXeHb65jL0vy6+raPyZd8C2gUAgiD8YqIgvEqvaAKbaD+q8oooOpqZvwxbjQ5DHEZ4y7srxkv/ULtPwSgSZsjHyPDMWJUNXoVT1PiyoPSZLbYnfHCP5ejbEfGB5xtOk2gC/VkGQ3D/u/dkbrOUVz/znNvC+dbL6eI7H8sDyPGPdb+j1v7+sEV42hD4HI2wlQPHHVOe4R9SwbWqLhfrY8KWGuhUeVsc7QjXFCnfdj448WiDNLBI1d200BqjJD/InUpVYYOirIwAs4Lda4jIqU4uSWPj8so5UrYNXao7QdZWhPwyiaPYNR1GVCHNZldhjD61oXH3E0y+8Rf5PqebP8PvgahpXScLSJegC3p9dg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(451199015)(110136005)(54906003)(316002)(4326008)(66946007)(41300700001)(66556008)(64756008)(66476007)(66446008)(8676002)(52536014)(8936002)(450100002)(76116006)(5660300002)(71200400001)(86362001)(53546011)(122000001)(38100700002)(478600001)(9686003)(186003)(33656002)(83380400001)(4744005)(55016003)(2906002)(6506007)(26005)(7696005)(107886003)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0jwp9NmQE1PVdbNoNPJlc/dOPQkpk9mF5FIXomInuJv1FEz/X7Ldr2whMMP/?= =?us-ascii?Q?3b88F5FmVkxpmYasM3JZ1CE2qV9aw9W7lP9DOb/SMwTO9ffVwd2/FY1p3btb?= =?us-ascii?Q?ZMzVxVmvOkTn+H7GyzclBlypav0RdxAcvAANEJlHaKeNTGB4xLlL/hjh1SkJ?= =?us-ascii?Q?YqYiNBJwHQmC6W0AUidwzU+UfCnVnYCe387Vbftm/ZF27qs2DN9ql9SDJb5t?= =?us-ascii?Q?CzDgLX5mnJUz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?Q?xiwohzTo5Xcsah6HLdciqRVhhVnFG0OgjGYYInroG21Qfn+HkOFTBllFT47F?= =?us-ascii?Q?Fa1MwXZ73JXeeehFwUJcN8k/iWv+hnu9Jl9c1bMR7ZmUfJtdORCYrCQ66kjB?= =?us-ascii?Q?p6/80s0btv5hRKQxCfSPqETNJzByCcPflcTd4ovkGcn4g2HojLMIZAaeeSRZ?= =?us-ascii?Q?NsUzxJg0N4tCFA98Zv5WqZRmhze8G9douad3Oh9NKF+rKAUfF1Xk69ScWCZm?= =?us-ascii?Q?2pOR/2TauFE0e9Jkn9J96jacYNY+nSIAQtQf+uTS9REDug5vQsAxKsu7/RR+?= =?us-ascii?Q?Kq+1jHktN5Z8ktPUU4qVU7xTu3wtJcJ+wDKOZbNLev4Brmr2q5+IvbPAqqJh?= =?us-ascii?Q?uj3trMUtolmUh3WvpSogQDOMhH1SqZf74bCMcqH6WxWbFC7zRsHIxIyx59O8?= =?us-ascii?Q?R2PqK+Y0SS8IXTWhHZ5BNvQDSadxtTOikXifneJ9?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4df2cf7-ccac-4345-4ef3-08dac2571209 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2022 13:34:04.6421 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tPj4J7K3SufySzyp57MtoVGV0Dqw6pkrcbLmeREg2TsC/WJlH3F7KnxbFEuYEMrv51OjElABtNMK/LVOcDGa/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6139 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Alexander Kozyrev > Sent: Wednesday, November 9, 2022 14:58 > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava Ovsiien= ko > ; Matan Azrad ; Michael Baum > > Subject: [PATCH] net/mlx5: fix indexed pool local cache crash >=20 > Local cache for an indexed pool is not initialized in the situation when = all > the indices are allocated on one CPU core and freed on another one. > That leads to a crash once we try to check its reference counter. > Check that the local cache is initialized before accessing this counter. >=20 > Fixes: d15c0946be ("net/mlx5: add indexed pool local cache") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko