From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id E2896A0543;
	Tue,  4 Oct 2022 14:46:37 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 8D37C40DFB;
	Tue,  4 Oct 2022 14:46:37 +0200 (CEST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com
 [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 3F2D040DDC
 for <dev@dpdk.org>; Tue,  4 Oct 2022 14:46:36 +0200 (CEST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 5D2F65C00D7;
 Tue,  4 Oct 2022 08:46:33 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Tue, 04 Oct 2022 08:46:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to; s=fm2; t=1664887593; x=1664973993; bh=Ktep4tUTFs
 55CBJFL/WZFME7FjkIfBLGlmeVxRUV95o=; b=Dl/GQBfv+3xUlPOm9I52FfClIB
 cuUsbdVtgevTJkx3Pb01ZAiIpIgKk5sbMoZR5PLNHvxaFtWKEXYTh89w0xiMh4Ez
 d7Gijkmj6MPErpOwOvGH4rCDBcksgiXa3H7I3SwTuZ5+Gwj1b2lZh8LRAAaCWKEm
 /M1I9rpdsLS1z+kPmKg9+RcXHNfLbFCymtl42/KZvRMWLhzsBH3W6ezJgRX+UeDm
 kKT1V4dAmY/0XG3s36uS3zc1AHPkmpjLdZp9hQkB2ViaKQDps4DkMLG47Q4jfRGE
 Fydminloz3XnJnCnQWppX6gd/GRJoujUMfezilLO6NSpc94X5Pg1OpTS+eTw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; t=1664887593; x=1664973993; bh=Ktep4tUTFs55C
 BJFL/WZFME7FjkIfBLGlmeVxRUV95o=; b=qjzn3h8S1F7HSEhGjKPNmN/cDXa3I
 j04rYX4uAr0R1VZgsr9zvKrRByqEogvCWvnjyHcMTcuh1oLW0YJvclG0rQej6MpD
 BDi7gBxE5vwH1C8Ke4wvAUqDIDfdu7Uu4pkN+5/QBkLuxrMBe7oe2CMz1Uier41A
 89tdD1s2GApBhkMsXlX+EvGENFczBdpfbsXOMVXUsWkh0YRfABGFlQZ7UCMwnkM3
 ob+SVdPDJM8n2dly42DGep5UpSUFrIK2O3cAITG0ua9UQLLixD51DG04OKrM9M/t
 Peeq9eEU9/ayXSaO+oIpQJq2xZKCPPxB7mizDTfk62qG/EzsyEmwKuHwQ==
X-ME-Sender: <xms:KSs8Y9IrDWbhev66ev3B1VcnpkkcjYr3sf49MSKzMtfhS70riKyjmg>
 <xme:KSs8Y5JwiBJhhO5WO12lI2e_Cht1uKcpriuZOq-8tuetRX3dfA6FE2Os1VyNOafP1
 1sfxeyWgI-P_PCxfQ>
X-ME-Received: <xmr:KSs8Y1tyM9PPcynBfi57MDHEXT7NMZyqpHZYs6NIb4vFAnV2XqFEWAiq045piuwCj26KX0ARzLx2e0ddx45GX9azIQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeiuddgheejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvvefufffkggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs
 ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf
 frrghtthgvrhhnpeeugfegteduhfdujefgvdfhteeiuefghefffeeukefgfffgtefhfffh
 jeeuvdefvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh
 hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght
X-ME-Proxy: <xmx:KSs8Y-bebMAwK3NDsK9gFgTSXkQ8GdZw8ibSc2Dzd0r6u8pdXNOyng>
 <xmx:KSs8Y0ZQ6erITBhCIgg6raKLejxUy38_V8sU8z6DsGqBqT7hytiyaA>
 <xmx:KSs8YyCu5NhsOe0b7lMH-m84gljUGx_VWYX5c8yr5K8kaatL_Nl1yg>
 <xmx:KSs8Y8G36O1zw4tJkYEvSKgm0k2Qdn9z1ZMNO0Bph5aW_iCflO-VGw>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 4 Oct 2022 08:46:32 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Rahul Bhansali <rbhansali@marvell.com>, Akhil Goyal <gakhil@marvell.com>
Cc: dev@dpdk.org, ruifeng.wang@arm.com, honnappa.nagarahalli@arm.com
Subject: DPDK build for Arm with GCC 12
Date: Tue, 04 Oct 2022 14:46:30 +0200
Message-ID: <5990131.2l3rmUXbR5@thomas>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Hello,

GCC 12 suspects an out-of-bound write in NEON port_groupx4():

In file included from examples/ipsec-secgw/ipsec_neon.h:9,
                 from examples/ipsec-secgw/ipsec_lpm_neon.h:9,
                 from examples/ipsec-secgw/ipsec_worker.c:16:
examples/common/neon/port_group.h: In function 'port_groupx4':
examples/common/neon/port_group.h:42:21: error:
	array subscript 'union <anonymous>[0]' is partly outside
	array bounds of 'uint16_t[5]'
   42 |                 pnum->u64 = gptbl[v].pnum;
      |                     ^~
examples/common/neon/port_group.h:21:23: note:
	object 'pn' of size [0, 10]
   21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1,
      |              ~~~~~~~~~^~~~~~~~~~~~~~~
examples/common/neon/port_group.h:43:21: error:
	array subscript 'union <anonymous>[0]' is partly outside
	array bounds of 'uint16_t[5]'
   43 |                 pnum->u16[FWDSTEP] = 1;
      |                     ^~
examples/common/neon/port_group.h:21:23: note:
	object 'pn' of size [0, 10]
   21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1,
      |              ~~~~~~~~~^~~~~~~~~~~~~~~

Please could you help fixing it?