From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0051.outbound.protection.outlook.com [104.47.34.51]) by dpdk.org (Postfix) with ESMTP id D0F781B623; Wed, 16 May 2018 08:40:22 +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=3BRlrMnBYhAdHklSKxjSPyfstTnDKYyYiBM3BcDF/OE=; b=XaVEvcndnNrji3KSSxmPypVoLzorKmM+f15Ls7jc1svUjemhRsAUdAwmjFABOjmrjArUJm8/TS3uMJzV8xCyC5OLLsOeBir/SuRq9ia5R1V8rGhd6qu8Lx5pCOvi1MsHULP9Yef4JnoJtehp5Rtntl6yZLXcUmtEEtE1NgfJ4IQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.caveonetworks.com (122.178.202.31) by CY1PR07MB2524.namprd07.prod.outlook.com (2a01:111:e400:c636::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 16 May 2018 06:40:18 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, Jerin Jacob , pablo.de.lara.guarch@intel.com, declan.doherty@intel.com, andy@warmcat.com, stable@dpdk.org Date: Wed, 16 May 2018 12:09:55 +0530 Message-Id: <20180516063955.6193-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516063955.6193-1-jerin.jacob@caviumnetworks.com> References: <20180516063955.6193-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.178.202.31] X-ClientProxiedBy: CO2PR07CA0070.namprd07.prod.outlook.com (2603:10b6:100::38) To CY1PR07MB2524.namprd07.prod.outlook.com (2a01:111:e400:c636::15) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 3:Yy+KwFAUZeqbkXyZPnBge6iN5mzyeScE3TlDYQdZvqL3d34vo3fmiVod6FpKdc6TTeKazPDBVEH5clhOh2TLd+7y1sLHt0yAATca1QMBOoQV4xgn4pJMEHQIq3yl3PIqksMbvjdJh3ka1PtsUCk6nQ66E/07wEQWmvep4hVwY1VW4RT7CpE4AAxAWjLMMVGcViFpNJaOL2PXztjCKHY01yFPrL9uAlteJdGgVl95rCeNI+RwadWsZ3Lld36zkWvP; 25:HNiTI3LpgaayVXR5xNXGnYoBeTij13jdzieimkqlMUJNZngwmcHSSXbAmRszrPw7y8h4qm4bYON8lU61RMyzBHk/fubLJ9k89wxdEofXv4lRYfBEmgWjYiL2sy6ielodI5mA3s18q6PPLdh182n6rS05IhCFqqaHA02wLRptqLjSulW490zdWZjzDmEXti6H0jHs6CGcA4GIm/u3Qk2sGGPXIRxEEn9UxSEPWcsB4tLxCLiqzxX7iFKKEbI4ZQ3aWAdTvWqDVvyQkokNIux6sQmLpIJgtHxRfRCrQD9f4E8aRt6BR55uBEbU4rPbqT2d8EyJehN9J6x2vLGz959QNA==; 31:2Jrz5YFZA3ihEeG8NU38Q3bxYmeclKAQbNVMFH1gBQ1STPoykwBLAfn10sDdpT6vuzraiQd5nAQ1GGwBaZPnFds+2wqoQ4uh2rrVud//CTGzEmzfagcXWw06Eq6qB3rcViDtyPOg17/YXU5BCw9TmyzlIEgJqweeSEO8h/7SKRqPeonytI8qI52vgSKHtJE89kaJOFnfHAgibscBUo2Eoxh7ZjAtHOj6Ro2CgDOtlak= X-MS-TrafficTypeDiagnostic: CY1PR07MB2524: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 20:1OaymJy0FB2Sv+6s7NbOTuXviQD3TOHqqR76SES+56/leyQiy88JIYQj7UONaS/Dvmd4j1sXKvMTCZhg0un2RU+F6gTm3QW0A7q4pRlbc4Vh7DgmzMxdZRMa4AM1YZsEaJjKe32BfmVV0UG44bMJk3ST70FXfiwvTF77IACD4LDengutHH/mjefU/es4alPRpEKFJSJ6irtyguigi5B07lpvw5mcU1476lJNFpRyzfys6fElnVYhEaq/3aPpaDp8ugdVY//phOUoc4VLdqYsfu8MFHHuAr9+a/XhBCK7orORJdEj9cCkTrRUGQbXe5zrg8x5AMufYfXHWj0O1vPIeEf6/R0i+UPmiDZ2ZUgieJ5tk86JCY1Egf3Y4+PFIF0v6e8fjnmenxyIfvwwdMzfqAfoCkpxvnNbZwrfcBntIRRlVsJ8DC/EV8Sdd41HXITQ7rrl+aEUFp6ZxRbjUloR2m5kgWnAZAVaJtf8eWakiU0DVS1MyW/0hFG7q0p7APf5AcHx5AF8dLtw5NwPtL8h+IWhKjZKnCxEBbi7LsVDIx8JFDU1tU+YYZ8VRsyszLPJX3v82qC5/O4JpnBXx3+eBuH6G9zHCnXCrUEl4vDP+X0=; 4:ey455l88Vzk7YDuWYNX28Odq5V2IHCS3SdLXkJlxIOiZEQLHcFURYoQpYJ0cMZ+kEwJCjiUuFiHx4kUwZlpDkWrcqKIJRRFOEuLWAeyk/nfwkZqWvRTSZpaTSBNtVv9uMyZ9Mbmld3zT7vlhNZJEkE+q+/Rb5T26BK54A2+v/LRK2EwESg8xjCCpQZPXjsyyU0TExVEBzffidYDODM+IDozBE6yxCodfDOLsoUCab9sxX2+JPADAczG4yiaBrvx+UCE6Bq63O/Pta0nts4u3xUBtRwpNe78iD+mxyN3FQAeSuZCrK3+9q7DDTZd2ikkz 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)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY1PR07MB2524; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2524; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(396003)(39860400002)(39380400002)(376002)(189003)(199004)(106356001)(81166006)(16526019)(186003)(76176011)(26005)(69596002)(81156014)(8676002)(11346002)(476003)(6116002)(3846002)(1857600001)(486006)(2616005)(956004)(446003)(6506007)(386003)(25786009)(59450400001)(53416004)(8936002)(6512007)(50226002)(68736007)(50466002)(51416003)(575784001)(2906002)(478600001)(105586002)(44832011)(16586007)(316002)(52116002)(72206003)(5660300001)(53936002)(97736004)(7736002)(6486002)(6666003)(6916009)(66066001)(2361001)(48376002)(36756003)(2351001)(305945005)(4326008)(1076002)(47776003)(42882007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2524; H:jerin.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2524; 23:y3M+p8w0T2Y9XTeiWC8NffPzJwPZghKk/37erwckn?= =?us-ascii?Q?tgLZAL9jlM9QkYyymqjLt/X9ZtV/v5pqxl2gTTlmjVECvKPhVCOuwOcWruUY?= =?us-ascii?Q?RVY/UX/F+0Udhr0KMggl2kT52DtQEPVY0/26nRMGSbtoRUOP/ksxYLfgHadL?= =?us-ascii?Q?5xRArT5oMjXe8SscGF2idc8cnMBGDcFso+UyAOkaohbrTAYwvpuNDczUkOIO?= =?us-ascii?Q?u62TkU3RQ9Yrux7rdjXuT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g==; 5:axz8DVOd1gGg617X8sYMA8na8gJqQo1qwswE4apdlNeGFzco7+TZw9ggRUBOExev9JSdbu5xDTQBW77htcD0D6bWEdxHkCQCrjPx5xYysG2uoaIl8QDlF+e0/6g9pcKZJ7cKbnTHVwcDYZtIBYTrnUoejWncl4bCXv5NMhF65/0=; 24:K0gji0P7zwT2EwmpvO1wGWzWEmZTKY6zavnO3r59u1FcFexMdQdFKJpbjan054y6iZ08sxARz6EuhkpvAU/SjOoUjhX8d7ei6Sgb33gJWDA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 7:+hX8R5jyXIDjc7sulDfm2zl1cm+V8iMI7RLM4YA6LgKbFNHk3aP1+H9No808GpRd+4XxY/cDnFDLPIywQ5Z/g2wyvGP1YmTxWunQhZjqMnkvPOUeEG4bM9l7QxYr7T/UItdJw3ssqmIOYXb2VQgi/KoOWehs8OBghgc4Gwm/QyF+UUY/RQOmxjKqZV6AvDwHRfJIY2vKxiCDai6YsTMIzxyudkrDpdZJYh2yXh3ZGbafeNRsTK0793EpzOlNnr/P X-MS-Office365-Filtering-Correlation-Id: 76299291-3b0c-4b2e-deef-08d5baf7e574 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 06:40:18.6810 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76299291-3b0c-4b2e-deef-08d5baf7e574 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2524 Subject: [dpdk-stable] [dpdk-dev] [PATCH 2/2] app/crypto-perf: fix memcpy source range 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 06:40:23 -0000 Since arm64 was using plain memcpy for rte_memcpy, gcc 8.1, could detect size was more than source address range. /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 Signed-off-by: Jerin Jacob --- 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..169ecdef3 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -6616,7 +6616,7 @@ test_multi_session_random_usage(void) ts_params->session_mpool); rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, - sizeof(struct crypto_unittest_params)); + sizeof(struct crypto_testsuite_params)); test_AES_CBC_HMAC_SHA512_decrypt_create_session_params( &ut_paramz[i].ut_params, -- 2.17.0