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 60B3D427E1; Mon, 20 Mar 2023 12:58:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 520CE410F3; Mon, 20 Mar 2023 12:58:43 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id ABAF1406BC for ; Mon, 20 Mar 2023 12:58:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679313521; x=1710849521; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ZHymmGyehtiz6FJYmp0zgP4JWPlOas3xGn35mfJEx4w=; b=bEoAykSoIILP9FisGeYffd3OcbIE/ecPaButJuRLbXgZBynyu7pJP0iS 8lAQYRmROMOOdPwxJPCveQ6TJ1WG+YQN+RHcOM9DmnOvfTyFGNuv/rYZd z+PL6Go2oKuGjL1eKh0qPs3iEwYtBpIq2yPCAZnVsDYBk+rAaCpWVP9Ck sC9d2p6NLH2fP3F8TQTEg2xPT5jGoVOrPUkNtEMP0/SbucBv2nDTAXlWV d7GDkuPjry2gZP+47Voo4Cg2yb5GQ3n4fVmFEk1OJbluAJjT+i6z2KISA uKScm0qN+JFG9uoLWGw4pxJ5T2mCGrQxiDzAjZN9qpPdZXL8yFITAlLWb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="336145429" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="336145429" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 04:58:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="674355690" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="674355690" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP; 20 Mar 2023 04:58:12 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 20 Mar 2023 04:58:12 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 20 Mar 2023 04:58:12 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Mon, 20 Mar 2023 04:58:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbvKUkl0GC29LXgr1wE6usfd4dnfxNTqxTnmuXbmvcA0j+9aqBfsNqpDddSnHiCYFljc8bAMgXEaO4OaazvsJ33Ol02+EiG+VzTzpA3a4rlqEg1NA9bO+n9RrF3zNQVUbwNnhtzO8z7VgYrROvlAU9tkAoIRnEGhb3+UoPzp4OCTLdtLuC/+kS26jqhXb1UYdeWA05p5SK85m055ZT1KMXiCpdqWiDKNSm5Rv+pgHm7fb9KZ2GUEHl/nx7RCAQEnA4o5ojOAOeoIjKQsZdv9t9t5QPIOMPBOqzwSto5dVEM6Bxa0IOlp5pI9ZeBt3WVUXGN7qGz4XPYQsWDfZx5yZQ== 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=ZHymmGyehtiz6FJYmp0zgP4JWPlOas3xGn35mfJEx4w=; b=iYk3fmFUNiwPpgWNSUqOep1J9T6xgxOfQG+qqvK6ar5QgFu2KEDa3K1Rgf620AXKN9knWZ5K/CMgvWmJ9hxhnKepnBfoo4D76pMpowoManXcV96phw7EC+lwhuA5CG2Lvi9CWbqMBifzHyn9L7xSVBIrSr25rhmbDs2ot4LQsAdj5zKnbJCnAXpHX+n8g9Jrvu+9X0P50elx0e8Vai65ciNDSx0cXwBjSOxR6bVeItwbPSZaMNQbqXW6vVmRZC4zMovJMNVLR10aT9At5t57qf5JsnvlfJc+W8G01h0EBGTNGoy+m7sWAHEJe8SR8SCsP3KJVW97V3wMrfT3jI91Ew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN0PR11MB5712.namprd11.prod.outlook.com (2603:10b6:408:160::17) by SA2PR11MB4908.namprd11.prod.outlook.com (2603:10b6:806:112::15) 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 11:58:05 +0000 Received: from BN0PR11MB5712.namprd11.prod.outlook.com ([fe80::be21:c2ac:4cff:158f]) by BN0PR11MB5712.namprd11.prod.outlook.com ([fe80::be21:c2ac:4cff:158f%8]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 11:58:05 +0000 From: "Van Haaren, Harry" To: Chengwen Feng , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , "Richardson, Bruce" , Jerin Jacob , "Nicolau, Radu" CC: "dev@dpdk.org" Subject: RE: [PATCH v2 42/44] event/sw: fix segment fault when parse devargs Thread-Topic: [PATCH v2 42/44] event/sw: fix segment fault when parse devargs Thread-Index: AQHZWw5V0SPSTX85sEatoYyYigW6/68DkDvQ Date: Mon, 20 Mar 2023 11:58:05 +0000 Message-ID: References: <20230314124813.39521-1-fengchengwen@huawei.com> <20230320092110.37295-1-fengchengwen@huawei.com> <20230320092110.37295-43-fengchengwen@huawei.com> In-Reply-To: <20230320092110.37295-43-fengchengwen@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0PR11MB5712:EE_|SA2PR11MB4908:EE_ x-ms-office365-filtering-correlation-id: 07bc3acb-b79d-4a3e-7a0b-08db293a5d60 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8eyYlOjl/6NDFgXNC2Ptg7ovEe1iBeVbPzkcGXjcJOAyVbQ57Hw+bwf+JE87JhPg5gWHPFLHkQADysC5DFlwOpoZ9zMOiEEUDnNpbTU6/LgK8d16FB7BW4I0LY5nVZDZP7Ne4LMz5HJhyiSSZuikRbW3TjMuIXxyFmYi4C5qRObDHAoFnkUVWiwPzki/L+Fe8uNTPIuADh88Inq3wsIGqe55xK5xOuRt2B0lhDGncpEfjd9ZZjnDJh3WYHl4CzRD4s32sb/zAcLCc3hlKFk5nC6G2wUqZspAkBwk8w4a07UuR9o3XZuw/Mhsu5eEbmgA6XhFaZAIubvb88I+vnacp9EyMNBfTXQxqoESzi71evNjoD/H/SKsUFS71xqY8caOEHkNmJvYeGc1jQFvqPrIHdHMRJvXlwcVHhekF/FAw6t4CUciUKrc/iC/wKEk/yektmH/6QJROszXrBhuocVwN1HHy0Y9yqYNXWfsJG/IXHrwIBf/LdzjX2A+hj7Ae+pfeJpPUEN+IQRU5yeAdacVNkMzcrVZ+JlAyN+rUP1RX6s1LJjtTAQEt0uYyISUQTNT7b6wOHu+N8o3Ssjy34VvN2J9HAR89jB5LWSDoAJUtf1KaMrtudXLSjlVruyF7+Lyc1bzh39ijQVyAsV5H6S5NZVr9GtJbYhBLDY6HC0JCXUVHZiipruAJpjD95wE1aQXYL9Q/iXvn/rAizHG7dHfvg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0PR11MB5712.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(396003)(136003)(366004)(39860400002)(376002)(346002)(451199018)(52536014)(8936002)(4744005)(5660300002)(41300700001)(55016003)(33656002)(86362001)(38070700005)(38100700002)(122000001)(82960400001)(2906002)(4326008)(83380400001)(478600001)(71200400001)(7696005)(9686003)(186003)(26005)(6506007)(53546011)(110136005)(316002)(6636002)(8676002)(66556008)(76116006)(64756008)(66476007)(66446008)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nk9/b1nbdk61DhqEZxxzfmKine3E6/ffI/1n4VP6AiEmHVFMJS7FgLxQx3kI?= =?us-ascii?Q?SCroYThCIuXwgqZn3PTuFZBnwaw6+yY1QZvqM+I5UIt5n1/SZo/A9wSQpkHc?= =?us-ascii?Q?G1Zbryf8mdxmLLXP+OTnU6RMWIbZW0nWu0f1ejRhWrcANX/6Cxq9EZf31/V0?= =?us-ascii?Q?FkF4jEpvhYuPF/9FBE0dCxWxw9QaZX+c5DyAdXrgUEZ/xsa4M6h+iI56qXph?= =?us-ascii?Q?7bNB+bQTVhEnxPNqezE/M1AZdQGCOaMVls2z3jc0XemgIzUpJzpSJ8uTLyav?= =?us-ascii?Q?nzs6nt1V50uyUyMQRdjF8WtXvL/nPhvTtk9q/Iy0sOtTzevpwBlIfOza5vDw?= =?us-ascii?Q?jDmicJR4MqFm1mqI2VDU9s20gpqBHe7pfSwb8RrEnJRzB5RTop3Wu7DV3s19?= =?us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6luMGsastZUPnKsuQeWt7hdyFG7KUSryiVNw?= =?us-ascii?Q?QHg9SzA1mxFDoL4Zmku5ruHcIj8M7ff9ecnwTb9iMFiu/KUrbhV6E874ZvFL?= =?us-ascii?Q?6AnQQq+2mRWHaVF7IkCGGGWXUWo4EHPJ/0MskZ85wkrPCcIZa4+3YM62x+Tm?= =?us-ascii?Q?eVAW2Nm6/PoveWJf4oUqb49a1+L3EdXrLcIu2Trl6Pu1RmFn4M0BQmOfoMa7?= =?us-ascii?Q?hUzsslIMrof0PYBfosmZmJJdXziWPd2KpL6HIBoKvLnWsBPIWgpdNmoDxCaT?= =?us-ascii?Q?Y7iC2ZD/dRbreK/z7XwmjOHC28FMnjQLwmg82aSHKoyvzFa/KqXmKoMELAF6?= =?us-ascii?Q?VA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN0PR11MB5712.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07bc3acb-b79d-4a3e-7a0b-08db293a5d60 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2023 11:58:05.4190 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BcmQq+ftFxzaY6uLKYbVpq4zd+kD7p1aMhHwZ9oD2DUPYZtVN3mONfbk/yO+qEAzeS6J5ZH+qWXmfCgz1+7yrK+7uCGhfSDkgYP/8PhqKaU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4908 X-OriginatorOrg: intel.com 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: Chengwen Feng > Sent: Monday, March 20, 2023 9:21 AM > To: thomas@monjalon.net; ferruh.yigit@amd.com; Van Haaren, Harry > ; Richardson, Bruce > ; Jerin Jacob ; > Nicolau, Radu > Cc: dev@dpdk.org > Subject: [PATCH v2 42/44] event/sw: fix segment fault when parse devargs >=20 > The rte_kvargs_process() was used to parse KV pairs, it also supports > to parse 'only keys' (e.g. socket_id) type. And the callback function > parameter 'value' is NULL when parsed 'only keys'. >=20 > This patch fixes segment fault when parse input args with 'only keys'. >=20 > Fixes: aaa4a221da26 ("event/sw: add new software-only eventdev driver") > Fixes: 70207f35e21f ("event/sw: improve performance") > Cc: stable@dpdk.org >=20 > Signed-off-by: Chengwen Feng Acked-by: Harry van Haaren