From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 828232C8 for ; Wed, 23 May 2018 14:11:16 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id a15-v6so18785806wrm.0 for ; Wed, 23 May 2018 05:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J4ph5jdPp4h0aHj45dGF/iZayR5rF9VYSni52Cm3GKI=; b=BSmvPFPfWToLlMcDdUdfr6YU5ctq+IeFvQ5IqSipg7vnTvS0P378ReiBgTSZTQBZ5S 7dZc+sC+gTaQSepzR8yXRjHYS/kaB0QkZnklLXgfJol+Txtwq2QL0iyZavoR0bTsG7cy SrUXlbmi8PrGgbR0Dfq/c9NCOXQMMVXtN8/2JabM0PzfcFFTItmDGc60MMSoWfSLUgX8 wQsxGAz+mKo9yCbuOf4Y3AKcLrD1tWxyXviYKRkk+cXuuEX39/0p66vlMzBeuqtT8lC9 IsyuBwWdKPywrnWXkqzEdGSkMn72KfVFgZnDxdtpasLMbGVG/HkEFkXePZERiwIJAWPI Pk5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J4ph5jdPp4h0aHj45dGF/iZayR5rF9VYSni52Cm3GKI=; b=ZkzHBl1mSHkUi7SVKZCEjvnbZ/dM0tN9iHtN2yw5YOZ+bP2jpWvn4S11jistUpoAIF rCKd5MidfdXlTEQbl+ZE0gcFJkEr3/rdeuR5QiSkLrs54xm77a+CSl2ife99xONEayE4 /cjneyhHVyaxRYllhxq9kBUnUNfwVymKkoCvksWnwfI8NA61PD/RSyrZkYbVlU58HiYT LnQG4PHpQ9ej6E/cKNjKYyuRdK7tTqS/sRuU85oj1cT85CQu79SUVCLvuBBbK2CdFXLp MnG2CVYq4YkUSUrViBImwDOe6Ae0UOdD1AMVcG8w1iVA/3rZ1XBIBmovvBAK19KNr6Sg GxLA== X-Gm-Message-State: ALKqPwekL/eD4dRiT9E8zl1UfW7TDkJ+l3WLP1pq6/hmQhuI2s1+Hmpl KDfWSCi1M8D0Tyki7feINFU= X-Google-Smtp-Source: AB8JxZoXM6u143/QZ7Xw1W203X0rGpuFCGpEXAGtG7WBaLUcLHMAAR21DbsV6JcH+5503MBf1+4wzw== X-Received: by 2002:adf:c358:: with SMTP id e24-v6mr2162887wrg.86.1527077476227; Wed, 23 May 2018 05:11:16 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id i11-v6sm7436164wre.66.2018.05.23.05.11.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:11:15 -0700 (PDT) From: luca.boccassi@gmail.com To: Jerin Jacob Cc: Pablo de Lara , dpdk stable Date: Wed, 23 May 2018 13:09:48 +0100 Message-Id: <20180523121010.8385-37-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/crypto-perf: fix parameters copy' has been queued to stable release 18.02.2 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, 23 May 2018 12:11:16 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 5a8dd4fb43af51d5db8736c581d6f4cd8dec0a68 Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Wed, 16 May 2018 17:58:04 +0530 Subject: [PATCH] app/crypto-perf: fix parameters copy [ upstream commit 873dac8ec608ca02d59214b4a3022b2f25de717b ] 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. test/test/test_cryptodev.c: In function 'test_multi_session_random_usage': 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)) ^~~~~~~~~~~~~~~~~~~~~ test/test/test_cryptodev.c:6618:3: note: in expansion of macro 'rte_memcpy' rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, ^~~~~~~~~~ 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") Suggested-by: Pablo de Lara Signed-off-by: Jerin Jacob Acked-by: Pablo de Lara --- 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 1417482c3..9d3c851c1 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -6456,7 +6456,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.14.2