From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0089.outbound.protection.outlook.com [104.47.37.89]) by dpdk.org (Postfix) with ESMTP id 8B5781B1D9; Wed, 16 May 2018 14:28:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PrptfLdmrf6LmIjiwshzrv5jp5KvgkPLMCVqEynvk9I=; b=cosKrHkyiLJOqp2QLPEDw42/C/Tnkmg5b/WHokf4DSjmshmTrlFH+4lcMh5lQfcs0UuUYienT60gw47dQugty7cFaOCc53tRStdqurq5iPDWfiMuiUaYdDbemWWzc+8yOPqFiWTuaWJ7LGXepZnzI5kn2/2AHiAP5N95SVL9OFA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.caveonetworks.com (122.178.241.249) by BN3PR07MB2513.namprd07.prod.outlook.com (2a01:111:e400:7bbf::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.11; Wed, 16 May 2018 12:28:27 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, thomas@monjalon.net, Jerin Jacob , declan.doherty@intel.com, andy@warmcat.com, stable@dpdk.org Date: Wed, 16 May 2018 17:58:04 +0530 Message-Id: <20180516122804.535-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516122804.535-1-jerin.jacob@caviumnetworks.com> References: <20180516063955.6193-1-jerin.jacob@caviumnetworks.com> <20180516122804.535-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.178.241.249] X-ClientProxiedBy: CO2PR07CA0072.namprd07.prod.outlook.com (2603:10b6:100::40) To BN3PR07MB2513.namprd07.prod.outlook.com (2a01:111:e400:7bbf::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:4CxqkuCkuLycAV9tiYsNTQVRuswuopLBKov/fF6ofhr+o/jVgz80tEtWB39bvmAld1rnWpTekLh8dkuI3Wel5YWk2uCx0fqk2DQGADmUq1HfVvU4WAxTNdt14R6IdpjetPAJB41UK7liOkATIcyJia8mcBMaALpgVWMi27HvSXRirzGB8AAQjnqW2aev8q3sVol8OnpiK9r0sS9mz1GXkRKpXvkqpoOQ/inNdGb6RYosTsb3vJ6Au9+Bh8b1Lfmm; 25:k+Y9SZcH2iTVHuLa1kVkSLWSbjWTfpqdQT55yAHkXC+Hc/tDfPfpRIRm+XiBaF5oPsE8gmwH42e1Nn8egoj1IWo+gf+1lCL7cI6UrGmLHAwaaE1uThqgAItFlL4pnqS1N7mkeCxlO6hcZrwB7h1cCOIa/Y4OS4XBE25GGcxez1FsdqpINHx2tv/TaiVhb3v3/qmpZLxVtDJ2FT6ohSu01nfk5YBlvxQmCvxV/Ecr4H6nPpQcDW1aUM8nglN3wojQm29scYA8nlnHXLGt9Zj6ETsuJByntJIeLcT9FF341TRCqfSYu07DKBfldE6rDSkc1u8AWkILKpB9TwrfVUPO+g==; 31:XdVxMHOBiG8S+cQOZq2ptM8IUhV46xnVj2Xic2foHxRZZubFFHvIr9EnQpC8WJA+spAP+rwrj38trgvjS53tvHycuJyRzwoFap/PNO2mkB9KK/QD/I0J7c9crWQ++PW8Sh47IUy6+bYM3le0tsuaeiSGzQQ8Ds1Tg3/4xblwewknjFBXeU8cN7h7F59GkjoLX2nHbuV9TMQHBEJQ51Knxi/rsZvPqPnseUu0iTaD5Mg= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:oVxEKO4TmMk9dMZI7HRTzMrqaTAS9PHhu/bwO6JVBEJK71BJKB6solswVaIkw/BLC5sGodEn/RthHQtlZYJNU75mE1LKlvmZlsiEBlwbBG9+jeptL7gDVWT3bmNd/SP0skbgGFpVqEo6gLEiCWfu9asKoc7wDFFF4qeNT1LnB9HZRO79fAyB0SXx51f8Sc798WVRXP7p9crq6DrOPZzUM3qx8bgAD3OZqoJzJeNIKKJSoDjXCY/NfCWQU+YvfmpWRuywwIC1Xv+CArfd2D3DLM3hwKnHCMqSBSM+JQJW1WV9xLDttjNI5rJ0XIfXGXHenCOj+Z1ORKW8298B55Dx+2ZvR7bOx7v1nMJeXD61w2F95PWLgXudHMP82B53EfQ46D1y8vTIdFoSZ1SUYVWLP+IGYXlLqm7tPNsJJgslFs3WqNoWlAfim81uUYjamYu7yTilG/e8g7jyUkzKaeEjucPbKiQVjryAfxMqozRTnDiBPKpXt1yLTksosPsq70YBsymz4zLCyXd5kHyJiiE1Jzc/+Fbu6cDoMJJQZTCLcstgSqBDqy4t5hlXu1852tUMY/bYZOjRGoRa6hDp3ejjtCLMV9olHcsQJBLZgThi76I=; 4:8ZjpmnCc4HPBbHOTZROu3rkm2ot90F0G011cGfOHreqRrHnwCVceWNwII3anKEVYSS+r6WA67Nd/gKrrw+RjYqcA/24yt02Phq8YhFdaZN+lKbJ3P83z3MY6o6H8mDVRfceLq4xP9q3YhC3SgKIUIckFq2u4dIatxc0N4rbywXXIkZyAnCaoGCKYlCMH7IBW0r48LQv08iJVjj7hJ8OI71Q67dWGUFKefFiaj+bpbnnkzqUj1t34QjMDGnwkQZ1uqmCh74zk5DEwDY0i42aGBKjcub6UcwE5IBAb7zqtkR7TIC+yMSSQ4ExhDEgJNtMw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231254)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2513; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(39380400002)(396003)(199004)(189003)(69596002)(186003)(2351001)(68736007)(2361001)(6116002)(3846002)(59450400001)(386003)(575784001)(25786009)(47776003)(26005)(36756003)(6506007)(76176011)(51416003)(16526019)(1857600001)(66066001)(1076002)(52116002)(81156014)(6916009)(316002)(6666003)(16586007)(305945005)(7736002)(8936002)(81166006)(50226002)(8676002)(446003)(44832011)(486006)(5660300001)(42882007)(53416004)(97736004)(956004)(2616005)(11346002)(105586002)(476003)(106356001)(966005)(6486002)(4326008)(6512007)(2906002)(478600001)(72206003)(53936002)(50466002)(53376002)(6306002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2513; 23:GniR7Mz4dWmKquyiU9L+n3TrESqlE9pRplkq3RYXm?= =?us-ascii?Q?+96meF1eExy2S1aKACOHyYtzct0ISH7mM1AmVQ6NMYja6sSkjzkGMERHks1a?= =?us-ascii?Q?BTDjZkzybK1UNo9D+Bs/qwegPqLxcjbRzoP2VF/8CMOVj3f5D8lUeOotYrSE?= =?us-ascii?Q?pcwuFanM8rudQJJJg9seBEf2gqmtyngyy9cy+Vfy9X4jES6iZbOQY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IAAxvGyuSUCJEffauwnEvT3q?= =?us-ascii?Q?45TZxyLlw5lejkaD29I6LxO0sES6X0swqiMp0Rin3lALZ0BSj/r/L/HcUoeD?= =?us-ascii?Q?3Wd9Log/K0ssV3UmdmpByGVt6UyXnP0Z145uMP9SbTe53/ghEWkV3MYXFCII?= =?us-ascii?Q?cBvdho4XJaLAvGQFrYLVDC68eq0IV2VfonIhR+iiPzmnWnRpJoj8tSvNYIex?= =?us-ascii?Q?urxJZ6upfLra474afDqIWsG5+n9F0hubMo5d/Hr8yvLkcntyOkkmqu9EHoLk?= =?us-ascii?Q?QznvL6SCjQCgoYX9sa0ta+QiOQft3115Pde+5Lr7nHlExjjMfGpRUu7WVuab?= =?us-ascii?Q?5O041oY6VyNjWsdji+BV3wXysOGiEI=3D?= X-Microsoft-Antispam-Message-Info: GzMon5MoclLgJ/iS950TXJpc83HnzAIcfdjtrWtczwh716bVsL6jrRHoJ8Fsa/3vywUjLWcTtOpBCyE6edIDCa5ywvbOo/wZNkJxiDgZhGDwwdlxyxUvorIzTYxhCIVEo4kKAnK3uy7renLSw9Ylo0qJn+3bTLCbQzSj+eDLHR9pKhQHpe3t6laTmBmrB/vW X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 6:irPhYlWS/HHERQco3yD8Hah5HqgKYuxCp0DYYE50GaKYpS+7dL7cqDJGvb6roEm9SfDiDqZZiP+fDzekuQVW6aD9NU9pM0VwmLZVu7zSlibVaSdvldX8OBhnWs0yR95/ir1Fory/RBwmokEbxxrIzpk/RvUBc2leHETroTTpQ5CaAQh7P3MTvcrrz+KuKwZvsRoP8WcYseC2kubAzVmfkr2ME/YBPXI4VsZCAv1QtB1FEpk2U2MxXK4HFPFxjRxu5030WiiM2g7EwheAgO5gETyHMSFbL7RjpUx197jC9Dl31/tPL63KqAi4/jP58AY0t5A1wvHzfk+VbtCFflNR/cqkF+lEmGvqUeya6NFK9h/eT4My3EnFgz1lhj/CzuR+gDpJFRfH9oMOcjWaHISQMhcjHCAL/AqJ0K7iqUjiNyL36jBEeu9ToRSQPDttBaU0GaV9c07ZYU3AR37BdXRUGA==; 5:lGOrM7JPUYF54jkTehAjMv7xedhTg0a6gmNulEp97GOTgLh9ZmseL01wxDd/iaZ8x2TZL7AC4s/4qalIBeFE0lpmlFTHIUcF/HSp/RGEqZabHhgiO5H3QhFZ/WyAWxU53eHVrAUbqI/G0G6kLq9rApZZYLY/3zrzFkhXD6sHkpY=; 24:wK2KgGDA6jvcpdNKbfn+5Wh+mNdOKF2BOKgUq56jFIMJsZ5kqkm9lL9D60xll+S7pdSo3HgoETIXgJjhgonZr7EkVC06tKQ7h/OHu1t8y4Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 7:9U4Y+terqhWMCtpXsuyw58/7w/CNMKgaUk1fUdOoy6jWm4oqKlS9Y0xkvjUUWRqDAMM701fE/JO8Ieu2nr+fVcEgBqFFZc32AXRCKUZObvZiYKOQXTN4zyV3Ptz4iOmIZGI8ZU/TnhIhEcU2qOWB8YHQlyiBmXKLh7mAC52Ko0FrjS8OEDDmvNz8LN+vNajDSl4UKfaNcV80rTZAI0Zs3/J4QonKI3geKRjXmT6MgOgSX32ojzSzJ7PNjkG7of/Y X-MS-Office365-Filtering-Correlation-Id: 9586b7ec-bd4e-49ad-43b7-08d5bb288885 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 12:28:27.5532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9586b7ec-bd4e-49ad-43b7-08d5bb288885 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 Subject: [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: Wed, 16 May 2018 12:28:34 -0000 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. /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=array-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 = { NULL }; Fixes: ffbe3be0d4b5 ("app/test: add libcrypto") Cc: pablo.de.lara.guarch@intel.com Cc: declan.doherty@intel.com Cc: andy@warmcat.com Cc: stable@dpdk.org Suggested-by: Pablo de Lara Signed-off-by: Jerin Jacob --- v2: - Addressed http://dpdk.org/dev/patchwork/patch/40086/ comments --- test/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index 680082f2b..940e3378a 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -6615,7 +6615,7 @@ test_multi_session_random_usage(void) sessions[i] = rte_cryptodev_sym_session_create( ts_params->session_mpool); - rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, + rte_memcpy(&ut_paramz[i].ut_params, &unittest_params, sizeof(struct crypto_unittest_params)); test_AES_CBC_HMAC_SHA512_decrypt_create_session_params( -- 2.17.0