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 E9159A0C4B; Sat, 18 Sep 2021 08:36:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3FAF40041; Sat, 18 Sep 2021 08:36:26 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id DD32C4003D for ; Sat, 18 Sep 2021 08:36:24 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="245318150" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="245318150" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 23:36:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="472537104" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga007.fm.intel.com with ESMTP; 17 Sep 2021 23:36:24 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 17 Sep 2021 23:36:23 -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.2242.12; Fri, 17 Sep 2021 23:36:23 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2242.12 via Frontend Transport; Fri, 17 Sep 2021 23:36:23 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.174) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Fri, 17 Sep 2021 23:36:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J3ww7E/QG2YM/4X+Hp8XiqWRmWLB1TugZKD8xGUh09YcEwS6YJ+u1KklM1j2tsBIlmftcwc+VNLaSUVCgfvQYPGg4SgfOA9BwV/sfYNwFP+sYcpFQS2wjiuutOfsMNNQBYrDa54u2nu3EL2F+W1oz/OqV9hOPz1fZZGsb9taGdZWk9n+AJ8bK/Fp8X0JIDyH5teRU/qMkd2mX5TsQPslmcrcGG6XFru1KbkFIEtvgdQ9gLg69OQNkpP/zmndTzL0A08S/v7imt2GVyPZnRLWnYF7nyARJnl6fslt6Nap0sFCjknEovcrH3FKysPpk3BeZHZqBZZAiXLbaOiIEL+uww== 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; bh=X2WkKmVaNOmu5OP5KdQlj4/H9WA0c90XVGQ8HZRPESE=; b=KL1CmQ8C3GUIyWXMW2N3uGsJwBKMQ9wU0V0tGLVQOhmZAN1ELm+eHDtKMCxzJHdag9HBQqxRR+3X6yqz7WgKWCD0aaS+4xxgeWHy+UI/2pPPPUwdpZlJbmADxJZ9Rvl6EJeOzLDB5p/WtjrRrzO+LVhT1Jg3nBf/chH3AqOMkN+sGQ99BFq2tZi7gquseRPtONmYMR8NC6QayiR13eUwDOW1QQend1hyDYsPYvSVuBFGUabH4VFVqpLS1HXngTWP/GGZvMppDLKBBQzZePsNtiFN5cW+iYp2owBfo4/bOAWuNOS0/HLQL7NlFW0pLqhgWeCT1nCMKaDGw0DF37myEA== 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=X2WkKmVaNOmu5OP5KdQlj4/H9WA0c90XVGQ8HZRPESE=; b=ZmJHn6cZIGmcmUCHmi0akWhiTiL+Gkcp28hldwgJlSBqMRCBSIBxJSFSRFxmyGAmnpLUhtftWrTApiO5BWRHYrPkjJQoDVL5DE+i2hWqnvar2Ky3e8+Z/o+47VhoKBAYQrisfeE4GxLFAWm9QKl31Od5rolV67M2WortXb/fT6E= Received: from DM8PR11MB5591.namprd11.prod.outlook.com (2603:10b6:8:38::23) by DM4PR11MB5568.namprd11.prod.outlook.com (2603:10b6:5:39a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Sat, 18 Sep 2021 06:36:21 +0000 Received: from DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::904:ace8:b3b:c1a2]) by DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::904:ace8:b3b:c1a2%3]) with mapi id 15.20.4523.018; Sat, 18 Sep 2021 06:36:21 +0000 From: "Peng, ZhihongX" To: Stephen Hemminger CC: David Marchand , "Burakov, Anatoly" , "Ananyev, Konstantin" , dev , "Lin, Xueqin" Thread-Topic: [dpdk-dev] [PATCH v2] Enable AddressSanitizer feature on DPDK Thread-Index: AQHXqpzYn3n2bC39x0qEt7ys1jcvw6un5UCAgAALTpCAAGM5gIABAKYA Date: Sat, 18 Sep 2021 06:36:21 +0000 Message-ID: References: <20210910020147.148019-1-zhihongx.peng@intel.com> <20210916013843.342366-1-zhihongx.peng@intel.com> <20210917075841.242ab988@hermes.local> In-Reply-To: <20210917075841.242ab988@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 032db623-72a7-445b-caaf-08d97a6ea117 x-ms-traffictypediagnostic: DM4PR11MB5568: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0stWeHho4FY0PqgZMwoHr7jqvVDyMteHGf28/AYDFGKh/cjFLdapsWePaOtPHp4Q7dJhkpawyV2/HnzblFiTKnXHY7lQo3YHmbk+ZUmCWUC/8D+b+FrkjQXo3ATp+jdcAHKKepcXHcIwVegp61spo0vYp0eeJc/j26W7qYuawdy3fha8qGZZuuRjtV2aVi6YwQcLEZLt+6XWzFI0BP9zamg8LsbUS/IH7ng/thOawTYGQ3LeOL9MCbSN4IWugtKmcX/OsQrLSJfZdn6/4BmM9Q6er17+LBrtM71RwKKaUyJcjhc0Au8RezGNgEeOY/dTKR8yXmhvAuu0q1i1HJt6rgMmvTSQBq0nggq2HtAOm0l4XaR5lElHbbL8AHQV8l8EWBho8OtG8wc0Z2NciIw/wtrT6NI/DnXHsVhO3f96U0ekoakdQlwZMjtbX6UkqkKDWxBUYTWB8pixhd2bxofRhAoKE8ytN4UlZ3JxZm3P0lerK+au2yAyx+J1zLpxsdHQCsfXZqUtLfAfA3panzGImqmnVsF5Gq2jWFifz9QXeBpmmidw/97rdpJ1Gcw4DWVcl5IBBdQnQbZCmxgubf7TrpRGNyLlXFDWlAiMkS59iGb6HC2AMYQxJr8ES3KrCGfkYfZIffAIwo+I/OwgjZbhU0DdB+FF+QNzrGUnf5qOalmMFUBi2XPe1uagOO9zvFoUnXxryTRpg1FvGCJyMDbT066oD32NWIa7mUwe5+3pWYfm39bUyBykcPG1pgvBIus8Cpl8jz8XDi+ALxXBYeM07KcdmRvJOcQHUrhGqd32m12WnPNbwpj1wTWwphEEsYAA 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:(4636009)(366004)(9686003)(55016002)(8936002)(4326008)(6916009)(2906002)(107886003)(52536014)(508600001)(5660300002)(66476007)(66446008)(66946007)(64756008)(66556008)(76116006)(8676002)(316002)(83380400001)(54906003)(122000001)(6506007)(26005)(71200400001)(53546011)(186003)(7696005)(38100700002)(86362001)(33656002)(38070700005)(49343001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lOUQM2PRJO50wehzFoLGchui6caXjmav//ZST52f2yq6+4RKwKgejY+hIc19?= =?us-ascii?Q?8qvLUd4ebnOcu+knRUinihOIcbBsYWnSw+2GfmIy+Pk+h6gNRTtBchyBdDKy?= =?us-ascii?Q?BZ80VmkpR3VUl7ssj5mELzjODAeHvVsJZsKex8TFyRJZB6iPeag2lyyD5+UM?= =?us-ascii?Q?acSXv4OSMdqJtFouDEumrcMWzNX+1o+DdNX5gjakxycMRBtGj13w9mQJxHOY?= =?us-ascii?Q?XL9pk95Vwt14nfHwoKZJ+TaFDrJoHSzGfrdPnXHp09Oc5+pOCFYDu9okrRTx?= =?us-ascii?Q?QA6me+HGFMyxWSBgmHp2TcCq8jBiJUqTkbjQ3LpcAdc2SmUVxF62lLY9pbm2?= =?us-ascii?Q?qrYlT3+X3TlJnugbrQCKopx+a9slilK5tNYTxbIUFvv3a6dBBy0ajMZ9q+Ng?= =?us-ascii?Q?G7/spk3svrnyD5Vn8LOQWSdJ9M5kscHBVftE66gV0zh6BCdl7VpsfWaStKJL?= =?us-ascii?Q?HFUbZgXWMihJ+IB4BQmBKkksYV6g97rc3eaZnYxoFRaYgLBRB7q4jEwptP5t?= =?us-ascii?Q?hhF/osr4DiFTuyFRMik08PL0HdDn109xQ49Eg1nT81dkMJgWALGEgM29I7j9?= =?us-ascii?Q?g3sknMRnkaG/sVlLncf5NCPOYGaJpwhUJitIjH+CQ2RHId0ImnXMPpwLhABe?= =?us-ascii?Q?6uoZHlr4eKf2fgOih6p6qOePmE39WL6ei4b4dmy6nspLxVNVrJO4TXj0kCct?= =?us-ascii?Q?S7y8ZktHkvNEga/piQXHDvIFUdcjMe9s1UO13yyWIhtu0PkT8nr2qVJ1yUKp?= =?us-ascii?Q?4ZdkT6btoFlOiqJWIxo5O6ge5aIVlLjxGut+kL3Fs+oU4qU0k5zZOb6guOBk?= =?us-ascii?Q?PDR8qzlQHg6We1l0Pcl0c6q5TC0h68zMrmGvIFrS8z26wEl+EoM8WTUSbv5C?= =?us-ascii?Q?5I45JyVBV3NQJ+t8N6bhe+3iI2Pre3heI1ZI5UhuwTOv4owSDUVm4YDHPfZ3?= =?us-ascii?Q?HnQmiQ76JdTaGtIceAnotGWKtyzBy1sewnXsArTB5HxdYbwHU/r7BLvg9itj?= =?us-ascii?Q?iVeFxejL9i6zIi1VMSJSruVuK+3zrfwWm+cOXbLnCwF2NPmfTydS3AxAKxIw?= =?us-ascii?Q?QHrdeVjpRrZclC1jGfDM+E9GkMQ+dt758UHFQauELzr59+i+GYG00qAoJV1J?= =?us-ascii?Q?ZgMyPRRTEIuXrRhiCruYvIS/c4zT5TLR59T4zkKSQq0wm2ZdfHtbaJ7CiMwJ?= =?us-ascii?Q?Rg3wBrc+fhATNcJ80noqbLLT9IRxRwhbsxgAsDioBtgsQ9iJcRRjy3Hvcoic?= =?us-ascii?Q?0M3jkNm+mW9GoksKYcn+UgeuyEm90O08b4pskdeqjb77/GKpIs6iMzsCr0x0?= =?us-ascii?Q?KmU=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: 032db623-72a7-445b-caaf-08d97a6ea117 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2021 06:36:21.3942 (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: ebShT5ow68oc4t8wsF3whQIwKADikbPq084QzEa/joKUz/pbmPUJpCu0Fx0iip9RI65I2p9uePXakP2hEAfPuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5568 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] Enable AddressSanitizer feature 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: Stephen Hemminger > Sent: Friday, September 17, 2021 10:59 PM > To: Peng, ZhihongX > Cc: David Marchand ; Burakov, Anatoly > ; Ananyev, Konstantin > ; dev ; Lin, Xueqin > > Subject: Re: [dpdk-dev] [PATCH v2] Enable AddressSanitizer feature on DPD= K >=20 > On Fri, 17 Sep 2021 09:12:07 +0000 > "Peng, ZhihongX" wrote: >=20 > > > > By referring to its implementation algorithm > > > > (https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorit > > > > hm), enable heap-buffer-overflow and use-after-free functions on > > > > dpdk. > > > > DPDK ASAN function currently only supports on Linux x86_64. >=20 > We are using ASAN on Arm64 without problems, don't know why the patch > shouldn't work there as well. Google asan cannot support DPDK heap memory detection. This patch adapts to= =20 google asan so that it can check DPDK heap memory bugs. For each platform, it is necessary to adapt the base address and do a lot of testing. We don't have an arm platform here, so we didn't adapt it. Peng, ZhihongX