From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id F21182C8 for ; Wed, 23 May 2018 16:34:19 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id y15-v6so26922892wrg.11 for ; Wed, 23 May 2018 07:34:19 -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=nX8ceNVA5hWj9RaoulGdNnT9YfbZHeOICBLFBgzpMpY=; b=Kq3jK/YMNYvcunivvBu8J3U1O7cdEyU4FXxdLvxX9j8t5rCfOuj4FSumgzqMsx5hE5 sHfkXPn0wsjvsjxegQR7yoRxldTfzVf5awGEGp2O4VPkDQH5j+SR37L+GQ5Z9DheZtQe 9qhPbGIRevIp9XuaCy0R7HNGkJwJWWcAhj9mbZpODpfSmi86j9a4XOT4WO+ESeeKQnFT 5NS4Uzne82mvxsLO6uID+NYBB0f0xiUBQK/hjYQv4XIycjpqCaHDh3cfjVr2utS36stj wIdeCAk6+pFZOWjxxYn9JoVgq7dpbjqxKuamywVnTTlvB3ugLRghOySMtDyz1hbct86A vUJQ== 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=nX8ceNVA5hWj9RaoulGdNnT9YfbZHeOICBLFBgzpMpY=; b=aFJpEvZSUsEUXTy2MhI6THuZCd3/lh6xR2emzHyYACvUZH8Cu2+mwp0nG84Y58ep33 KNHeNnXbAgEqPR5z0dkmW3G/JxIMS7m/pTTPhgk36qy5fIOikX7t98obI0HbaHGO7WWh +3YGYP1wMYFtAKQggpOvyJI/qV3ODgzAtTppMGQdIPWxxRqHzVW8jQSssDG9r3DAaFsV jimlpprNnI3Lfbb0uoUgPu2owwRrHYSLhsBX/pSPlbJ+G4vsdW3CtKxMvOLDkcBEGzdU 8EdOWv00R5l+LzFnQvbRBhBfPqOioL4cYLiV49oShMmU0xG/Ws9LGy3hIRgW37j0u2qm vang== X-Gm-Message-State: ALKqPweAdXdm1/HTpfBrHvo27Sb5dH/MZy/mamMFsQxJUDcdx37LYu3w 3ILiOzv5M2lveckrJ2RBNOA= X-Google-Smtp-Source: AB8JxZoQ3zSGYxapHRtc/SbjJDWzxL9XbiUR+XwpBCCkhKXQOsqhAxTQOYakAMc9sZwsLHON21maIQ== X-Received: by 2002:adf:83c6:: with SMTP id 64-v6mr2926563wre.270.1527086059683; Wed, 23 May 2018 07:34:19 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id 184-v6sm2550942wmv.33.2018.05.23.07.34.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 07:34:18 -0700 (PDT) From: luca.boccassi@gmail.com To: Jerin Jacob Cc: Pablo de Lara , dpdk stable Date: Wed, 23 May 2018 15:33:39 +0100 Message-Id: <20180523143344.16885-18-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523143344.16885-1-luca.boccassi@gmail.com> References: <20180516100945.4449-2-luca.boccassi@gmail.com> <20180523143344.16885-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/crypto-perf: fix parameters copy' has been queued to LTS release 16.11.7 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 14:34:20 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.7 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 ab33ff3c50d91d12ae3dc1cc94912939bf59e69c 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 --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c9e0b66e5..24c729639 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -4621,7 +4621,7 @@ test_multi_session_random_usage(void) * dev_info.sym.max_nb_sessions) + 1, 0); for (i = 0; i < MB_SESSION_NUMBER; i++) { - 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