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 7D06043CA6; 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 4791A42EB6; 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 470D742E6B for ; Fri, 15 Mar 2024 06:52:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710481930; x=1742017930; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vjATvixwxUJb/gW6wCirHk/wbQKuleJ35p/RLoWbQe0=; b=X8MfaGWMnl/AhiqMSLfsuVata/YuYkADkv9fKAJiSsgREhGBogO6F/px 6cBvZdPJsOv9AJE0roUz5E9asimypy+MMGfeji89C+mkgoU4eQdfaDZls ySCwaKIXrv4wAUPMPEI9iHK4G+jVGvQIZBD/uTSbgneGc67cnfkADF2EJ Hmz+tDT3RATtf+26DkqMvue6l/17IgIXcDYsjUe4SpmVC/f5QCkEvMIXA es48jZCuWOQnHNkGGnSa8KK+pTnPQd6yUQr5MRfISKBjByPxgNwnEIffo XywhQZLnS2y/MVNcrwdEn+akk3zbBzmNAB8a1jc11wZKjROKS4X0A9LuT g==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="16737708" X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="16737708" 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:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,127,1708416000"; d="scan'208";a="12474745" 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:09 -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:08 -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:08 -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:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NvbvSBzdnVRyP+6nShTk1xIcLHOKT6qjFfhFIECHZMUTJ2PbmUiP+xVytAuCu4mbSUeuS9Y2sCvqiprzBg55m/03zDdal/vX0NlnwlEYju67Le278KnsFa+IuedQkEtVboMZxbxKZIJujgB3qxV/NkgaeUNCyOjtQ0ZIdn0nNdxSah8JkGxMCY+lmD6kNEvj2ZyqlXRFu/Fd2QT/2T7bW7RBD/GYyKW6MdE+2wLQgR3Lt8VPOUqPKsES2POBV7aECrSnlMNZammmpUBnwB/hyMTtQXxRVjoZ3tNrFsL2FLJgsPcc/ZXfnlIDQQe7p+Tvbus7Hj/4OCzJul83prTH2A== 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=TsboHYBvzmCg0iBu6zUVbCxD8cyFikP9d8209skq58g=; b=jGKePKb/C4VX6kB+dIenZ/bTF4AbSpe/chrjKl9/aVMZtRLZTBOWsp4OAPc9RJdsWIKeRohxDlQdvBK9ji570MbuQVNpyGebU0aUDrG2cXqWgXIMX+8mo/PdA8QfFiXuCSxd25YdgbyQxVRjqRBVODkER76z8ZJelwPrklAAHLQ76odD1ehRLqVCjnpjUoaqjTrs/hZflkJ/zDP8fQxlmvlM1zogKNRDYy3de2mABsMHbLnmdpR2/SKyH7EeFmnf96+cp/M2yxmHDS+NOEoIBty3P4CLi2UbtfMw5/PL+cII3oowuQEpzWZ2igrLjVRsJS20+Bi/WGQzTDfKbas2eA== 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 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/lwP3hvyIBbQMHUEWkMyNWKU?= =?us-ascii?Q?jxs3nl9H7I+nff9NBm52VyZ/Tezc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?B600uomT9CkA/Uijbiim2pe5ukbVL2Yqrep3oEMk?= 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: 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 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: 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 >=20 > 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. >=20 > This patch fixes the issue by using valid devargs. >=20 > Fixes: f3a1188cee4a ("devargs: make device representation generic") > Cc: stable@dpdk.org >=20 > Signed-off-by: Mingjin Ye > --- > drivers/bus/vdev/vdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 Tested-by: Yu Jiang Best regards, Yu Jiang