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 2E84D43CA6 for ; Fri, 15 Mar 2024 06:52:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19CB642E6B; Fri, 15 Mar 2024 06:52:33 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by mails.dpdk.org (Postfix) with ESMTP id 91EAA42DCA for ; Fri, 15 Mar 2024 06:52:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710481929; x=1742017929; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a8WyY9viA1JrebUbXZv+4JOtzOdAeuSFWetzjauRbjA=; b=jHQSTjozJdqErswWlLY4W3q4D6kxiD/qsE6R1U3LRNuzBx7stZxZKock kP5cdskTpDowRK30Tmzdvcnm6MyCxfSYrm5sJtIa+DobWs1hb7cdlDTaG AfrBuYBPvW2Kmg3YKwnmp7dvBrGKKD4cgORkauj2F1K4BTaKx5idEO0l6 GkmrnXdpc6Inj3qxgfiPRCs9WSS1hNB7IsDsha9v/haD5QMlCTpaSWyc1 q134/JhdVMrdvttZYX/w75GvnurpiDNEsBm6Jt1qpluKMAesfHiv+Bfsb q7fKKqlvIjKUQ2IIX+8CAnsl77ogG2eVF8tkigdhn1ok8hY0EZFk4hlj5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="16737700" X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="16737700" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 22:52:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="12474739" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 14 Mar 2024 22:52:07 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 14 Mar 2024 22:52:06 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 14 Mar 2024 22:52:04 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) 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.35; Thu, 14 Mar 2024 22:52:03 -0700 Received: from IA0PR11MB8336.namprd11.prod.outlook.com (2603:10b6:208:490::22) by DM4PR11MB6068.namprd11.prod.outlook.com (2603:10b6:8:64::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Fri, 15 Mar 2024 05:52:00 +0000 Received: from IA0PR11MB8336.namprd11.prod.outlook.com ([fe80::d869:9580:2f0e:f57b]) by IA0PR11MB8336.namprd11.prod.outlook.com ([fe80::d869:9580:2f0e:f57b%3]) with mapi id 15.20.7386.015; Fri, 15 Mar 2024 05:51:59 +0000 From: "Jiang, YuX" To: "Ye, MingjinX" , "dev@dpdk.org" CC: "Ye, MingjinX" , "stable@dpdk.org" Subject: RE: [PATCH 3/3] net/vdev: fix insert vdev core dump Thread-Topic: [PATCH 3/3] net/vdev: fix insert vdev core dump Thread-Index: AQHadfW4Pfoa8Z3CBka+Km98nCqBkLE4TUMg Date: Fri, 15 Mar 2024 05:51:59 +0000 Message-ID: References: <20240314093630.1066948-1-mingjinx.ye@intel.com> <20240314093630.1066948-4-mingjinx.ye@intel.com> In-Reply-To: <20240314093630.1066948-4-mingjinx.ye@intel.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: IA0PR11MB8336:EE_|DM4PR11MB6068:EE_ x-ms-office365-filtering-correlation-id: 34df166e-d5a3-45f0-8c91-08dc44b407ea x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: flxvl2vmVCvEH3/BH2RGCjazHWVmmHWvDCFTw99Y07NcJ3lkschuTWQdpRP7jYk/uGWbkhnwt/+9BUTAMtq0frxcbSgxBcIEZNVXJh2crQi72jsCstBYN09nyFrnP3m2IE83bXLpndIuI/wLTe6v5RDo3sIqEuGvDpPwnJjKLUGS9qDchENj1XG34FU9I+OjeXYLzoqx10QGxv/acVK8lVIIP2JeRgrpp1V8fP52fwFJCfs19U6RuL0qalwZMGUWYgvm9IotFsDfjzOLw+kTMRpsny2m1bL1jMKI4mVVNZ3Ypbg3Q2iZyBw0jpUy1Yv3ZJYxFqyLKh1vOG9gw7r/JmAxpvLB1S8DvRm8JHnwg7PETMP5sMHnNFVi86vpw5NRUSsAtMaQsxY74RpTiCv4iO3KZeX31FngZcRKkK1mwkFbr66j1tlPnLCNlR/GOMeJDBxt49uxxoerttpvVlENWMzAx/FD+FhoB5/yOBSKhIGoronPRaV8T29ppFYi0aNXG9WqnD4Lk6HO28euXyJ6NfPmiON3zwExKbPMbbaRhlCHEctA7pcq/LLUSxn4GsOscAHtBptjA+prAwf9A+JLktnO/TftweLLazFUc2ftRq8XOeJpKtpK213IH3hrzmTH7yRBGcOB0J2H3UnSiYY6IXFUe2YXmZ9K0BDThqGa6seoaIlVWlQEgN2RUTyrjVyHrS69Wt3yMxY7+vZNgMNw6w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA0PR11MB8336.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4maWSeg9n832gphCroFetMrMq8yeUDI+UPWxsno94ldBS5sLOZSSs519BH8G?= =?us-ascii?Q?sTvfTj6UkQKmW/mOKvK++PlTWt9Fzg6Fv/z0bwStN71YlB6sd5+YkCAeQBK+?= =?us-ascii?Q?mQuTfX74qM8F9DF/s2aRr8fzFMMLq1qrWBoqhCpOFuz0wYIQDPKc071ybsUy?= =?us-ascii?Q?k9NecOh4u9ZPkJCE29uFS/3pEASrOsTYMClLFDZhjaTrRHq1Ty9uF8btS8kU?= =?us-ascii?Q?zzT7hGVmtYJsiWYmdkLqasqCeoNWOjuy6KyD7js3jswb8tJt7OsEDmFTaSsa?= =?us-ascii?Q?t8bLj7LFQPxu4AUDtY1Hh9dq32tLGQ5gw7TXqh4j7Two9uVPqES2UiJRxTF3?= =?us-ascii?Q?CWAh3+eXZqrub+8DBH94lIhuHuKTKRueeOMmP5PfJh9xiL5r8+pG4wqOaQge?= =?us-ascii?Q?W0ZVito+BAnV9b8d0OnkZuxqPfUmBXUzwNplYxEshgAY3q51pi4EEN6K5nLM?= =?us-ascii?Q?/tgX4fucx1+pmNUQerOmKygrc0jiIeWE71eEsTSKeIMMbPKNXPRGMeSZZMJO?= =?us-ascii?Q?zZpOAIcuScsrD2/h213q4moBjuRf03nnitUuJ9b4w9OQe9NiBkQEjQSJBjpU?= =?us-ascii?Q?8F3pZEPFNSvRMCH4KwFO0h00o0Nv07SR2i7L/lwP3hvyIBbQMHU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GGdmWjnqVG09nWzzKQ3XcyeGis3Lyf9qNx56y?= =?us-ascii?Q?B600uomT9CkA/Uijbiim2pe5ukbVL2Yqrep3oEMk?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M3gYll4vdX+vN4FonVRlLVw0I74npGd2AxW3vQsJuLzbQHiYCH3DdFYvu4fOPDnQfGq7uCHJYrd/A1YkC10Bld/r1DT9xMzSGQODp+kKfrpYHUIa3n/w4vss5LFcbTgp40MPuNQDgeG5wUz38eGWU9EAoiD57r1yizFraTNAhZSL1SkMHn2JvJdHP1CORCqS/A8kk3ssOMdQ+wcug2qlJucrDRTWAYdh8ai9Gmdr1PdpKkMi32rut0O8EGj9DnPybSGb+4281mLbKiORM/ctE1VCoB6LgYTXRR+eZyWxwEqgdclXGE2W3cZAXA/C2BSUYoVCxJMo+Tazfb7XnbY1KA== 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=bJtP+bzQ1FFaaiizpLFSjzN8srQ6wITD5uQPVSM5zK4=; b=BJ/6q2PzHMQ/CzAna2f/V3nqniHU1aW28yW4ufUiC4eSzQoTi7EMT3ComJI45vAaNS5CK1aSHCbQloNfaKcFfMpdvZE3ZyQCFn45UzEA7YGwYIZeD1kPgVL2igzJei8TYLuGomfLoUq9zThAxoGcHKKfChoiBsrB2nOYF/ayM/Lmb9ABTpnl/NW56UT5/uVkpAuAEm5WOoxSfgwjXmH/dJsjrxH4hTztCOiKb0Afki7ErOsvR1QS/CttssZmjiMN0I3hFBoOXwD7bslBx2s2NhtEqSXhPVMXYdWNZjUDnbyTWCTUJmo7+QFURdOElZgBoziQPCY7t0SjxbK2annPoA== 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 x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: IA0PR11MB8336.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: 34df166e-d5a3-45f0-8c91-08dc44b407ea x-ms-exchange-crosstenant-originalarrivaltime: 15 Mar 2024 05:51:59.6892 (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: O1yt63vQ4rxbTu3ONDjztb0oBFXp9USKeue04o9IGxo4JHN35rRXDsbPvuhi+B77YwvCRlYXPzOuwKFs2AYaIA== x-ms-exchange-transport-crosstenantheadersstamped: DM4PR11MB6068 x-originatororg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: Mingjin Ye > Sent: Thursday, March 14, 2024 5:37 PM > To: dev@dpdk.org > Cc: Ye, MingjinX ; stable@dpdk.org > Subject: [PATCH 3/3] net/vdev: fix insert vdev core dump > > Inserting a vdev device when the device arguments are already stored in > devargs_list, the rte_devargs_insert function replaces the supplied new > devargs with the found devargs and frees the new devargs. As a result, th= e use > of free devargs results in a core dump. > > This patch fixes the issue by using valid devargs. > > Fixes: f3a1188cee4a ("devargs: make device representation generic") > Cc: stable@dpdk.org > > Signed-off-by: Mingjin Ye > --- > drivers/bus/vdev/vdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Tested-by: Yu Jiang Best regards, Yu Jiang