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 0949141E81; Mon, 13 Mar 2023 03:17:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D47AD406BC; Mon, 13 Mar 2023 03:17:28 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id A3C2040151; Mon, 13 Mar 2023 03:17:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678673847; x=1710209847; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=nx2IRCrP/I5/EBHhSMoggBIDctlfrc2esQ3gjP6vGJI=; b=i3Zu5Ek0WQYvQPx831gnnu/kjOaDOTTAIFcV6DcE+Pmez0O2hFZvOZoB +RKx4RlbFHZsoWy87Aqc5PchzgIjTUaGVVgKimFNrGameqc3Su659sE9x Wyc399x7bv5k5zDCr2qv25137siNHIJYfoQPN6m4FFT/dvgYh+sscfFb/ MPLVCvDVe7MdFzHW7f/PUfb8Kw+VhuSAtL8P0ongxuPars3m0wAIDJiXu NTIvCyebKnp7m0GQzoR568NWQ7xi5F2+X5T0P0KiyFkQv+9BnjBIiaUuj HJBSn2XOEkViVamVdy3f95zUU+Fcan5YrCxqEShNfPSPorzj+bqbvmxq8 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="339414658" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="339414658" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 19:17:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="1007817228" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="1007817228" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP; 12 Mar 2023 19:17:20 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Sun, 12 Mar 2023 19:17:19 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Sun, 12 Mar 2023 19:17:19 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.176) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Sun, 12 Mar 2023 19:17:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YjJDH+btRx3qUvDyvWE8WRKh0E8ZGFT/chN4nX7TuvXrhDN5FYxL1SfpmSqzmqVUmheqWFZUKZejCiuNg1U6QU+j364PcQ1ysUQBVbg1X5/V16S9cA2EWlLVzEZOFWk5DcQu+y0fV+HaC3pZywMWgiHRV5CgTiW2OIL71e/gGu9Qw6T570Tue1+Ou89uGQey7hPt1Gtu4zqwJvdqJOaF1DeoPMSTmXGZ4GKVp07msthCzil7rv+j5mG4FVUWoy6oluV+YhujZpPKOxT3HR8106Gggk5nht6v8lLnHx6apAFzn6KLj7wjO6og/5w6r3v1LmlCoyYM8xTZoWRjcIh9gw== 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=I+7Vws5DpUk2Lvw3qYTkQMAa8M9D/cwneLXajGmm+PA=; b=NNZFrXXMbpFjgK6pICl0X0pmlrHKXBERT8dHbVC5JO4KOkb8qFpaokFSJPt6x+JvUs5Zxej3CUaIPynxEryF/jaGjDxGKKQGdkp4liobUwXluBy4vZkoB5zKAO9ojGqA8fqbkSvSGvhaKhkFtfzI7F8KAB9wj0V1pCtj4PFvaLaEluzfxb8NW0oH0H/pd/gMofxDpdaTtfG1xJdSZyE2ge1tHnOcli86UwGKkz3a+7/OjwK9YbobOSJguAh7ITzj+pe4LVU0tYq/EASMZOCqIZaGoG0oECrNHm0Q6zkNlhPVqKzuuMgVr6jNrcTa2dInzlD57SI2ZIC3ZTtT3vEhjQ== 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 BYAPR11MB2711.namprd11.prod.outlook.com (2603:10b6:a02:c2::30) by MN2PR11MB4566.namprd11.prod.outlook.com (2603:10b6:208:24e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 02:17:17 +0000 Received: from BYAPR11MB2711.namprd11.prod.outlook.com ([fe80::dbf8:fc67:fedf:9cff]) by BYAPR11MB2711.namprd11.prod.outlook.com ([fe80::dbf8:fc67:fedf:9cff%4]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 02:17:17 +0000 From: "Jiang, YuX" To: David Marchand , "dev@dpdk.org" CC: "stable@dpdk.org" , Sachin Saxena , Hemant Agrawal , "Shreyansh Jain" Subject: RE: [PATCH 1/2] raw/skeleton: fix selftest Thread-Topic: [PATCH 1/2] raw/skeleton: fix selftest Thread-Index: AQHZU1xRc7WxYfrcMk6NOIwgKMS1Ua73+r2w Date: Mon, 13 Mar 2023 02:17:17 +0000 Message-ID: References: <20230310142604.2409586-1-david.marchand@redhat.com> In-Reply-To: <20230310142604.2409586-1-david.marchand@redhat.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: BYAPR11MB2711:EE_|MN2PR11MB4566:EE_ x-ms-office365-filtering-correlation-id: 41459cf0-6e86-4104-ada1-08db23691175 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: W66vGHKABNzeKdlOvTq4ICW18nMdkBIufq8K4wceUgQI+CK9YieFxo8iDv7kd2bwQga/fF9SqpHvrYwabJOBFfmYkfmtllI+ch+bm23m0QSHAGj9JWy8kihAAHN4fCfFEjEkvPkPLFzgtdeXtl0i2GXIL84QL2Hqt3PWh/kEqGay3/H9ruHEZNjHxRQ3O3FUlWJGqZr1SyxPfvjUm6YXm+rc6YSrbOV+obosBJtE+ZFCCdQrSiDsqx9R4HxJjZacDCtfQaES05uz2nFfqDora4MgVGLDTCfefHbHxQ51zf1u2Wl/jLHGM2mA3GdTkaZ2n3PwUYkLosKEM+RyK6LGqCXjfg5ao2GzRcztfIDMt1P1QGUVhZIQWagNpK0CqopoumqaMm0yfJs1GUKEVtamDWfDEZi3pCKawo8agW7L6VTlFd/cyV7/mgxb6GjHnKID5LJRFhoZmcGwbyn5VYraKsPHA3HkIb46F9GPiq7pEBajlcirL+gc9nNarcRS3QFng5Sn0wVsTr5g9XOmgDxh37U5slluo6KfSk4wBKN/uBX9TJE+byjXOoYpMe+iy9aOmL1p7xw2q13SCWydttlH4hil7OfwilAmbdLdeM1cH1uCHdI7fxp8DPaF/YE4RzAcDfwSVt/dvoV4p3+GE7LzZOyqf6X3fs4NlU4QciSUsrHi+8K8ILrBPu0YidyREDLkDXCio+I6htmmTrZsfkVhoQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2711.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(376002)(346002)(136003)(366004)(396003)(451199018)(86362001)(33656002)(38070700005)(82960400001)(122000001)(38100700002)(2906002)(41300700001)(52536014)(8936002)(5660300002)(4744005)(55016003)(7696005)(4326008)(6506007)(26005)(9686003)(53546011)(186003)(83380400001)(316002)(110136005)(54906003)(8676002)(66946007)(66556008)(64756008)(66476007)(66446008)(76116006)(478600001)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zv0wh2vvPg73i/vSdeaWiOMg73nbURoRQvGVVqZG6N3eFt4oBfFkQjsnlij2?= =?us-ascii?Q?oVJ4dD+zJa71rGBgD3/y5F6AbMgyESg4GjCBtMpATOuuSuDSDsi6OYHZedqp?= =?us-ascii?Q?pYfCAV/+dnz0nwbxXG9dwZqc17l/FVIiYM0ttFziDFLwJMXi2eHdRaLuneDK?= =?us-ascii?Q?RKAw4vRRqUvehhl2i6AVe1veMiKP3NJBKItDIjyvxJLFbH8BAL9w5eETnXIy?= =?us-ascii?Q?Z+LLChiGidbRafqba0XfrsHIA/tFkOH24XTtJkm/T7BM7k2S7Nje/1y1/jI4?= =?us-ascii?Q?wviUkYkueMefVIm71io3JmLJS+Ks79phd5Sk/1XONPlyEy3EQYHF3KTBjuvh?= =?us-ascii?Q?zxjeb4gRdkBLIG+0jbjan0XRSxrNrE4QGq8FSF5FKNpFCd70q6s2oCAUGFS5?= =?us-ascii?Q?dDqMfoulYJJKfVZX5S7uJ6DHfRNEtPtbMjN8dqmMCdjlx90tfXy7fLQaknAU?= =?us-ascii?Q?U386p5e6t+vXHV1S2bPtCwfDwAwreyUJQtyoOtDiJ2HPj5cFmX9IQ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bXHYQbvnrmo5nMuasofnAOSnYlgs2izf7L8Fiv?= =?us-ascii?Q?Z1Qsjjv1JGtgd7cuvWVzd7ZVzQFAieNfjf8isAVDyAQbDn4bwzc4GfO8myb2?= =?us-ascii?Q?rbB753MZfyzmEdlQcK7Oz7EIW7P0U1Cb0r0ZtEPPLkJzKZ5CDUkoezTd31Sd?= =?us-ascii?Q?S4DvsXBGPSnhKOIAvnfuFG6XeutE7Mqu4TldAPh7?= 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: BYAPR11MB2711.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41459cf0-6e86-4104-ada1-08db23691175 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2023 02:17:17.4207 (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: GTs3k9kcUEECI6M3q7Lci933l9E2nW/Hl9pNbc1cwLeegnSDZk4DHU0NY5/+7N308lZSn5rydEOeEO8wuzQiyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4566 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: David Marchand > Sent: Friday, March 10, 2023 10:26 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Sachin Saxena ; Hemant > Agrawal ; Shreyansh Jain > > Subject: [PATCH 1/2] raw/skeleton: fix selftest >=20 > ASan reported issues in this driver. >=20 > rte_rawdev_obj_t context object points at a uint16_t. > skeleton_rawdev_enqueue_bufs() and skeleton_rawdev_dequeue_bufs() were > incorrectly casting to an int. >=20 > The enqueue/dequeue selftest had a leak on the enqueued string and was > wrong in passing a rte_rawdev_buf pointer array. > Fix this by allocating buffers on the stack and check that returned strin= g is the > expected one. >=20 > Bugzilla ID: 1175 > Fixes: 61c592a8d035 ("raw/skeleton: introduce skeleton rawdev driver") > Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > --- Tested-by: Yu Jiang Best regards, Yu Jiang