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 4E46441EB5; Fri, 17 Mar 2023 04:07:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC4C140DF6; Fri, 17 Mar 2023 04:07:22 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 1063A40A79 for ; Fri, 17 Mar 2023 04:07:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679022441; x=1710558441; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=4oLWwbd8wlF8Go8ZRf+BnDCPcpfyEREjXl/YI+b5h8g=; b=fknKvGAnsUEQUlhfnvqSbElPoeam7aW44ThyqTulL21GfxSdunSecSXU odvgxfL060yBbQkJs+NCEhjG6ijV/X0hsjaVgcZZdksI1T69PgMVtUqIM 1nwGxb7OYdUIshKVXeiO3XSqOMnjeCBCT/pSSARQRr+NzHkA53axMJY+J btM3RBIpQ43epJWh0ZxgAdqBQv8IhAKj9FXP0bADOmicpCf7YrrnotjdN r4N9iYaMEselabRoCmupsBrIbwIR3TMhFm5WD4pKjLzuiSfhEy4ghKbmV CSYfxXcWAlFvzWtsqiuaamr3NzIUubVx5oITnjeRZgAzLmFaD71IZ9kOm Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="339710972" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="339710972" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 20:06:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="673406386" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="673406386" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 16 Mar 2023 20:06:59 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.21; Thu, 16 Mar 2023 20:06:59 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 16 Mar 2023 20:06:58 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 16 Mar 2023 20:06:58 -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; Thu, 16 Mar 2023 20:06:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gtnjvPyko6LrVrzBR035A+/QgiPXh5bQL5Spj+oH40nr0A9dQ6B4h13kvpQtIvqFpxua2EcrWtzNaGadLptLFU8+6oS9wTF9eSK9tS35FcKuTMpzDUfh7OgTSYhlPh6pEQmZewml7DS53CDwK7lS68uv8z42ubMv01Id3EBPx3RnCq6bv3uOIi9dJQnYluJ3Wu0BKMz6dk+W9U3qCnsrSG1wDZGs1hsfZk6gtL9IQ//tToBX+iNq2KtmFK+MfRHz80HBuUSoNq+C8GLuZj3437FHD2b/h/55BfFAQJp7saebC8HbUhNEmLS4dr0z/vIMFPQS+Wtkx5hLkm37LrA9+w== 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=4oLWwbd8wlF8Go8ZRf+BnDCPcpfyEREjXl/YI+b5h8g=; b=PLX+sQUrd/1b9hn/BFNhxi2DtMJ3/hZtsT0d2UKW/P7V6ishZUvMlZWGrI+a1hwnLL2ifncOPeYKnqMd7BxEgnARfUcSnS8nRf1gCVKDStVJu+0oRl4ZBdcrXZG1t55iuBwRhzemHRER98TY54lPejkLzSjEObzopYLnNGfR27j71VWbzbPRd/CBSrzYfN36wQujlSmaUma8HjTCqlACUs8ddvzKHVJMVVmJVTgoflb18vKzC96+9dHqGXSaEeb/5S045yjvLzPt7F/fSdlBmybQPmaMYPCG0hozWzWGXGZ56qffA8X2y2Kfk/l58Jm7BYMrRlaQE9zeFisw9ohhUA== 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 CH2PR11MB4487.namprd11.prod.outlook.com (2603:10b6:610:44::18) by PH0PR11MB4950.namprd11.prod.outlook.com (2603:10b6:510:33::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.31; Fri, 17 Mar 2023 03:06:56 +0000 Received: from CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::a05d:d32f:5361:f729]) by CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::a05d:d32f:5361:f729%3]) with mapi id 15.20.6178.026; Fri, 17 Mar 2023 03:06:56 +0000 From: "Yuan, DukaiX" To: Ankur Dwivedi , "dev@dpdk.org" CC: "jerinj@marvell.com" , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , "andrew.rybchenko@oktetlabs.ru" , "skori@marvell.com" Subject: RE: [PATCH v1] ethdev: fix address sanitizer bug Thread-Topic: [PATCH v1] ethdev: fix address sanitizer bug Thread-Index: AQHZV+x8/5mxAe0410+n9fO2DWpr/67+SwNQ Date: Fri, 17 Mar 2023 03:06:55 +0000 Message-ID: References: <20230316094808.3253873-1-adwivedi@marvell.com> In-Reply-To: <20230316094808.3253873-1-adwivedi@marvell.com> Accept-Language: zh-CN, 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: CH2PR11MB4487:EE_|PH0PR11MB4950:EE_ x-ms-office365-filtering-correlation-id: c8ad0691-f7f7-4a55-a4f3-08db2694aa21 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ykOeKrdTRGO/j/IXCXSfz6fXAFM5Pk1lbmXf472QyfKHdGObebjBLX7JQsLXV5mO5m2bkNJHwe+76fUJrKEi1dOE+LQJz0S2NFp04m4vHO7v0h2Wloq/4B/73DOYgZ5IIluH0mANM32pb8c7BjXWCEg0zUg3Eq6MrV/mQ8JPwAvmJcvkFS3wwzsiyRvVJGOYdIMmsvIg/I/h8rIm+SIOGWf9etbtqU8C67a/gJBb4L/33avRqfAfV1sGGl5avr0AMdx0+GdCTE7+8mk9w5NtKPZ1aSwA1Yi4iUeu0ye+skJM1WbHgaSnSPQk7Z1AteppuzjDfl1g4lq2ysqKnsUm75YrhgP26IWrVVrdzO+Wrl4RO0DWYv+jtgKSnjqIFxCS9iK5311fRJ3JZSdVjq76qjCOQUsWpj1gXpV4b/eJ7fsSLM7EdG8mMoUPQSsfCQ4Kw6ih8y5dWOrVBZJxvhJ+xOkHq1R66VUmQ764qjHmxva1sj3UH1D7Atp49jSBNL9jWvmGOp8juEaN5mEZ0gp7khNCxpF2rULQvJidDq0dCmOtiu+n2T4/n88zGKuUePPWTCoJrXXHPZHCY5Nlt0FSwPn6RnQWM/UziZsqAy96f7RIVPEfyWDJ2moDkdd0rE+DEVnLrB52k2mUVmNUVlSuGyOTIK5lsyS+HDdXmpkV8AFEVGip5ygcfKxhvI6pv82JLvDUB/S+k/U9Hd1QNupkBQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR11MB4487.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(366004)(39860400002)(376002)(346002)(396003)(136003)(451199018)(82960400001)(86362001)(122000001)(38070700005)(7696005)(2906002)(33656002)(4744005)(38100700002)(5660300002)(41300700001)(52536014)(8936002)(9686003)(26005)(53546011)(186003)(83380400001)(6506007)(110136005)(4326008)(316002)(54906003)(71200400001)(66476007)(66446008)(66946007)(66556008)(8676002)(55016003)(478600001)(76116006)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?RVJXOXhJdjMrRGIxNzRjKy9pVGpnM0w4YmUzOFF0U2Z4YXg1bWpjYlgx?= =?iso-2022-jp?B?amJYeWxwMVpvK09XVGJRWlNBczhJbnJINEVpT0NWVDJhVzE5WGd0bVR0?= =?iso-2022-jp?B?UHlLeEZyNXM0SzQ4QTVRK3RtWnFMNVM3eWs2dGFrNjhJajNONHZ5VFJI?= =?iso-2022-jp?B?aUlTZzJFeFBhZyttVlRENUxrUTNiWmNwM1hFcUJSbDNyYWdJQWo0ZFh3?= =?iso-2022-jp?B?TnFHcFFUNDROT3g2cElUZ3NpY1hpaUU2ZjJ0aDVWSGY2N0FRK2NVb256?= =?iso-2022-jp?B?d2hoNkljSXcyQjBsUTBIZzRQa01xdFQ1a1FDWGZwcnZQYm5WOWJUbHA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l2dXNlRFlHeklKM1JVS250UEJm?= =?iso-2022-jp?B?VmpHbjlLdjNuYVgvYmpVN0c5WUN6UXRlbDBPNkFoT2Ixa1o3VGxqWDBB?= =?iso-2022-jp?B?enZrclFESlpMVDQwTTZZeHRjQmJSOXJKei8wMmtpSWV4UnNxU1FKblNH?= =?iso-2022-jp?B?d1JyKw==?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR11MB4487.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8ad0691-f7f7-4a55-a4f3-08db2694aa21 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Mar 2023 03:06:55.4247 (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: s+gA/gp6s7TL4yIXjTxddttZPvMNhlDlID8/9OIjsqRXcPZmtKatOY2wCtodoOPjsoNA+9f0ivbEDAXFP8d1Sg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4950 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: Ankur Dwivedi > Sent: 2023=1B$BG/=1B(B3=1B$B7n=1B(B16=1B$BF|=1B(B 17:48 > To: dev@dpdk.org > Cc: Yuan, DukaiX ; jerinj@marvell.com; > thomas@monjalon.net; ferruh.yigit@amd.com; > andrew.rybchenko@oktetlabs.ru; skori@marvell.com; Ankur Dwivedi > > Subject: [PATCH v1] ethdev: fix address sanitizer bug >=20 > With clang 10 compilation, the address sanitizer reports global buffer > overflow issue. The issue is observed during trace point registration in > rte_trace_point_emit_string, for strings in iterator structure. > As a workaround for this clang issue, this patch removes the > rte_trace_point_emit_string and instead adds rte_trace_point_emit_ptr to > capture the iterator pointer. >=20 > Bugzilla ID: 1184 > Fixes: 6679cf21d608 ("ethdev: add trace points") >=20 > Signed-off-by: Ankur Dwivedi > --- Tested-by: Dukai Yuan