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 ACA29A0540 for ; Tue, 23 Aug 2022 19:16:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45C1340DFD; Tue, 23 Aug 2022 19:16:05 +0200 (CEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id ECAF640DDE for ; Tue, 23 Aug 2022 19:16:03 +0200 (CEST) Received: by mail-pf1-f176.google.com with SMTP id w29so8511402pfj.3 for ; Tue, 23 Aug 2022 10:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=aXEKZ09UgvBSNi19al4dfytbRrjQIcIrmbZoCidY4LU=; b=krzrRLxECj7/VDv3iirwIESQw80kVOnK4T+RunB0a3hBJEbadS1dvzQZbUlXJ4PjVu Z2McT47NOCQlfs4Upzj/Fbwc2T+Da6Dv9LJZ5l4tmf7uWqp7gVXyCW2KmqyCDwkyhONf VXtFEGsTMuPy2E4asKCAmVz8R62cH2sj3lH6Qw+tmf0EiT2mD82JwczQPH5hEWkFFeSz QHV+B/keqPlP+DMopGlTYozBlwIZ3EDJ8fvKQK8Kn0H88Fi9B20j8WyoHPbeDIh2QeSH V/h28BS4dkMWftGA1fIBGosvVejXDyMfXNZiJ9p9ZAQpdwMqPC1QFfH1r/KD8AeBfi8X wXxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=aXEKZ09UgvBSNi19al4dfytbRrjQIcIrmbZoCidY4LU=; b=KFBkacw1HDbAWa2nMDC81C/hBgY0am6lBaDFwZDAYHxbkv4ZakN/ZlVDxTkCdUVpvl 0icxELDu7oypT0oiqAOgLO9LzFv8W1Fflg9zdNSlZ3TPppSpagiIbMSyKlxmHhUmkDUu dG6y1/X5juPpPqirp5ZlLY/Lnfh2zbURlichgDENYX/GIAeX16oC24i03iW7aRMoq13B etJlIUm+/SDCYyJ5rApHSlzpY5pj+tr2eEgdcLozhhwm5PhR3V3H+sVFUIBbuVWcYQJ0 /vcFJqsqWsopJvrFhu5tLGKHOSTxTO2LS+yteVsN+zzBwE1JbsTNXpLwawNK29aJPhJj JuDg== X-Gm-Message-State: ACgBeo3JHfD4uXAk7U3FXCAsIppXMG/zAFxuomaXZx4GXjcEyrnorCCQ kL3ud9OzB1FplADTqYWd0krtqGeYli8bmefEEYIab+kZZoY= X-Google-Smtp-Source: AA6agR5gC65F0kOKAy2cLvd7Fk33Owm88tu9A+2pJL5YGSx2vpOmltFXe2FGGkHYz03DobFVPYnhAdsBrGCIh+GR0kc= X-Received: by 2002:a63:b24e:0:b0:42a:b42b:3826 with SMTP id t14-20020a63b24e000000b0042ab42b3826mr8613428pgo.605.1661274962507; Tue, 23 Aug 2022 10:16:02 -0700 (PDT) MIME-Version: 1.0 From: "bhargav M.P" Date: Tue, 23 Aug 2022 22:45:51 +0530 Message-ID: Subject: Running DPDK application in memory sanitizer To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000003baf805e6ebb8df" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --00000000000003baf805e6ebb8df Content-Type: text/plain; charset="UTF-8" Hi, I am trying to run a DPDK(20.11) application using memory sanitizer. I have taken the patch from upstream branch: https://github.com/DPDK/dpdk/commit/6cc51b1293ceac4a77d4bf7ac91a8bbd59e1f78c and made a build with -fsanitize=address. The gcc version is: gcc 6.3.0 . But the application doesn't abort whenan invalid memory access is made. starting the application with below: ./dpdk-app -l 2-4 -a 0000:00:05.0 -a 0000:00:06.0 -a 0000:00:07.0 -a 0000:00:08.0 --socket-mem=3072 Note that the hugetablfs is configured and dpdk allocates memory from huge pages and seems like invalid memory access doesn't abort ex from the application doeing below doesn't abort: char *p = rte_zmalloc(NULL, 9, 0); rte_free(p); *p = 'a'; Am I missing something here.? is DPDK ASAN is supposed to be used only in 21.11 release onwards Thanks for the help, Bhargav --00000000000003baf805e6ebb8df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I am trying to run a DPDK(20.11) application using= memory sanitizer. I have taken the patch from upstream branch:=C2=A0=C2=A0= https://github.= com/DPDK/dpdk/commit/6cc51b1293ceac4a77d4bf7ac91a8bbd59e1f78c
and made a build with=C2=A0-fsanitize= =3Daddress. The gcc version is:=C2=A0gcc 6.3.0 . But the application= doesn't abort whenan=C2=A0 invalid memory access is made. starting the= application with below:

./dpdk-app -l 2-4 -a 0000= :00:05.0 -a 0000:00:06.0 -a 0000:00:07.0 -a 0000:00:08.0 --socket-mem=3D307= 2

Note that the hugetablfs is configured and d= pdk allocates memory from huge pages and seems like invalid memory access d= oesn't abort

ex from=C2=A0the application doei= ng below doesn't abort:
char *p =3D rte_zmalloc(NULL, 9, 0); rte_free(p); *p =
=3D 'a';
Am I missing something here.? 
is DPDK ASAN is supposed to be used only in 21.11 r=
elease onwards
Thanks for the help,
Bhargav


--00000000000003baf805e6ebb8df--