From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 00EF6A0544 for ; Fri, 11 Nov 2022 12:39:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0B0C410F2; Fri, 11 Nov 2022 12:39:55 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by mails.dpdk.org (Postfix) with ESMTP id C2CB0427EB for ; Fri, 11 Nov 2022 12:39:54 +0100 (CET) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 0C6A8412D9 for ; Fri, 11 Nov 2022 11:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1668166794; bh=lETIcIFNsoZVNwF4vGPyzptqcjceFjymHudxZpKRGmk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oigPw4KlNLgfdGyWDR1U2pZOI6xxNfTyKul15REprPa3KYDDi+bIs4os3WUVSgfgZ ia0tggfjsA6ESN2lDbK3KIdauNJzCpFPbjJ3IV1URfyEmy3COkFw4AXbTDQ02vlnWH rRpvH7f0NQGIvIs5iQgfxvVT2wFaeS9YCdZOz/0yEaa8wqjXHCrrD22zZSz6QHJndk ypyloK6taIA0wIJ6F4u7Q5deYZFmkbGBcncB55nRkj3hENis4yQRAjeB/HeiVdV7Tp yTIMqk520Dh3xPCtioE1JS+27Jt8JidOUDpCmsbtp5FG+Xbg18q4FlONeewHc3eRSK RvY4+uyN6GvXw== Received: by mail-ej1-f69.google.com with SMTP id jg27-20020a170907971b00b007ad9892f5f6so2893971ejc.7 for ; Fri, 11 Nov 2022 03:39:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lETIcIFNsoZVNwF4vGPyzptqcjceFjymHudxZpKRGmk=; b=rTBz2H8BohMyAY7dotqHdw5v7I0nqu0zFcAiBqmgaA51Oe6lclhi9uEvoAZlCRaeYo jUuOVCpr+33Cb93tl8dsYDG58t85f/pp7k1l/m2mJglbRWnqE0c8iZHRQOoNSiVHbRqu ElPrHsGLRTzuPoVA9aR38Ha+VyH+cXC426aluYjZMjakwBlxPvuFI09nnpZ3qwfuAXNU TlA0Bkl2ZRzjLTY6XcUK4ZNK4JDfOd/06WPiYWS2pfdOEuHMVCS09G3rt2N5xi86MJPZ WhNJEMSPRlgSE63ny3VV/gSvrcluN4aWjA04s4uWEVxXkGTj3WwKxKzS1VlvYOr91fgM x5RQ== X-Gm-Message-State: ANoB5pnRSC1aizBUpKwBPXQYzD2LDPdY9UYkL69pOqsdIasupDUDQBuP aXGT4tegi4Evg/TUC3Iwa44HolVxnAhTJUoDkbXPuED0r2ugpHQO0+CpvgqebW0P6TwOWpNM43e ZJU59VtleO5ZS40iPC1ITeOXp X-Received: by 2002:a17:906:492:b0:7ad:bb54:75d3 with SMTP id f18-20020a170906049200b007adbb5475d3mr1504164eja.484.1668166793725; Fri, 11 Nov 2022 03:39:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf7W1NjzaJqYSfW/5U9DvtlonPOH6qZGBhj37DlG2CdmKgbTjbt3aMbGfVqtn7LDgqhsMi89vg== X-Received: by 2002:a17:906:492:b0:7ad:bb54:75d3 with SMTP id f18-20020a170906049200b007adbb5475d3mr1504153eja.484.1668166793507; Fri, 11 Nov 2022 03:39:53 -0800 (PST) Received: from localhost.localdomain ([2a02:6d40:39af:c100:1891:6c61:50fd:e567]) by smtp.gmail.com with ESMTPSA id v17-20020a1709067d9100b0074134543f82sm796944ejo.90.2022.11.11.03.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:39:52 -0800 (PST) From: christian.ehrhardt@canonical.com To: Amit Prakash Shukla Cc: Akhil Goyal , dpdk stable Subject: patch 'test/ipsec: fix build with GCC 12' has been queued to stable release 19.11.14 Date: Fri, 11 Nov 2022 12:38:31 +0100 Message-Id: <20221111113904.1549618-14-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111113904.1549618-1-christian.ehrhardt@canonical.com> References: <20221111113904.1549618-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 19.11.14 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/18/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/91a0ab98477fffbc4a2bed90737a8c0d799142a4 Thanks. Christian Ehrhardt --- >From 91a0ab98477fffbc4a2bed90737a8c0d799142a4 Mon Sep 17 00:00:00 2001 From: Amit Prakash Shukla Date: Thu, 4 Aug 2022 19:10:53 +0530 Subject: [PATCH] test/ipsec: fix build with GCC 12 [ upstream commit 250cbb8d5dd2ffcb4c8a871332f9ec8e5a59242f ] GCC-12 raises following warning: In function '_mm_loadu_si128', inlined from 'rte_mov16' at ../lib/eal/x86/include/rte_memcpy.h:507:9, inlined from 'rte_mov128' at ../lib/eal/x86/include/rte_memcpy.h:549:2, inlined from 'rte_memcpy_generic' at ../lib/eal/x86/include/rte_memcpy.h:732:4, inlined from 'rte_memcpy' at ../lib/eal/x86/include/rte_memcpy.h:882:10, inlined from 'setup_test_string_tunneled' at ../app/test/test_ipsec.c:617:3: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include/emmintrin.h:703:10: error: array subscript '__m128i_u[15]' is partly outside array bounds of 'const uint8_t[255]' {aka 'const unsigned char[255]'} [-Werror=array-bounds] 703 | return *__P; | ^~~~ ../app/test/test_ipsec.c: In function 'setup_test_string_tunneled': ../app/test/test_ipsec.c:491:22: note: at offset 240 into object 'esp_pad_bytes' of size 255 491 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] = { This patch restrict the copy to minimum size. Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test") Signed-off-by: Amit Prakash Shukla Acked-by: Akhil Goyal --- app/test/test_ipsec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c index 9572098bd8..a71dee498e 100644 --- a/app/test/test_ipsec.c +++ b/app/test/test_ipsec.c @@ -619,7 +619,8 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string, rte_memcpy(dst, string, len); dst += len; /* copy pad bytes */ - rte_memcpy(dst, esp_pad_bytes, padlen); + rte_memcpy(dst, esp_pad_bytes, RTE_MIN(padlen, + sizeof(esp_pad_bytes))); dst += padlen; /* copy ESP tail header */ rte_memcpy(dst, &espt, sizeof(espt)); -- 2.38.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-11 12:35:05.289509420 +0100 +++ 0014-test-ipsec-fix-build-with-GCC-12.patch 2022-11-11 12:35:04.741191886 +0100 @@ -1 +1 @@ -From 250cbb8d5dd2ffcb4c8a871332f9ec8e5a59242f Mon Sep 17 00:00:00 2001 +From 91a0ab98477fffbc4a2bed90737a8c0d799142a4 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 250cbb8d5dd2ffcb4c8a871332f9ec8e5a59242f ] + @@ -33 +34,0 @@ -Cc: stable@dpdk.org @@ -42 +43 @@ -index 7c03a06785..aa533483fd 100644 +index 9572098bd8..a71dee498e 100644 @@ -45 +46 @@ -@@ -629,7 +629,8 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string, +@@ -619,7 +619,8 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string,