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 B36B0A0548 for ; Wed, 12 Oct 2022 11:25:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A721542FF6; Wed, 12 Oct 2022 11:25:37 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 69FC942B6D; Wed, 12 Oct 2022 11:25:35 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29C2ACRe026867; Wed, 12 Oct 2022 02:25:34 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3k5mjg1hc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 02:25:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fo0lIlaPkpuMQD7mIC9NFtUnpcL8gMD0OSg3vvDTR86XIaRh1py3l2HKK/JMnWcXeEkpHw52JYzyJ8sgpnaJ8SU5b23j9UsjZpWWbzU7nJ7tENaw2WNCkPBUWdPGM8Mwp6wEPY6kDuugf+i1ZnAnVLdmnT8TufqctLFEa1GthZc+gsudIj5X04mDyK6XTHmwV2qAJIb+JA4/sv4xNWNbayhm9eVXLnRMyO6aZeIqveZtZzokROpIZIdDv4pF/zD2KA/EpJUG6FGkwUp+2itqMiCzuxaeTipfSM5h+PBBDDfQj/tDFJKur2+Swo9w6yCpDsy380O8x8onpazQdTkwww== 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=HMhw4YfpxTd5JU1rYGvDs4WQGjnLRdotWEbSYh8cKBc=; b=SkyiK2FKnWydCCa4ajX2i1XOMt7TN81JCQJ4Yyib5BcejrfDBjljiZlQV7Ce5KoZCaQerYz8eglPZbv/1gsa5Mt7/pa6fUP+IcpvROfDkjXRtdXvFTUtOfSsd+46VyySDZOmkeWo2Ust6kNr0rgCft4vP29SRASClZ+LvNTs4eEKnSHpeKiY3XRiJpzrleHr98SslCoTbqrzKmiL/F/iEsKFeOJ9gLM3SB5VtAxapKNHp0RK/vVsaw+Gh9jOMuYfqyU0NTnq0JY5Wiyg9lYFE2ul3IL7+tyrFJOTL5xb5AxJ6Su69S5CqFAjyetJW1Yr0AhpwdNtWFbqnEWR8eZwiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HMhw4YfpxTd5JU1rYGvDs4WQGjnLRdotWEbSYh8cKBc=; b=ajOhgsoORW1QJ/8jKhPVkHA7/EFicjiymS1wpO54SS3PjeAugiUzEr0Fp5yvJ6uXKi/PvOLAcMHXN3jSm7z/6ViuNUEA0em7wFHdn6MrzEdut3o54bfB2QLkdtynIB4OSvPPyUMXucGu2ExGpz8hTkMuXvesMitb42Z1f2OUf5A= Received: from CO6PR18MB3860.namprd18.prod.outlook.com (2603:10b6:5:34d::12) by DM4PR18MB5121.namprd18.prod.outlook.com (2603:10b6:8:40::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Wed, 12 Oct 2022 09:25:32 +0000 Received: from CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::50c6:106e:b9d9:4436]) by CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::50c6:106e:b9d9:4436%7]) with mapi id 15.20.5676.044; Wed, 12 Oct 2022 09:25:32 +0000 From: Sunil Kumar Kori To: David Marchand , "dev@dpdk.org" CC: "skori@mavell.com" , Jerin Jacob Kollanukkaran , "stable@dpdk.org" Subject: RE: [EXT] [PATCH v2 6/9] trace: fix race in debug dump Thread-Topic: [EXT] [PATCH v2 6/9] trace: fix race in debug dump Thread-Index: AQHY19X5pn3wwTo94UKLPWW9wJ3wWq4KiV/g Date: Wed, 12 Oct 2022 09:25:32 +0000 Message-ID: References: <20220921120359.2201131-1-david.marchand@redhat.com> <20221004094418.196544-1-david.marchand@redhat.com> <20221004094418.196544-7-david.marchand@redhat.com> In-Reply-To: <20221004094418.196544-7-david.marchand@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2tvcmlcYXBw?= =?us-ascii?Q?ZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5?= =?us-ascii?Q?ZTM1Ylxtc2dzXG1zZy1jZjg1ODBkOC00YTBmLTExZWQtYjZiZS05NGU2Zjc5?= =?us-ascii?Q?MjY4OTBcYW1lLXRlc3RcY2Y4NTgwZGEtNGEwZi0xMWVkLWI2YmUtOTRlNmY3?= =?us-ascii?Q?OTI2ODkwYm9keS50eHQiIHN6PSIxODYwIiB0PSIxMzMxMDA0MDMyOTUxODQz?= =?us-ascii?Q?OTciIGg9IkZUU1BLZUl6RlVGMk5OMUI1Y1U4dnJ5c3FBZz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ii?Q?YkFCZkFIUUFaUUJ5QUcwQWFRQnVBSFVBY3dBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= x-dg-reftwo: QUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBQT09Ii8+PC9tZXRhPg== x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB3860:EE_|DM4PR18MB5121:EE_ x-ms-office365-filtering-correlation-id: 7c97f272-3e67-47a9-9255-08daac33b5f2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bbPGF/EIEYXkCTAcnaaccTLyYRpBgdVCbblPnpvq52gmmqexxr6CRJLLpu3fXvcobbWf5gyTOBDsTwdUvd8ol7ojKcGsYVbexfBbFRRGvhXa0k0BqpyigTE2KohuqyBKtHXnSPohPjtYC9vRROgqqp7v9/8TCT5+xs1F30IFCELI2PpMOxKG85aeHgubiLAfaVCEcfKi6d0vYsPlFTVMjaMwKmg6GqDLfWBLHkd4DCDOeU4v3HJDCY1j5RIZOk/o0Vvre3FpJRqGH4/GjwWbiwJaktn/zYat2Apf/inKHo+A4SItaxw6m7Kg5K61RcD8mw8Bhz2kBdph8Dl2I9gfGLulrjQsq7889AOdC9iJDWvggs1KFlNkyfkkWzXfHyg8rYQdvJkKTYsz2WPrk4XWBrx5zezCoRafSguq93px4by+cTXaE0N677qex0whnDUIk3a/AYMCN8DwWdukWKrjk0zWufPs81QIk/u6VWzJ4wC49nldNUxJ7yapkR9VsGysaVFop0il8jC3UVXQNh7evELR9/th4DpMY29z7QNfvutxu/QFTp4luKGw8RPj+li34WgfVTLAW5ZwWDN9NAHTpv5owVdYH1yB//ctuWMMGJ/J6F0Ywscrb4DBKP4HLnPezum9zJUcFg1dF6WnShzmLbtFDN7ng0D/81qOdGkgUyfXzZwAPQAXq5GvX+TokUY8ys4dCa0K3duz30M6C3kFixL/7dF6fBIgOqE7ka0jWAINju/Zz02u9ZPsP2gPkIOBfJt+3/Qs6KnXdtpiZfnJmA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3860.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(366004)(376002)(136003)(396003)(39860400002)(451199015)(26005)(7696005)(6506007)(53546011)(122000001)(38100700002)(66556008)(316002)(55016003)(8676002)(66446008)(66946007)(71200400001)(76116006)(4326008)(64756008)(66476007)(38070700005)(86362001)(33656002)(186003)(83380400001)(478600001)(2906002)(54906003)(5660300002)(41300700001)(8936002)(9686003)(52536014)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3gljhYVSkXd2gmpziPsvnQ9hBbdGdJeHNXEWhuDdvIByT+wvbwpbMGGz/VJS?= =?us-ascii?Q?xctWZ/UCHq9paAKYq+Ewxfkgbl5g/8uaMEOYdi94j9/DB9oOP/ix6TX64qFm?= =?us-ascii?Q?4/oq+VK/BLG9ErDRWsUeAQvFDZnHNX4E9CILCvIjXF7/g5m5I5dPzLvuPXyw?= =?us-ascii?Q?8IDEtruir78QVhrqjoK4/uFLvwC1bUkSTKD0Hri964+tdY2RlrODD+82ZsEB?= =?us-ascii?Q?ECkefEOCb1/AbiTNIaKGtCUOpNKdu+4+Pwmt/rC7OBU2VFFJtsfAh5Bikeg9?= =?us-ascii?Q?t1fotknADxOkQOtMAHp+Uqsn4d0GXeihg3HkGozN0SskmhbNXH3p+zsUI734?= =?us-ascii?Q?wwEN6mynrv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yTVUOz?= =?us-ascii?Q?LCmA9ACYFbMVwlBfeQZRjIcUHqX120YDWRfzKnO0CF4UrVSjdD54N2trh0G7?= =?us-ascii?Q?l96qhSyC250VuG6gA7wxPLxChxc8GNbgGeoW/9FBJwBUdowStnvhiIAg4cFl?= =?us-ascii?Q?1SlUEzDb76aFmJdVPQb5l9K4ATWyeQuQJdwNID+GAO2esVuilWBSLISo58XZ?= =?us-ascii?Q?Oxtn+HyPbEMsMUHVA28TsukRDP1mosg0xsTNYgCAl7DB6jzNcpcEE+voZK9t?= =?us-ascii?Q?3MVF6/Lq79qQ3X+EpbDhMl/JsI8JY2VMAfT6dG4N3838xJRSagpoZbQuBSCL?= =?us-ascii?Q?wIYZ8RSwpEOaAoXrnxPGuaRZsm/tVVS4wtT9QTRi?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3860.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c97f272-3e67-47a9-9255-08daac33b5f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2022 09:25:32.1604 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: esS9dXkj1wdE+TKJNtBBsNDq0zejjyNJHhtxcmuoedtWDrcVrE/EDe2EytqCLaSBljZzT38Q9Q9nsW52lfGEfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR18MB5121 X-Proofpoint-ORIG-GUID: MCXeLY9c0L5Tp-Es1vjSozWs3CVQFos- X-Proofpoint-GUID: MCXeLY9c0L5Tp-Es1vjSozWs3CVQFos- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_04,2022-10-11_02,2022-06-22_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: David Marchand > Sent: Tuesday, October 4, 2022 3:14 PM > To: dev@dpdk.org > Cc: skori@mavell.com; Jerin Jacob Kollanukkaran ; > stable@dpdk.org; Sunil Kumar Kori > Subject: [EXT] [PATCH v2 6/9] trace: fix race in debug dump >=20 > External Email >=20 > ---------------------------------------------------------------------- > trace->nb_trace_mem_list access must be under trace->lock to avoid > races with threads allocating/freeing their trace buffers. >=20 > Fixes: f6b2d65dcd5d ("trace: implement debug dump") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > --- > lib/eal/common/eal_common_trace.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 Acked-by: Sunil Kumar Kori > diff --git a/lib/eal/common/eal_common_trace.c > b/lib/eal/common/eal_common_trace.c > index 6aa11a3b50..ec168e37b3 100644 > --- a/lib/eal/common/eal_common_trace.c > +++ b/lib/eal/common/eal_common_trace.c > @@ -259,10 +259,9 @@ trace_lcore_mem_dump(FILE *f) > struct __rte_trace_header *header; > uint32_t count; >=20 > - if (trace->nb_trace_mem_list =3D=3D 0) > - return; > - > rte_spinlock_lock(&trace->lock); > + if (trace->nb_trace_mem_list =3D=3D 0) > + goto out; > fprintf(f, "nb_trace_mem_list =3D %d\n", trace->nb_trace_mem_list); > fprintf(f, "\nTrace mem info\n--------------\n"); > for (count =3D 0; count < trace->nb_trace_mem_list; count++) { @@ - > 273,6 +272,7 @@ trace_lcore_mem_dump(FILE *f) > header->stream_header.lcore_id, > header->stream_header.thread_name); > } > +out: > rte_spinlock_unlock(&trace->lock); > } >=20 > -- > 2.37.3