From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98C25A04C5; Fri, 15 Nov 2019 15:46:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D51A62C08; Fri, 15 Nov 2019 15:46:21 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id ADEDD2B87 for ; Fri, 15 Nov 2019 15:46:19 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAFEj84f022076; Fri, 15 Nov 2019 06:46:18 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=suxzM0q92PP8NiT5cNLm+gZdDsKqjbjyKdHYTGgh3Ms=; b=S/xMzzq3AHAm/xe+yIpQfPgtO2zLbOSCWrT6hWprVzh4BNUIAzqQXM2aZcrm/rnA4uZ3 T4KwDtVl27dVAd3i+q4PgR2Zaq1Shm9+qMDyPR2NvmWCJnuSRdLEAnUONPZjxyTp6Gdh QjLMstVH14QHlZrtIvEL9IvcGBWBd52jW6M30r9caqATDpGH25USvkkgIq8+Pj0cHdSh DERq4EnkHYgWsob0c+npkTlPmYLmI0x9PQqz9jb/iEqftK7RXanVNb1V7s5dHcxsS6Y1 VBsGT4ycDxY/A7VX/Ie6yDy4x4F1sw5ItGPj40SQmGz+lYFGbkOceuEV61aA6jgdeY5I Ug== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2w8wwg88qj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 15 Nov 2019 06:46:18 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 15 Nov 2019 06:46:17 -0800 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.52) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 15 Nov 2019 06:46:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bKM+ftxa2pkUxnPIoXMrkYBlU+YiNkxs0g7ly33JxY700ZPV0uQSOZK50Amk9UVJtCAGc18PyZrpEfe6ig6mJ/8y/YkTKqc3uj8iccTRLzQ3HeAwP2PGAi0OCfKIlhH730n0mJnC6ALPW6JcySQSCSD9K7m4ORiZCpVgTckFfiNvRjjIS9lGVCNwWrSho8+XUBmAGEAcDrHOl7mgAE7/6fLFu5SfKTrZBHKJrgzbT3wY5cVNl67d3ZuipsT2mdvYxQfUGs1tVY97lEi5coYHkI9dHK9n2yMdREg/sd31Ofa4tidH7pixcWC73SSCusg+8k99rJxCL0+pU18H8Wu9Fg== 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-SenderADCheck; bh=suxzM0q92PP8NiT5cNLm+gZdDsKqjbjyKdHYTGgh3Ms=; b=NBYMgViHGhbCZfWKvtqwDAjuXfY1zAzJlSNjAI52p4Fcv3jBGzk8HBc4/S5jt+2aBBpiJaJZ99PhGHrJ5Q0ITzi5oKmBghJjgZ7WihL7LRyMgeki9fqeY4Z7CwwkXOxTO/rhGHwex1fVjHJYCUM3NTneSJrmvtWiarpj1KTsa4/pKloBtxOQj14SPUYYtlEkSO1gJBs3A+VEejlBRk9/b4+jqg28EdviA51LbyhGbrzmTSHyi8GbFAdh5QeLJeqtywd1+fDqDIhAEFBqbsRAodDZ67uK4Yh8hELkuerSF6R6GPZAhBCyXMl+7LdC9ZGj2IOqr1N0wFgrm18nhtOEXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=suxzM0q92PP8NiT5cNLm+gZdDsKqjbjyKdHYTGgh3Ms=; b=GpFPNOhR5mib/TWzpTuuKH6b1Q30s2rMq9Nh9Xh3xqOSZfSaWfc03BWKLRAmDwNPZ+zeJx1enxbl5gAu9vFVaLWFwhnxaztUvvULzjHjmKp4lz+Jwz+zLUB1lEo+E1UijLNk8VCuP+pdzIXArie6RLiu1b66mSw+NZ8rVnyKnQ8= Received: from MN2PR18MB2848.namprd18.prod.outlook.com (20.179.21.149) by MN2PR18MB3247.namprd18.prod.outlook.com (10.255.237.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Fri, 15 Nov 2019 14:46:15 +0000 Received: from MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::a8a7:cb5b:a6a6:9693]) by MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::a8a7:cb5b:a6a6:9693%7]) with mapi id 15.20.2451.029; Fri, 15 Nov 2019 14:46:15 +0000 From: Harman Kalra To: Thomas Monjalon CC: "dev@dpdk.org" , John McNamara , Marko Kovacevic , Bruce Richardson Thread-Topic: [EXT] Re: [dpdk-dev] [PATCH] mk: add support for UBSAN Thread-Index: AQHVVpTDs7FnaDuo7UCImNLU+qa6/aeGEA8AgAbJh4A= Date: Fri, 15 Nov 2019 14:46:14 +0000 Message-ID: <20191115144549.GA158812@outlook.office365.com> References: <1566222457-17342-1-git-send-email-hkalra@marvell.com> <1638210.PZqRnmcaYt@xps> In-Reply-To: <1638210.PZqRnmcaYt@xps> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0101.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::17) To MN2PR18MB2848.namprd18.prod.outlook.com (2603:10b6:208:3e::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af65a02b-102d-4971-b869-08d769da90a1 x-ms-traffictypediagnostic: MN2PR18MB3247: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 02229A4115 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(39860400002)(136003)(366004)(396003)(199004)(189003)(25786009)(3846002)(4326008)(81166006)(81156014)(6116002)(71190400001)(8936002)(71200400001)(478600001)(305945005)(9686003)(7736002)(6486002)(14454004)(8676002)(6512007)(86362001)(229853002)(6246003)(316002)(26005)(102836004)(486006)(66446008)(1076003)(33656002)(186003)(54906003)(446003)(66946007)(66556008)(66476007)(64756008)(6916009)(6436002)(55236004)(11346002)(476003)(66066001)(5660300002)(256004)(52116002)(76176011)(2906002)(6506007)(386003)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3247; H:MN2PR18MB2848.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: W9lcZQeWrmgzNJjFqmUn74fdUXOUbjTvchF3mFm0Az08/giZ6ssuxB7GPFxhRp0lJQT7+/MYmkggZV4MZS2emSxD6ZQR6igbZCGmRYRttA1FewmYBjjZwOximi6Lf7Jh/GM45QSJc5xfL4j2kuZbBSH97rTzA70r+XH/TQUG0zuEqbMajOOgVixv1tgPwW4Te9PQTbvuNabHhtzJjwi6/veNA3ObYkbuHVTVY1GcBOsRPDfoEtFOzVuLMoUMMm9AU+96sbv47J1rwZakIh/m2dNzUPKwhuAwh0bxDSHepEnzO0MQ0tBjVvOKH4kCSCk8Nyl6ZTTXi0iVo/ZHIEUAE8NynkryOR/GoEzG/LoZIv+NWqeMEsXCsEKJLkKkkEJGFFCk+9Md79pNOtOiJG8XZUuRa2I8AICKB31i3FdiRkpECySlXZxPfnGq6uwhu81o x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: af65a02b-102d-4971-b869-08d769da90a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2019 14:46:14.9597 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: r36MFrcYS7DghdKxyx0Myk7omH9qYisjfOINf1ZL4BCM5hH+Xys5qgxlV+WxXul0oOU9yDzGmXTrH2763wnVyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3247 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-15_04:2019-11-15,2019-11-15 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: [PATCH] mk: add support for UBSAN X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Mon, Nov 11, 2019 at 08:07:00AM +0100, Thomas Monjalon wrote: > External Email >=20 > ---------------------------------------------------------------------- > Hi, >=20 > Sorry for the very late review. > I hope someone else would try it. >=20 > I tried this: > devtools/test-build.sh -v x86_64-native-linux-clang+shared+UBSAN+SANITIZE= _ALL > and it triggers some link errors: > /usr/bin/ld: rte_kvargs.c:(.text+0xc65): undefined reference to `__ubsan_= handle_pointer_overflow' Hi, Thanks for trying it out. I came across these errors when compiler versions doesn't supports UBSAN=20 Can you please with latest clang version if issue still persists. =20 >=20 >=20 > 19/08/2019 15:48, Harman Kalra: > > UndefinedBehaviorSanitizer (UBSan) is a fast undefined behavior > > detector. UBSan modifies the program at compile-time to catch > > various kinds of undefined behavior during program execution. > >=20 > > This patch implements support for UBSan to the DPDK. > >=20 > > See: doc/guides/prog_guide/ubsan.rst for more information. > >=20 > > Signed-off-by: Harman Kalra > > --- > > +ifeq ($(CONFIG_RTE_UBSAN),y) > > +ifeq ($(UBSAN_ENABLE),y) >=20 > This can be replaced with an oneline: >=20 > ifeq ($(CONFIG_RTE_UBSAN)$(UBSAN_ENABLE),yy) Ack, will do these changes in V2 >=20 >=20 >=20