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 5F681A0547; Wed, 12 Oct 2022 11:11:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4729242FEC; Wed, 12 Oct 2022 11:11:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 23B6042D86; Wed, 12 Oct 2022 11:11:48 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29C8f4Ue011151; Wed, 12 Oct 2022 02:11:47 -0700 Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3k5t92r3cc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 02:11:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nkUg6bYk9RZhuYek0S+9gbgSu5M/ClayymxxvI6eqr9Gd0+Zq/HOiMAiKIuho+AydRRgt59Djx4QEl9C27PUa6pRClL3HNsd2OqtYCZuwZBpbVfKfXvgxwy8ly7vWqUI32ZL0PjahA2hx9HTyYoPQreIMCHYhBQ85Wt7X5vg0nez/sgLSM+s92MkBbyZwG6ms7V8KDFg1ODencohaFByWgbuQ0Fr2OKy1G8tCVZ5YLOYK6Yytr+ldS2p7l/avgQZuT0ZRs18UahG9tPzZ1uSX4NFM4no6yeDuVoCG2O5p+44yZx218DSfxfgDz4XjBftABZZUU38mVYl2qsSejel6g== 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=Oh36NGjJjyI3vUJONfLgZLsGEB00AjS6AvXWl0TTRJM=; b=GJ68ypqahXsyIAZo03qTOW8W46uBlKDve9ySIzs4U8DwVQFFOaIjIAxOPwAz6dAWrvfbjkUqZTQiaEaY14AVcReLABPV0YbMBQU6FvYavicXvfLY9NTMl8fyHbNuFAi0M/9JFp/+SaOaDW/V+UXVizgf2KUeOhe8Lntql4D7rDpqYhoqpPjllXrusXpgB51THR4SEIGA3eaRqGpOC6JUFR802oL46UqJT2Klf42p9r0wyR6Rw0V0x9OX+3MS7i19/JElmLEdQoo5QWnutbO5qNMiqwvuZrBRUiPINl+3Iies5aa/zXSX3rpkft/7D2S8JF6E+f4g/QYUR65viKjXEw== 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=Oh36NGjJjyI3vUJONfLgZLsGEB00AjS6AvXWl0TTRJM=; b=XeBpKYsCoI8xMbl29zkLZeeJDQVecs0GbwMs1GHbpdPWgDDrsbe8Y8ey5Xw3TKJn9JbBkuLq5UfallLNqnvLTykcHGY/7F69i9tvoGOyevOeSEo/FUOXfabeWq/wI8GEtLVLWX5XIMxy6DAqFxHDWLInAu9J1dofON2AxenQv60= Received: from CO6PR18MB3860.namprd18.prod.outlook.com (2603:10b6:5:34d::12) by CH0PR18MB4228.namprd18.prod.outlook.com (2603:10b6:610:bf::14) 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:10:02 +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:10:02 +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 3/9] trace: fix leak with regexp Thread-Topic: [EXT] [PATCH v2 3/9] trace: fix leak with regexp Thread-Index: AQHY19X0AmeBNWEaKkuQYz07FtjE/K4KhRCQ Date: Wed, 12 Oct 2022 09:10:02 +0000 Message-ID: References: <20220921120359.2201131-1-david.marchand@redhat.com> <20221004094418.196544-1-david.marchand@redhat.com> <20221004094418.196544-4-david.marchand@redhat.com> In-Reply-To: <20221004094418.196544-4-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?ZTM1Ylxtc2dzXG1zZy1hNWU5OGE5MC00YTBkLTExZWQtYjZiZS05NGU2Zjc5?= =?us-ascii?Q?MjY4OTBcYW1lLXRlc3RcYTVlOThhOTItNGEwZC0xMWVkLWI2YmUtOTRlNmY3?= =?us-ascii?Q?OTI2ODkwYm9keS50eHQiIHN6PSIxNTQwIiB0PSIxMzMxMDAzOTQwMDcxMjg1?= =?us-ascii?Q?MjEiIGg9Ikh0bmI2YzJUK0lGRWVMalZPMUwySnZwWUwvaz0iIGlkPSIiIGJs?= =?us-ascii?Q?P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WFRQnVBSFVBY3dBQUFBQUFBQUFBQUFBQUFBQUFB?= =?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_|CH0PR18MB4228:EE_ x-ms-office365-filtering-correlation-id: 5b94aa88-5372-434d-14d9-08daac318bcb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +BY+yiQLRvl4i3GJG4GW4qo8GOaYyfBO8UrKX/4wqr1mmhOrg6Hn4QuTQv4XKX63eHCl/8j9/v7IXVQ/msZC3YDbdcA5FFJj7YGM4bdbblSdtiiWfzbHns2+fap9qBt2ZE5JDdg6qFuIlP3XZIyyCPCVMPP9SUlBGVDKW/eXzgT2deiYNmlelk/BlRz/DXKG4SIzb+/2Y0yoZguz93girqZHEgwfpEKz3lWX2LnpqoZa/uNmGfMXrDSK5RXyW5yCBtcGOiusoRIvRYhD4FSHWx9AZyaSSm3iatJNU4rAcJu1G4DDMnm8K8ad5oFoYSmW5yp2j9te9QsVw8T3vYuNpVzgytmHyJBG8e32ZtVbKqsOmTcq4hTcSQRca43tBR6SzrRfVi2Gh16T8MOX8bVqO+V6UtedUAkkeaggsGBKugeFsjiIEL4PdVNjOaHh1AbwsnNuVnY3ns6MnexIrVJAVDVDp2rSsNbzjpSX3zAflOjn5exdk74r8vNHqSBQVBIqrRPMuXHKjeDoYzJGhfE/z33uyf/lTuAoOi8CXpRCT9bBEgrg0RzJrhjMSklXRyP1mgs4KPfTTfOkhpWYQbyJG4YbD8KAgnWFNeECXA0/zreX7bJ+ibQZHeZO1F2346zTSJjtH9Bu5g+E6lp+sVrHsNlM4CmOuYozI4ZAytVs3F8XntfwaRVryPqM70XHsVa1D45V7pQftEwyFnDifcZqMoOF9IbpsqtViU5W0Ohe46eZTlXhnOr+AkarCjg/Hu831Aj9h5W/uXOPHNSdW9Uq9w== 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)(39860400002)(346002)(366004)(136003)(376002)(396003)(451199015)(38100700002)(66556008)(122000001)(54906003)(76116006)(4326008)(41300700001)(8936002)(64756008)(66946007)(66476007)(66446008)(38070700005)(33656002)(86362001)(83380400001)(110136005)(53546011)(186003)(6506007)(7696005)(71200400001)(8676002)(52536014)(55016003)(26005)(9686003)(478600001)(5660300002)(2906002)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NlT8eIIAZ2tQ8rj+jny7Z9SVfOoytI/kzYF9STVz5JuwchPG7w+c0eai4ipf?= =?us-ascii?Q?phX7CaSpYjTCC9jWVWv9zdDZ6ERbzFDAgJT4xVI2XIMA2UBimpvMwKXZIdCU?= =?us-ascii?Q?TKB7vjU5Xy9QP701DNnif0WYm73BQV68ZGEaSaL7E6GaCeWQ5y9Vz2MzdKPL?= =?us-ascii?Q?uTZ7h4f0l3kbtjGXvIpJi17Bd8eWRnOiO4rMX04PrGvonDydx5OtOqNsPs8n?= =?us-ascii?Q?/beTWUt5oWHAMoQgZZfRkhWxZyBANrb0ugFJRfO0OhpE12pADUaxD2kHtmoN?= =?us-ascii?Q?V7JJFbG06m3OVY286FJer/+d6XsxqGcEdpONDzeo9XcOw2EytQGIoTbxDXJK?= =?us-ascii?Q?J/dzrShRRmN+bNg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?Q?kGKm/lm/jqRkQaCN5IXkIoTysu2uJvwHvHlEtzSJrrnILjfVcqc0FGXgCLtN?= =?us-ascii?Q?KDdDHqWbOod5FaTjWOC3N4ry5n1wkgM+84YcEdTyv5f3j9EoOmj6svRYslq/?= =?us-ascii?Q?Ha1pA+Cr3jOufmH9kDTjrgkWWrGFVXhmD2ZGpBDotgybD7f43Fdek+pPmVGc?= =?us-ascii?Q?aeU0twg21m0wtSD7spdArNiGd4UMYrqnxSyWAvCXeyjzjBL4dLMJl74H6Wkd?= =?us-ascii?Q?n7GL6xvmNidIv2EnANCgeJzIdZp8eDp2pTAE5wnB6crdMGdGE3kddcTuJnc8?= =?us-ascii?Q?iUUx14D22QQamQlXDuM8+35ptNfsoxpRkDHVm4LF?= 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: 5b94aa88-5372-434d-14d9-08daac318bcb X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2022 09:10:02.4907 (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: M5OWTPnSSxmsbIBOo/g9SySBc0e1QVNhax5fXhtifh8YFY/P3gTI1/c/neISR19rPApsH3W3nRZOSbOO7cOhYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR18MB4228 X-Proofpoint-GUID: mgNOVes-fctfn8Fo9TeE-iGHudMZjx4G X-Proofpoint-ORIG-GUID: mgNOVes-fctfn8Fo9TeE-iGHudMZjx4G 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: 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: 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 3/9] trace: fix leak with regexp >=20 > External Email >=20 > ---------------------------------------------------------------------- > The precompiled buffer initialised in regcomp must be freed before leavin= g > rte_trace_regexp. >=20 > Fixes: 84c4fae4628f ("trace: implement operation APIs") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > --- > Changes since v1: > - split patch in two, keeping only the backportable fix as patch 3, >=20 > --- > lib/eal/common/eal_common_trace.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 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 1b86f5d2d2..1db11e3e14 100644 > --- a/lib/eal/common/eal_common_trace.c > +++ b/lib/eal/common/eal_common_trace.c > @@ -218,8 +218,10 @@ rte_trace_regexp(const char *regex, bool enable) > rc =3D rte_trace_point_disable(tp->handle); > found =3D 1; > } > - if (rc < 0) > - return rc; > + if (rc < 0) { > + found =3D 0; > + break; > + } > } > regfree(&r); >=20 > -- > 2.37.3