From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B997F7EF0; Thu, 17 May 2018 18:31:44 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2018 09:31:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,411,1520924400"; d="scan'208";a="200231421" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga004.jf.intel.com with ESMTP; 17 May 2018 09:31:42 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 17 May 2018 17:31:40 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX156.ger.corp.intel.com ([169.254.3.233]) with mapi id 14.03.0319.002; Thu, 17 May 2018 17:31:40 +0100 From: "De Lara Guarch, Pablo" To: Jerin Jacob , "dev@dpdk.org" CC: "thomas@monjalon.net" , "Doherty, Declan" , "andy@warmcat.com" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 2/2] app/crypto-perf: fix memcpy source Thread-Index: AQHT7RFsIwWxaPlIh0mxZVJCNIu2HaQ0Gbvw Date: Thu, 17 May 2018 16:31:39 +0000 Message-ID: References: <20180516063955.6193-1-jerin.jacob@caviumnetworks.com> <20180516122804.535-1-jerin.jacob@caviumnetworks.com> <20180516122804.535-2-jerin.jacob@caviumnetworks.com> In-Reply-To: <20180516122804.535-2-jerin.jacob@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTk2MzFmOTYtMTZjNS00MmEyLThhODktNzIxODE1OGE2NGQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkVuYW44K0V5ZTNPdnRTNkp3dkdiM09IdzdXbEtSdFpscFpYZ1NadlhTUnM9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2 2/2] app/crypto-perf: fix memcpy source X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2018 16:31:45 -0000 > -----Original Message----- > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > Sent: Wednesday, May 16, 2018 1:28 PM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; > thomas@monjalon.net; Jerin Jacob ; > Doherty, Declan ; andy@warmcat.com; > stable@dpdk.org > Subject: [dpdk-dev] [PATCH v2 2/2] app/crypto-perf: fix memcpy source >=20 > Since arm64 was using plain memcpy for rte_memcpy, gcc 8.1, could detect = size > was more than source address range. In this case, the source was wrong. >=20 > /export/dpdk.org/test/test/test_cryptodev.c: In function > 'test_multi_session_random_usage': > /export/dpdk.org/build/include/rte_memcpy_64.h:364:29: error: 'memcpy' > forming offset [113, 184] is out of the bounds [0, 112] of object > 'testsuite_params' with type 'struct crypto_testsuite_params' > [-Werror=3Darray-bounds] > #define rte_memcpy(d, s, n) memcpy((d), (s), (n)) > ^~~~~~~~~~~~~~~~~~~~~ > /export/dpdk.org/test/test/test_cryptodev.c:6618:3: note: in expansion of > macro 'rte_memcpy' > rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, > ^~~~~~~~~~ > /export/dpdk.org/test/test/test_cryptodev.c:140:39: note: > 'testsuite_params' declared here > static struct crypto_testsuite_params testsuite_params =3D { NULL }; >=20 > Fixes: ffbe3be0d4b5 ("app/test: add libcrypto") >=20 > Cc: pablo.de.lara.guarch@intel.com > Cc: declan.doherty@intel.com > Cc: andy@warmcat.com > Cc: stable@dpdk.org >=20 > Suggested-by: Pablo de Lara > Signed-off-by: Jerin Jacob Applied to dpdk-next-crypto. Thanks, Pablo