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 B0EE543335; Wed, 15 Nov 2023 08:17:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7D67F40261; Wed, 15 Nov 2023 08:17:36 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 96425400EF for ; Wed, 15 Nov 2023 08:17:34 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AF2VfkZ021285; Tue, 14 Nov 2023 23:17:33 -0800 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ucn9b8tqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Nov 2023 23:17:33 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuQprpcgM803drOFBRbX6di8eIIMlK4kdi8MSdd+jCsBFaeo3hEX+01Z0pkz595MY2cAxWqV7/y6KZnuKjrLLJIUXCx6MvT4D0+mWvytkkXEhdMEQxasstcv/H2DiVa/wNtEarN/5lNoTg0DDu7oHmOdqXut447J90QJlOQ4OX3QEQRMB0ugz9cGvIe+aMO9tnWJlHmasDg3GcX6UbPgSyWucsfWCwzYDgXTdhawyed62jAME2sueCtHxax3TRRJt8oVMecqBfYojMwVkeqQP81nImFKOdnxoIfiB6eo2kt3J8fgd9DTMsEcmQpwmzm6g3QYiiNzhkabo4wabJKHQA== 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=KKTeIxpwAOIs1PoZa0Fnzdum7y/+6N5fd1Irup795Cg=; b=djUWhUPt1uMuVFLgWZrgiAHPVEw2BOQ7MNvHW+TL9TIkyYXeH1QIhhG9zlEJNBUrCLvVBm1iVVvCpzi+RuKK4q4D0ymOmKeZtLCUMuymiLqqRoBpHm3Zd1aq4j02TDp9CPHXIw7NR4vETRvO+vuCA8XZ8vS4IIDtlMWAsbkXAVUi/pYlHAzNFQWmlNlxHmutccxcDNF4Ud1RwfiwqIovUlLWOWSEwfr6tBDwPSj1Voi4oq3j0+w3kcwzzt7RGwB2NSwX7pGFo37SnziHuOOMFpyA5YAEm6gqjGys3LgfyD1G4KodmbuPf+cbWu04g3AFmkzSU/Mes6CHvY1f/IWzCw== 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=KKTeIxpwAOIs1PoZa0Fnzdum7y/+6N5fd1Irup795Cg=; b=NkZvm3sDGgKr66b8X1xO/8Fi0OeNW1bWljWLWy1rN1ZDqwUiQvS2mhldd1HA8cNnaMG559Z9d1A/usZh3AUD9nXJvmd6nGKbKQ1jk9+TVPoC3/xGwdfLKebZqJ69ZLfbAqhPzu4xCcfvkMAvsRR54yH8s1rPNjoKaLuSxrc/m4g= Received: from PH0PR18MB5167.namprd18.prod.outlook.com (2603:10b6:510:168::7) by PH7PR18MB5307.namprd18.prod.outlook.com (2603:10b6:510:24a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.17; Wed, 15 Nov 2023 07:17:31 +0000 Received: from PH0PR18MB5167.namprd18.prod.outlook.com ([fe80::5022:8b41:3d21:5fd7]) by PH0PR18MB5167.namprd18.prod.outlook.com ([fe80::5022:8b41:3d21:5fd7%4]) with mapi id 15.20.6977.029; Wed, 15 Nov 2023 07:17:31 +0000 From: Amit Prakash Shukla To: Jie Hai , "dev@dpdk.org" , Anatoly Burakov CC: "lihuisong@huawei.com" , "fengchengwen@huawei.com" Subject: RE: [EXT] [PATCH v3 10/22] eal: replace strtok with reentrant version Thread-Topic: [EXT] [PATCH v3 10/22] eal: replace strtok with reentrant version Thread-Index: AQHaFuseXiJvP5dDDkebWENz0hFShbB697CA Date: Wed, 15 Nov 2023 07:17:30 +0000 Message-ID: References: <20231113104550.2138654-1-haijie1@huawei.com> <20231114110006.91148-1-haijie1@huawei.com> <20231114110006.91148-11-haijie1@huawei.com> In-Reply-To: <20231114110006.91148-11-haijie1@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYW1pdHByYWth?= =?us-ascii?Q?c2hzXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctMDcyY2UwMmItODM4Ny0xMWVlLWI2ZTEt?= =?us-ascii?Q?MWNjMTBjNDc0ZGNlXGFtZS10ZXN0XDA3MmNlMDJjLTgzODctMTFlZS1iNmUx?= =?us-ascii?Q?LTFjYzEwYzQ3NGRjZWJvZHkudHh0IiBzej0iNDg3OCIgdD0iMTMzNDQ1MDYy?= =?us-ascii?Q?NDcwNzMwNjY5IiBoPSJhWk9RUTYvcmpDU0g5aGN2N2NaRVZDeWM1aDg9IiBp?= =?us-ascii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RUFjZ0IyQUdV?= =?us-ascii?Q?QWJBQnNBRjhBZHdCdkFISUFaQUFBQUE9PSIvPjwvbWV0YT4=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB5167:EE_|PH7PR18MB5307:EE_ x-ms-office365-filtering-correlation-id: 0332d469-733b-4c2f-a405-08dbe5aaee6d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eQFIV/n1ZMmdN/tLe8r4EBPqzI0qBah6bSD6PmE+zBGsmB2Spy7aUjnnTYvtiLEVPQFN3r5ri29jVVhe1ee3ClsXsqg68a3QOXiElERPItxNHxJS2vEDU9xDFtavW457EiwhTCi6J+M70jh+ssAJA2p/15xdrIb2WChpckSxMRp7eXAcB+7kADY5fTW77d2CAFbPeLKoDqJkZ9Ve4I3JOUU6d4k5MdSbJiAiR6qLI7E/rx5X/64PukczXjnw80aIbm9VUf9h4BK6mmaJswEzM2nK2WzC7gDolijDGN0FaO9/PictQ2rjg3AAVGK3XzSwNnOzuzGn2faUOnBR7mCKb5HtF0yDYfmH5Ebq/EvQ4aKJQzwNNMpgQRFzDkhMch3k1WXd9TsmU6wpJqI0qc0+oGYZy4kW1C4ZZw1zeWab5DLiT4ldUJoxWfc+tJcAQ5uyKOzD749dNZIOvB9hrxJjsl1psYGBHJECCtD6/Bzpa3JD6hWxA9kkrvEUmoxg7AwTilGzqurWJ+G960XZNQ+LoAzQcSm+XaAx6WokrUo8dHCM/cujdQvdtqi3yHcOrzYNCkQOkiwKO0lJfJR4HCMh+ORmhUOq4OSSdlY55XkGr0ngcZP9ZR73Fa1jhj0lfa9il9ovKVgnfdhHV0qHQ1rYChnn94lSgDBoe4IZ41l+HuI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB5167.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(376002)(366004)(346002)(39860400002)(230173577357003)(230273577357003)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(7696005)(6506007)(52536014)(9686003)(53546011)(38070700009)(2906002)(38100700002)(122000001)(33656002)(83380400001)(41300700001)(86362001)(5660300002)(478600001)(316002)(64756008)(76116006)(66556008)(66476007)(54906003)(66946007)(55016003)(66446008)(110136005)(4326008)(8676002)(8936002)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CsQSWpVqsS7TVFBI3CrIqsQ13lRSLMKBsF0XkSkYG+Ftr6zjdTIOSryPyPwb?= =?us-ascii?Q?rR/GEwtk/pNP72tGOPCd6QSxpd00pbwT0DbkR3eeQ4SOW36YkachqJ2QaoD3?= =?us-ascii?Q?DNHu/sqHGVVuAbn2K7ACmNr5AnMebfeFc/3SsmQ+KKFVoY4rk8jqyuzyrPfL?= =?us-ascii?Q?ENyxqpm68Q+gQ92a6RKwaMNzKuqMeUolrWAavZdG4y2+cd5J5YWZZ7iM5U4L?= =?us-ascii?Q?Za30zh3jq9m/RWP/2S2kyPKgnLue6Unn2lzVQHE7yyulxiMNhnVQM7XbWYy/?= =?us-ascii?Q?5FGGiVu1rqGbL1zf2Snu7WlhS/Z5OVei6kktR3QmRAZEv+dW+CH5slcanjps?= =?us-ascii?Q?bBMreCCXrRVT+19nmeM05PsCcn75o/Th02O7wVB763+hyhDz5Q7JPpG5g9IE?= =?us-ascii?Q?MqiU6nmSEhnKd46gUXWQ4rTvsdcOMiGkuSsz1ufo4/cs46XYr5h++mQ/eVyx?= =?us-ascii?Q?oWzyXBq9N2dbHQA3p9JVHDrWhhP2KLfQ7ijU1gDzLdDcqwX/5vERJ8949Cf5?= =?us-ascii?Q?4HQoDG2M80Jgo1g8dtUZBKtlNlCHZ0D2MIEHIbTggT0XaRW35mCVKG/wgtW3?= =?us-ascii?Q?LotxlusvRa7JNp8qwOs6nF72HzedaJ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?6UbKQeCQNTCjGJjSktvTXfzaxcz38CK71QwrKD/uwzgz2HldHqzoXOkkeZ8d?= =?us-ascii?Q?htklnEku1L3o8xjN5lUm4518sVmn+chXOtUgQRnfJk1lgQzqbNxo4HWl+A0Y?= =?us-ascii?Q?j68VSfXML6FKCJmoyh9ZxAngW1YI8pNl1KoML7yqVVTE?= 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: PH0PR18MB5167.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0332d469-733b-4c2f-a405-08dbe5aaee6d X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2023 07:17:31.0010 (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: UClpxn1Ibnquhd6UqnkahOJXFZLWP/wbAmfOEETlL8bNROkRseS4R4tEWPAt5WnmuuTJiPezzrSnxlzx1yffqDuD7cya53dYWZhMpt0Up00= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5307 X-Proofpoint-GUID: Ni3A_ynrSSe0Ixjgv1rzWQonS-oV1NEH X-Proofpoint-ORIG-GUID: Ni3A_ynrSSe0Ixjgv1rzWQonS-oV1NEH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_05,2023-11-14_01,2023-05-22_02 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: Jie Hai > Sent: Tuesday, November 14, 2023 4:30 PM > To: dev@dpdk.org; Anatoly Burakov ; Amit > Prakash Shukla > Cc: haijie1@huawei.com; lihuisong@huawei.com; > fengchengwen@huawei.com > Subject: [EXT] [PATCH v3 10/22] eal: replace strtok with reentrant versio= n >=20 > External Email >=20 > ---------------------------------------------------------------------- > Multiple threads calling the same function may cause condition race issue= s, > which often leads to abnormal behavior and can cause more serious > vulnerabilities such as abnormal termination, denial of service, and > compromised data integrity. >=20 > The strtok() is non-reentrant, it is better to replace it with a reentran= t > version. >=20 > Fixes: 2054f31a1fcd ("mem: add memseg info in telemetry") > Cc: stable@dpdk.org >=20 > Signed-off-by: Jie Hai > Acked-by: Chengwen Feng > --- > lib/eal/common/eal_common_memory.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/lib/eal/common/eal_common_memory.c > b/lib/eal/common/eal_common_memory.c > index d9433db62345..a05eb0442b0b 100644 > --- a/lib/eal/common/eal_common_memory.c > +++ b/lib/eal/common/eal_common_memory.c > @@ -1273,22 +1273,22 @@ parse_params(const char *params, uint32_t > *vals, size_t n_vals) > char dlim[2] =3D ","; > char *params_args; > size_t count =3D 0; > - char *token; > + char *token, *sp =3D NULL; >=20 > if (vals =3D=3D NULL || params =3D=3D NULL || strlen(params) =3D=3D 0) > return -1; >=20 > - /* strtok expects char * and param is const char *. Hence on using > + /* strtok_r expects char * and param is const char *. Hence on using > * params as "const char *" compiler throws warning. > */ > params_args =3D strdup(params); > if (params_args =3D=3D NULL) > return -1; >=20 > - token =3D strtok(params_args, dlim); > + token =3D strtok_r(params_args, dlim, &sp); > while (token && isdigit(*token) && count < n_vals) { > vals[count++] =3D strtoul(token, NULL, 10); > - token =3D strtok(NULL, dlim); > + token =3D strtok_r(NULL, dlim, &sp); > } >=20 > free(params_args); > -- > 2.30.0 Acked-by: Amit Prakash Shukla