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 E081E427E0; Mon, 20 Mar 2023 10:34:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C59342D13; Mon, 20 Mar 2023 10:34:00 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id BAD16406BC for ; Mon, 20 Mar 2023 10:33:29 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32K99as1027058; Mon, 20 Mar 2023 02:33:27 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2102.outbound.protection.outlook.com [104.47.58.102]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3pdctp48nj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Mar 2023 02:33:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NIvzeZOQpNxC3T9kKPYeusBKjvzCDAKjpZz3tIWioQp5zZQBHNpAOZnozqWv/7QX9I48LGnPUAvW1+cHcE8Djn0436lynDjW0Pz203n5vMGQ7u9/EgFCNp+hWCK6lM9p4IeM+9b1DrpdEmDLU/B+tNYz5gqzSXXtDuiVawYyMihwK62SICJGfWNlvEWi24icQSSJ/XQueOEMMjZRDq2eOmFUtjHYbVTf5OmN4b4j9vvg3D0NqGHmswz1kGL6FAuXTl6vA174rZ0+9N7W+cN/O3uRZxE8NR71k3DCJ3msAF91rIsWjypzq8DEitt73CeoT2KjM/KCV8LeJ3H++zhR+Q== 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=CFmH9ofBcQLNtkNDeaj0fOi1IlsXjHu7QwdxbYa7Rns=; b=J5TqwPYM0217uM9rqDmhjycciiVdHk47KR2oo+H3s3YAOZF1zPLGKG1WbmUpXIBU0ZYnarhd023lh6sgEn8Ldt+VtK8BEX1xNnt1xrphAqpY1Wa3+EB0deVMa15sTreTN7pPAyu0K+nz1UMIuSevQpsGw1NVbvs0dj3JSTqUVte3NYrZa1FLyb900fVZv8cKdDCX8ydYHmRiUTVqQ8DRc3zBAtIHpBr7XH7JeHDkSdh76M2mkqQGZ2olXIRbAoAJazuheOZmtWjy7GkB2D4YIYiH/qFHvCIfrgOupIEqIBj0slypcqK9GPF8ac0DGC6k6yHPfAdN9DxpveXhFRywEg== 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=CFmH9ofBcQLNtkNDeaj0fOi1IlsXjHu7QwdxbYa7Rns=; b=EIZlDttfDaeEWpMz4tSUbdTkabsPE/5x/omd1sZgKCJaTjhX3RTFVdQJEn+avnKGv0bORfccI4u5E/YPuFAJj+jUKSlB0rQgNkHVwEs6Zp9oomkCOnMl1uZjil4OkqqwxyFdRb4dSpthnJD8EUYRsBst6BCQ6AtMSI2othpBbhY= 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:21 +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:25 +0000 From: Liron Himi To: Chengwen Feng , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , Zyta Szpak , Dmitri Epshtein , Natalie Samsonov , Andrzej Ostruszka , Yelena Krivosheev CC: "dev@dpdk.org" , Liron Himi Subject: RE: [EXT] [PATCH v2 22/44] net/mvneta: fix segment fault when parse devargs Thread-Topic: [EXT] [PATCH v2 22/44] net/mvneta: fix segment fault when parse devargs Thread-Index: AQHZWw5MN100Nu5aG0efrMGboNkQ5q8DZ91Q Date: Mon, 20 Mar 2023 09:33:25 +0000 Message-ID: References: <20230314124813.39521-1-fengchengwen@huawei.com> <20230320092110.37295-1-fengchengwen@huawei.com> <20230320092110.37295-23-fengchengwen@huawei.com> In-Reply-To: <20230320092110.37295-23-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?OWUzNWJcbXNnc1xtc2ctM2ZjZDU3Y2QtYzcwMi0xMWVkLTg0ZmYtYTg2ZGFh?= =?us-ascii?Q?ODUxMWI4XGFtZS10ZXN0XDNmY2Q1N2NmLWM3MDItMTFlZC04NGZmLWE4NmRh?= =?us-ascii?Q?YTg1MTFiOGJvZHkudHh0IiBzej0iMTY3MSIgdD0iMTMzMjM3Nzg0MDE5MjIz?= =?us-ascii?Q?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BUUFBQUFBQUFBQUNBQUFBQUFD?= =?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: adf4c201-a883-48d7-00c2-08db292627a5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DGzCDJeE9csj6vu4qq0huW/CE3+gpCT6xH1DvIsSjMs4O6ccutujBZYblc/UuofX9904M0OmmwpoyyuMTdfqFrur2Tsvr8EWWs+ts7VtPUh8ZswtvyxrHt5i8pGLDsYDCK/u9zpGM+7t5B4zD5W/JP28byibH4X3K0SFMdohvABsqvJSy+Rui9J3+LRoWUWFTp/n+2nUE5kLgUfPNdvv7FHoGOHvYcVroAEaLjydl/t0jux5bG5IezCYPaDPyPc/o8b3TeNxkrG9yzpMZvcbyf7IK9Gy51O6dzRfC9JM3UJqY5qh7rVsQ5POzsTZzhbrfn5PUj3qsI3DfFoG3bolT0AIXgm87L8lvfgth+u/DCV49pAEYdtbb6uHtGEsxIzXrwvzFRM2y9LUwhrxgO9N/4N0sArMimJL9s96Hlg9DtnXsqsBoje3W71lnLmX2937d471S6ferhep7mFVy6AaLc4yXR4I7b/NCb81wZ3nWAMtg/uIZYuOkpsP2dZSRePgMfvXqslk6fW2hniDNX2uaKJ5AxzLJvtigsYRPkokpjQGZ7xmbV33M7FX4/MllWYjRY7fX6OS0cGSzFGjbigUNW8MiAUCiXbPmlNJAlgaYxpI40nDkbgxdE4gSWe96rkC8rSH4MdLjbVcDcdPdQ0TyzGmv+DnpDqanymf+2MDiYlO11Yr7cIqT/WC+YVVYztajlvmrmz8uBO1v1tsKmLkxg== 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)(6636002)(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?MGPE8TBN6AqrFYM6zU8wpxl9K3Ky4Y+i1mNOOmEWqOWfmbg1zRR9CugMXIDu?= =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ChH75UjRtuhqIFNnXdR4gy0qEb3SOSMRcJF?= =?us-ascii?Q?4Gp1UhD56zT1V45Ake1TSgNlb2KyHhPFshG9syoKeMSPPoVUE+JgtcQpFGCB?= =?us-ascii?Q?FVq5wddcszthiIgoNGzceXwrQLblerL6/IWFjcP8hYlvvQa6XuqiYt5mbem0?= =?us-ascii?Q?wGSgxQRVrTC5sWNHyuLx4K6DIklOOZAnsnIhwf9T4TTnJSYL0UokRnLMGauD?= =?us-ascii?Q?ovBMqdc+jgCNmJgdf2qY8d5ZtxakS5BS5R0dxiW81jU2VB9nm0x/sA+01zFD?= =?us-ascii?Q?BvxxCRpLaY39IllLS+SqexAAruqrI2zsHFQkYuPitEamle70pg9ZGxgSj7uT?= =?us-ascii?Q?x0yssZvp3+FOo2uCmeAXdEapKvyfeckdyakLUtgKpX6TC+aXz3fV63dCdcZO?= =?us-ascii?Q?eTViqHgetBQUbjaO7XjSrGnEhYyMScDRi7A+t4AsoK+GksZByRuJrj9wdcLI?= =?us-ascii?Q?H4lFn2dZKs1USyruIARDaS2sGirq0zsNbAbcd2nfYMY5m3Oz1scxfHNkJC4l?= =?us-ascii?Q?UpKrVW8NlYbdpJHRzVNmkL/2EieTYecMIN4E02utjRuyE4ddBECX4K1xU1MV?= =?us-ascii?Q?t8SwHQrcSszv7hXYFeNl4w7wK9EP2TFby9hcVV7jSiVrpuRqDNrybo8FcAw1?= =?us-ascii?Q?iXpK+Wd1+9A7+F2otcr0ijKQrC+hAeIezmy2lEyE?= 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: adf4c201-a883-48d7-00c2-08db292627a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2023 09:33:25.3209 (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: CCizVRgLrEss5m7uRNSiHhGMYeJqe79JFxR4/HIhSoCyZq+Qnf+y97IWfZyI61AjW9zNpArhl6Dn6/fgE3ZxlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4435 X-Proofpoint-ORIG-GUID: vfgL4TieudAn5ww_kiR-a345PkqLD80S X-Proofpoint-GUID: vfgL4TieudAn5ww_kiR-a345PkqLD80S 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; Zyta Szpak = ; Liron Himi ; Dmitri Epshtein ; Nata= lie Samsonov ; Andrzej Ostruszka ; = Yelena Krivosheev Cc: dev@dpdk.org Subject: [EXT] [PATCH v2 22/44] net/mvneta: fix segment fault when parse de= vargs 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: 4ccc8d770d3b ("net/mvneta: add PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng --- drivers/net/mvneta/mvneta_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta= _ethdev.c index d7953ac7cb..babe825ff9 100644 --- a/drivers/net/mvneta/mvneta_ethdev.c +++ b/drivers/net/mvneta/mvneta_ethdev.c @@ -91,6 +91,9 @@ mvneta_ifnames_get(const char *key __rte_unused, const ch= ar *value, { struct mvneta_ifnames *ifnames =3D extra_args; =20 + if (value =3D=3D NULL) + return -EINVAL; + ifnames->names[ifnames->idx++] =3D value; =20 return 0; -- 2.17.1