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 C4DEA427E0; Mon, 20 Mar 2023 10:34:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65BCC42D35; Mon, 20 Mar 2023 10:33:59 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7619A40A80 for ; Mon, 20 Mar 2023 10:33:17 +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 32JMKgQ1024579; Mon, 20 Mar 2023 02:33:15 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2108.outbound.protection.outlook.com [104.47.58.108]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pdanrwgrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Mar 2023 02:33:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ln3hPlPvABzBvUI27kzhjKo2xOfg5KOutACNB7pHfZMGwhvysB8iNcwofqAqYkVQvpIWmfb4U89v9N6QxyifAVSj8NWrBUkSN59BW0ik03Xc7AZsWumTKd6pVLaqikmSld2GXp9Q282m74vOdw5b9FoH8OYRG5MG/0Pv/3yDzj63so2p1oqdwz5oPEDzwfYDlHFFCUfAwAXolh5MECvmRq/XAPm2hfv8Lvu9skV9900vO3xeVof5W+Pa0REvH3Pfx7HPRVrrS7/IB1+scYd93NiAGAOS3OcsZCLLsxJdqYCHuns8rA0goGsPAqdFbV0eZOnBMrrJJp0ade58nrIERQ== 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=onSuU35iuOqSlvEtQ9Pd2mMtZeczMeWOe6HI51zhX9s=; b=FoBMdxdJBssqGfiLqvK6+VqeWyz9Ba36dUGEFnATZn8LR2leZy/a4HCGD1mjyJsm+5vLmwg9vRacjiwa+ztyorZCqg/DmHBcXrhb1oTBHvGBPr6UhCtfy8Iimd7TcH0dRjCc0wB1Zmm2z9VWbNBc9yi96SbLTmxpEGHCU3Qjm4D/hi8b9FZkRmLMYdQnd/J+V7g6UFzNwzbPYHA6r1XfMqOc607gHMfqzi2y7C6I4FZnlt5jii/C+JAX9KcFYoCntzCNRXAoybnrAgyHTUNOal3VBnDH3AO4G7+po3jxfC7CUXIe51mTTbx/IXKdesLauuVfYxbSjxUhgciyD+FqYA== 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=onSuU35iuOqSlvEtQ9Pd2mMtZeczMeWOe6HI51zhX9s=; b=OyGwUBkcdwNWgACOi2KCM8UU/JxaympaHS/lxKFcZc5OhXjcxWRWSdoH3ad5U1M8W309NHwa60mO5SyXRgUPbra7o+Ib9xh0RcHmH3EgOJa55onN/jziAjHcgW5HKhu1WZsf6p6cGt4sHbIuggFkFMOklHF3bSPD+8PVdID6rGE= Received: from PH0PR18MB4473.namprd18.prod.outlook.com (2603:10b6:510:d4::18) by CO6PR18MB4435.namprd18.prod.outlook.com (2603:10b6:5:355::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 09:33:07 +0000 Received: from PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::ce3f:9e97:ad8a:7340]) by PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::ce3f:9e97:ad8a:7340%5]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 09:33:11 +0000 From: Liron Himi To: Chengwen Feng , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , Tomasz Duszynski , Jacek Siuda CC: "dev@dpdk.org" , Liron Himi Subject: RE: [EXT] [PATCH v2 23/44] net/mvpp2: fix segment fault when parse devargs Thread-Topic: [EXT] [PATCH v2 23/44] net/mvpp2: fix segment fault when parse devargs Thread-Index: AQHZWw5P2bPBm6P0jUCXZnJ7nTV+W68DZ9Ig Date: Mon, 20 Mar 2023 09:33:11 +0000 Message-ID: References: <20230314124813.39521-1-fengchengwen@huawei.com> <20230320092110.37295-1-fengchengwen@huawei.com> <20230320092110.37295-24-fengchengwen@huawei.com> In-Reply-To: <20230320092110.37295-24-fengchengwen@huawei.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcbGlyb25oXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctMzk2ZTNjMzQtYzcwMi0xMWVkLTg0ZmYtYTg2ZGFh?= =?us-ascii?Q?ODUxMWI4XGFtZS10ZXN0XDM5NmUzYzM2LWM3MDItMTFlZC04NGZmLWE4NmRh?= =?us-ascii?Q?YTg1MTFiOGJvZHkudHh0IiBzej0iMjMzNyIgdD0iMTMzMjM3NzgzODk1OTUw?= =?us-ascii?Q?NDMzIiBoPSJZNXZPVUVGT1Y5d255VHBm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=?us-ascii?Q?ZUFBQUFiUUJoQUhJQWRnQmxBR3dBYkFCZkFIQUFjZ0J2QUdvQVpRQmpBSFFB?= =?us-ascii?Q?WHdCakFHOEFaQUJsQUhNQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBSjRBQUFCdEFHRUFjZ0Iy?= =?us-ascii?Q?QUdVQWJBQnNBRjhBZEFCbEFISUFiUUJwQUc0QWRRQnpBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUVB?= =?us-ascii?Q?QUFBQUFBQUFBZ0FBQUFBQSIvPjwvbWV0YT4=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4473:EE_|CO6PR18MB4435:EE_ x-ms-office365-filtering-correlation-id: 956b037c-182e-4f52-da46-08db29261f72 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ok8EB8FNJfFjEQX1JaS+ax1/KnddIMycra6pc3W/ixOB3gttvM8jQH5yFVFVbKmIwumTcKaH5JLyvRRk1iapiGRsQ7Ryz92VdU7gxFFLXdWDq+vBIv38stiPgdCDLviH1TRN6pTjPEuUycXnkbB0mQ8H4yvbBJwDB2LxxtqmOL5OjuAYsyEH1D6MkMe3Nb0HySmXRmU3MKh6GUQjzJUd+olmeh6UfkRFkrA0qJL7CpBRom5a6U6kk65uEP6mc4e90gAITYq6mBIFWap9+Xm1FGaqlm1fTtSSmz8ZW0IbeuTmJzRz8peOQ6bWoErGbVQoo/WwR9Hs+0S+nePR9jQsLttLlii89Rhj/TRWtG8iEf3Of0oj63i/JD8aVl8mROSDNbw9Uu1rdI6VeaVbR3m5czuDD/aSy8i4/BtVAq/ntEb/5j0/m1wbAj5+C6qiFSUbKIM5bDoO7VFDnb2dbrw9nmLvM0zdba7WAY4Dmro9gMXF2us5YzMzk2mvPRwfdtq4Mf6HIAPya9yyBmNc8UTdG7/WybSCxM5Z77u9TmVNukyXIU5mqeBNIsGsPSY8suhoKG79yKCgHn8vduP1osBGRvm+IG2UPhiz5+a8xoW0Z59B8wfWJhK5dIdYiNvnL0Es0ZA+qb6n/jYdYmSd8dezAh/HNLfhd8uEhKkMhei7HNVIRwVCpUfnUHdvW/0hYGfr+yUx7yw/AnKotcqg/drMHg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4473.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(396003)(39860400002)(366004)(376002)(136003)(451199018)(52536014)(9686003)(5660300002)(8936002)(41300700001)(38070700005)(6506007)(186003)(71200400001)(478600001)(2906002)(26005)(83380400001)(4326008)(38100700002)(8676002)(122000001)(33656002)(110136005)(316002)(55016003)(54906003)(86362001)(7696005)(53546011)(76116006)(107886003)(66446008)(66476007)(64756008)(66556008)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XxpudzPkgnxm+Ewuh7cqTvRlx5j2U78be4biYZVUgwfI/yzXJOZtuUPwaCeS?= =?us-ascii?Q?DOIMUaZnktP3U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wwLkUTAK?= =?us-ascii?Q?W+aUiCbCFKkNiAWldEw4BWrtABSlGul6rkpZRjwPQnLTW6llELbQ7gdA5Gf5?= =?us-ascii?Q?TnnrS4VsedxxRiY9FFCWF4HBK7k7MMmHBkQt01dwB6T5nADjUpyOBiW+31yn?= =?us-ascii?Q?lGYzqQVLz+4pjBRdc9aTFNolgQ6Svqft594Pa2F7sopKmiA0mu2ejTDHDr/z?= =?us-ascii?Q?iK5VtSxQZzFCr+SxKxOpbgm4PxPWUDMTN2MeHyYe61UBLPO8aKqqXxcit+3M?= =?us-ascii?Q?Swsv0ITr5D3F8r4kay+6MYQ0rszvOnceyVSHstApyopsIzFraRugRQdqkI/c?= =?us-ascii?Q?0/5ckgqKX3hjeKuYjosnPPiMgByEJnnv1WhfoV1PILJ497IcToIVkSIbe0yk?= =?us-ascii?Q?enAHDMrycKVuUHr/ojc2k78AwHoNlnIWtwPjoXPzjjSnu/q0mBzdqIaNSA4f?= =?us-ascii?Q?RUYnvtXzTBiM5tEny6YbtWFrGQVCOnjBfDnQZlM0M4+KkX9AugsxXWZ6bbH4?= =?us-ascii?Q?puk0bQynJ6dXOr3FIYwpBYfr7X5c+3kX6MdvXOBl5yf4b7OQXz6S6ah6WgF5?= =?us-ascii?Q?dmmnEDOIOZRg1B1BtbD4SXzyZgLlWMvFMIVEXA4Pwv7SAcE0VKSGTD1/6Zke?= =?us-ascii?Q?R33b38Uj9+FF4fZ36nyzn39B6Emw/Z4mPP93jA91?= 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: PH0PR18MB4473.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 956b037c-182e-4f52-da46-08db29261f72 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2023 09:33:11.6017 (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: lEaWn+5OLiO1x2JlQjSXclKoIk28AD83bjUWYDKxiO864C8zOgCXPav+l8ZJfcAZA89Tgb/v9VgKdPH3ZGojYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4435 X-Proofpoint-ORIG-GUID: gUOnPCP2MkC3DYUrn1kZnKLm_16gqKxZ X-Proofpoint-GUID: gUOnPCP2MkC3DYUrn1kZnKLm_16gqKxZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-20_06,2023-03-16_02,2023-02-09_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 Acked-by: Liron Himi -----Original Message----- From: Chengwen Feng =20 Sent: Monday, 20 March 2023 11:21 To: thomas@monjalon.net; ferruh.yigit@amd.com; Liron Himi ; Tomasz Duszynski ; Jacek Siuda Cc: dev@dpdk.org Subject: [EXT] [PATCH v2 23/44] net/mvpp2: fix segment fault when parse dev= args External Email ---------------------------------------------------------------------- The rte_kvargs_process() was used to parse KV pairs, it also supports to pa= rse 'only keys' (e.g. socket_id) type. And the callback function parameter = 'value' is NULL when parsed 'only keys'. This patch fixes segment fault when parse input args with 'only keys'. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Fixes: c2b5ae61c07e ("net/mvpp2: support DSA mode") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng --- drivers/net/mvpp2/mrvl_ethdev.c | 3 +++ drivers/net/mvpp2/mrvl_qos.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethde= v.c index 89c83f1c1f..a631d6d9cc 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -3180,6 +3180,9 @@ mrvl_get_ifnames(const char *key __rte_unused, const = char *value, { struct mrvl_ifnames *ifnames =3D extra_args; =20 + if (value =3D=3D NULL) + return -EINVAL; + ifnames->names[ifnames->idx++] =3D value; =20 return 0; diff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c in= dex f43217bc58..f217a8d71a 100644 --- a/drivers/net/mvpp2/mrvl_qos.c +++ b/drivers/net/mvpp2/mrvl_qos.c @@ -656,12 +656,16 @@ int mrvl_get_cfg(const char *key __rte_unused, const char *path, void *extra_a= rgs) { struct mrvl_cfg **cfg =3D extra_args; - struct rte_cfgfile *file =3D rte_cfgfile_load(path, 0); + struct rte_cfgfile *file; uint32_t val; int n, i, ret; const char *entry; char sec_name[32]; =20 + if (path =3D=3D NULL) + return -EINVAL; + + file =3D rte_cfgfile_load(path, 0); if (file =3D=3D NULL) { MRVL_LOG(ERR, "Cannot load configuration %s\n", path); return -1; -- 2.17.1