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 37E92A0C43; Tue, 19 Oct 2021 11:29:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23DA940142; Tue, 19 Oct 2021 11:29:07 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id A18894003E for ; Tue, 19 Oct 2021 11:29:02 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10141"; a="228738625" X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="228738625" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 02:29:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="594171843" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga004.jf.intel.com with ESMTP; 19 Oct 2021 02:28:58 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 19 Oct 2021 02:28:58 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 19 Oct 2021 02:28:58 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 19 Oct 2021 02:28:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ED6ZHpjfe/YytgrlceLhqq5s3kbtPvQiyStFaexK04pJ1qC9+ShcUXhBLr62X4+zck6Owk3SPYiXFjB8+w0c8EGHc5iBKqKWh8llxkvBwoDQNpVH4tbCP7upzynu7pXt+9ZUAPEOICZqOrVU9ro8n+5/2DJlDC9KsFv8beDTw1OM4zEzQzHoTGfGWHJLEtrSQ+gVKurD0Jl934ESRnp2SFk9ji4ApeVw/mxy5WM7U3OCy5xxW0kTdCKmCxQI3iT7TiTdxCpq+u+soJp8NHlskdYQHYgBw6gIPlL5rYZ3TnoQe2M6c1TKtZm1auxuP2p7xWvm6dFf/Zcuzm04dWALrQ== 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=VMfs4YRm4YNBuWxjMVI7hTXoyO88J4w7fJ9t0zezqos=; b=kbGi4NnL0vUBEUQyUAwyB0ZVriVq9U5Yu8Lw86M2jdBvInCTJ6XLnBu8rLhenMtbrmGsuw0WyD74eTVPM3SKGKBjgR1lFAzrsoNpJB0LUShdJvnmK+eYX00Fx2Y0mpKM0je/FyzmUrgDfOKGaQ3CKkip2gFZKMvMOLJmGskF3SS+bIDQQYYwgWuF/WFEvACx7JP2y+0zgxFXyWsCYQL6IAP5SStYY9JrFD1s53elO1DMZXPh9mwHGivaP7HvjaPZrUTabm7v59EmxTvGh1C7U4DP7cZlk9oUSQbojQOaxoLWm01Z1PjWEkM1FTUt3zyPKsRHfgqUj/L23swO75+llQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VMfs4YRm4YNBuWxjMVI7hTXoyO88J4w7fJ9t0zezqos=; b=RhINqmk5usV8WGwJsEaz89lnvvMZ4jjiyZkCaYiWKtHt8+uElOSXBl3XM0eZzzAfpUx3RVnB9tcR1hVzb36LkADaj2ml2vXFbGHcRjuhEu2wlBkmmmcMOD6Zf4DeA2+aviU3EWXrsj898W+B54+Ln+CERPC4K1u9Yjlt3FHtVFI= Received: from DM8PR11MB5591.namprd11.prod.outlook.com (2603:10b6:8:38::23) by DM8PR11MB5621.namprd11.prod.outlook.com (2603:10b6:8:38::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Tue, 19 Oct 2021 09:28:56 +0000 Received: from DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::3d47:b590:aa2a:d5cc]) by DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::3d47:b590:aa2a:d5cc%9]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 09:28:56 +0000 From: "Peng, ZhihongX" To: "Mcnamara, John" , "david.marchand@redhat.com" , "Burakov, Anatoly" , "Ananyev, Konstantin" , "stephen@networkplumber.org" , "Dumitrescu, Cristian" CC: "dev@dpdk.org" , "Lin, Xueqin" Thread-Topic: [PATCH v10 1/4] Enable ASan for memory detector on DPDK Thread-Index: AQHXwdDct3w0GY0UBkKv9IAJz9OvyqvaDH8AgAAE+wA= Date: Tue, 19 Oct 2021 09:28:56 +0000 Message-ID: References: <20211012094318.1154727-3-zhihongx.peng@intel.com> <20211015142739.1876210-1-zhihongx.peng@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ea8a763-fe39-4474-d900-08d992e2e00f x-ms-traffictypediagnostic: DM8PR11MB5621: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 43nWmq29caDDlZC8xt1e/BO7qPiU/K2ws37+wqPJnB4xpv7mOJkPE/ABogcapdPFUilPmQDsk9LsPGp0AaInIZvyvb5gk0M8O+DGl/6vY04VibxGLgO6mejB0oy/e8deDWuT3lu5GcRGTP2AFvs9Ug+y03DR/dpnzxQ74pUW9vm4REE494sQYrYeJwk3JGxN6sQ51hOmBfsYZtvvNGFg1/VvFMCMeqGKFfnCBrHGDLZ9uyn48Tf/E14ZNRR3ZqkJrCDtBTnemW4UM4ryt/CS9ygPYECOH7YymCjMcItgZ1LXYZbJ/cIBgd3rjjHBh5zrtHv7R5lSX347CU1oL0ZSUWWjxhEWanypxC7q2Kn75C0cWgTH+JJN+nzy2sjLI9Nja8PsDBWhVZedrPSR5hSrcFfV8zWXGZr0h1H2yJ+bcWEGXUpXIR0mZ5UbPAHd5dwAAr+wKbWcpOaPq9jZFHE+W2bhgMBnC22cHOGNY5Vtzw6JuAULsqWcjIZZy3qCkMq3MFiFpbnbLfh/TcMc2SHjYiYCA+n4Q80JTZZUVw4hnJBLsyumt4YYWjd1Ln2sANfxS6wzbMykIq+A3h/4gP7pmfoWW7CGx89g73oYXHno47/G2r59QNEr4I5Vk0Qi7oqG47KpcnwSSsQvqKOmxTB2DBDcbzs45h0syozbdRLu68ACSNZfPcVAIpXEOea3RLfpG0BiPKI/L9zxmN0gHyO8Oo6rRxFanPUhkJKaF/DmO3JbyRC6tJG9Dlv7RBme+MD0cjbX07znzcuYejObAL71CSIgyES6CvNiZ9CCRGglFkefajo+/38Hh/cEcSQDM7m3 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5591.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66946007)(54906003)(110136005)(64756008)(107886003)(66446008)(186003)(9686003)(33656002)(86362001)(38070700005)(76116006)(52536014)(53546011)(6506007)(82960400001)(8936002)(4326008)(6636002)(2906002)(921005)(83380400001)(508600001)(316002)(122000001)(8676002)(66476007)(66556008)(38100700002)(26005)(7696005)(71200400001)(5660300002)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8MBmcGWbkda/mWqiKq8j+sJ4qO+clvDxNDOSurpGUEQ7NKg1Pgg0FWhOQm6F?= =?us-ascii?Q?kkLLB8gLKGVbUgZEz8DN+2nBu3OEN18WfbHhXHcxvLhXuC4UiqnRc5IJZY1W?= =?us-ascii?Q?2CrCIDNkzzuUGp+FHVbsLO0iF5ykazWIwsO8LqTlB/pZQDnPKsvs4rfWT8DO?= =?us-ascii?Q?zM3ly7V+YW5NFs5b0G6B71JHk7bYDSGefyIwgSSQmlzL9xJvlCjdiAtMtx81?= =?us-ascii?Q?QsTXUHo3vT/FtEHgzWdPJ6aCgfaEJrxMplcHoeeUFspViuGahIM2A5U9PjQo?= =?us-ascii?Q?Annr2G00/TJjYUoQIVDQ5BBJMpHfpRNNlpTr7z/BLbnQ9YOQK2zpBkBpK6V2?= =?us-ascii?Q?cM4u62UEuYS9h8nzaiW6LqODny6sBegVEWNtBy9XsEmAb8ibrDyTYjI+pwUP?= =?us-ascii?Q?EDUfZyEXobVQW4Da4jJpY2OPzH1YntcOajBXmeH7p/196yPKyerV/qbEbakx?= =?us-ascii?Q?PNClaPdLxGu/BLz1upwcEkVKA8L9R8I21t2obU/v3bNA5rMnxWhNXj6p9y2G?= =?us-ascii?Q?CqVRM8qEug1IvvmUTVBZ69OzBAFt2UDhmbBgNvXY7ksuu7ky5nf1k1KCdpGA?= =?us-ascii?Q?btrht1PAnwZRw3W2Ac31EHx0Zl6Jxa7FPjZg1yJIit8WT1YwbRODVah5+zn8?= =?us-ascii?Q?IztC1Lh3oEQi6t5+Hew/v0Zrle1bKFcjffOhAbNgvT2zXbhAoSai3ekIsehq?= =?us-ascii?Q?LctnslJKfbJzNWFdmwkOpTDOpJGKtl/C/IyffyVV5ug256nzfBuHTRRD6rsG?= =?us-ascii?Q?oNxqHg/NB9ZPgNXHESQnbWU75JIeOw3ZQpIM/oDgaBkmzMI3+GK8ai7PE8XQ?= =?us-ascii?Q?6PgqwCKNIbjSYm4Y/V3zW37jI0plP9pDM52HewVPZhls+CIwHiscEhLH3EK/?= =?us-ascii?Q?UkvU0M7XALHNTt+m8C7eMw7//JmFiMH/+e6lS5OF8OiGTDLXdD/YNSpHXA0X?= =?us-ascii?Q?B/w36yx7Q2CpT15STVfPnGqduRzXzHHpbKUG7tn3zTTRUhD0S674oeSoZdC7?= =?us-ascii?Q?gBYQjkVUVo1CBA752tMyc80Q/axykmvv8bwNw2Zj+qMFY83/UE3B+hS7ZZvu?= =?us-ascii?Q?y2Wk1ogKDBbZfgAsOIHtENeRcZ46YcFFrQ0yZek0C0ttlscJf1GRJVO0o0px?= =?us-ascii?Q?tvo2pMlqP++M3IBJsx8LjofwK9kf9uvaW18ANo02AhP2/pRgylWhWbgAP7c0?= =?us-ascii?Q?uXh2Xqczg07m482GYNCKhdn4q6DqYyRp1GPRqLByshz55KZGDLP+KA7yd9lu?= =?us-ascii?Q?RwK+71q8oTO0fkdSQc0NFedkO//QuDOJiI0nq0ypLBZ53fiqCfamx3q0G8dy?= =?us-ascii?Q?qtc=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: DM8PR11MB5591.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ea8a763-fe39-4474-d900-08d992e2e00f X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2021 09:28:56.7422 (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: S8gFL5VBCu2IAfc7f9/jgMPtGdZoalS47k7j+/cRFeKUpOw1X77WvWrWFz1OSX/Otp68VFRihFEQX6lQbChyfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5621 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v10 1/4] Enable ASan for memory detector on DPDK 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 Sender: "dev" > -----Original Message----- > From: Mcnamara, John > Sent: Tuesday, October 19, 2021 5:03 PM > To: Peng, ZhihongX ; > david.marchand@redhat.com; Burakov, Anatoly > ; Ananyev, Konstantin > ; stephen@networkplumber.org; > Dumitrescu, Cristian > Cc: dev@dpdk.org; Lin, Xueqin > Subject: RE: [PATCH v10 1/4] Enable ASan for memory detector on DPDK >=20 > > -----Original Message----- > > From: Peng, ZhihongX > > Sent: Friday, October 15, 2021 3:28 PM > > To: david.marchand@redhat.com; Burakov, Anatoly > > ; Ananyev, Konstantin > > ; stephen@networkplumber.org; > > Dumitrescu, Cristian ; Mcnamara, John > > > > Cc: dev@dpdk.org; Lin, Xueqin ; Peng, ZhihongX > > > > Subject: [PATCH v10 1/4] Enable ASan for memory detector on DPDK > > > > From: Zhihong Peng > > > > `AddressSanitizer >=20 >=20 > Good work on this. It is a good initiative. Some comments on the docs bel= ow. >=20 >=20 > > diff --git a/doc/guides/prog_guide/asan.rst > > b/doc/guides/prog_guide/asan.rst new file mode 100644 index > > 0000000000..b732288af3 > > --- /dev/null > > +++ b/doc/guides/prog_guide/asan.rst > > @@ -0,0 +1,35 @@ > > +.. Copyright (c) <2021>, Intel Corporation > > + All rights reserved. > > + > > +Memory error detect standard tool - AddressSanitizer(ASan) > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D > > + > > +`AddressSanitizer > > +` (ASan) > > +is >=20 > There are a number of minor doc and grammar issues in the rst for this pa= tch. > Rather than going through each one here is a rework of the asan.rst with > these issues fixed: >=20 > .. SPDX-License-Identifier: BSD-3-Clause > Copyright(c) 2021 Intel Corporation >=20 The v11 version will be fixed. > Running Address Sanitizer > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > `AddressSanitizer > `_ (ASan) is = a The v11 version will be fixed. > widely-used debugging tool for detecting memory access errors. > It helps detect issues like use-after-free, various kinds of buffer overr= uns > and similar errors, as well as printing out detailed debug information > whenever an error is detected. >=20 > To enable ASan in the meson build system, use following meson build > command: >=20 > Example usage: >=20 > * gcc:: >=20 > meson build -Dbuildtype=3Ddebug -Db_sanitize=3Daddress > ninja -C build >=20 > * clang:: >=20 > meson build -Dbuildtype=3Ddebug -Db_lundef=3Dfalse -Db_sanitize=3Da= ddress > ninja -C build >=20 > AddressSanitizer is a part of LLVM (3.1+) and GCC (4.8+). =20 The v11 version will be fixed. > .. Note:: >=20 > a) To compile with gcc in Centos, libasan needs to be installed separat= ely. The v11 version will be fixed. > b) If the program being tested uses cmdline you will need to execute th= e > "stty echo" command when a error occurs. The v11 version will be fixed. >=20 >=20 >=20 >=20 >=20 > > diff --git a/doc/guides/prog_guide/index.rst > > b/doc/guides/prog_guide/index.rst index 2dce507f46..df8a4b93e1 100644 > > --- a/doc/guides/prog_guide/index.rst > > +++ b/doc/guides/prog_guide/index.rst > > @@ -71,3 +71,4 @@ Programmer's Guide > > lto > > profile_app > > glossary > > + asan >=20 >=20 > The asan file should go before "glossary" and after "profile_app". >=20 >=20 > > diff --git a/doc/guides/rel_notes/release_21_11.rst > > b/doc/guides/rel_notes/release_21_11.rst > > index 4c56cdfeaa..b6c4174dc6 100644 > > --- a/doc/guides/rel_notes/release_21_11.rst > > +++ b/doc/guides/rel_notes/release_21_11.rst > > @@ -159,6 +159,15 @@ New Features > > * Added tests to verify tunnel header verification in IPsec inbound. > > * Added tests to verify inner checksum. > > > > +* **Enable ASan for memory detector on DPDK.** >=20 > Change to "**Enable ASan Address Sanitization.**" >=20 >=20 > > + > > + `AddressSanitizer > > + ` > > + (ASan) >=20 > This text should match the edited text above. >=20 > John >=20