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 6BC33A00C2; Thu, 6 Oct 2022 11:20:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 542DE42BCC; Thu, 6 Oct 2022 11:20:49 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id EBD5242BC2 for ; Thu, 6 Oct 2022 11:20:47 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 486845C0183; Thu, 6 Oct 2022 05:20:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 06 Oct 2022 05:20:47 -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:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1665048047; x= 1665134447; bh=Z1bUTSEpJGfbuvzV6rxxDfvJ6Dplo3WCIPMyT74FX/M=; b=C vadmnbpbcKddU6D3YR8wTMN4jexqz4+i5H5Aey8jwO9ZB+0XJLkTfI2QtTPTWXtv 0aRxdtUvS1eLMM1YNseWLHzLEZflcSQMXfsj37+H26w8W4eb6BqAnY2Xz/uOUwUN CMQW7yqDeKdse/5j7dRFdf+1N0f1AWHMJyGIeCX3WExL2efcY4JAYgjROTBEMlGP I1/bkf/PaZci9lZEZcMHxKncRDNTnb1OIk9RqwhLLvEk6jkb3eli9tHeMsOL0sEs PgqbBBuTp+1eCXDaZf+67K5Iu2asP+t48sp0lE30hjwNHC0bgxSJOnm2fCgCcpUV wtA4NoXbwprO+3D1lAcDw== 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:in-reply-to:message-id:mime-version:references :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=1665048047; x= 1665134447; bh=Z1bUTSEpJGfbuvzV6rxxDfvJ6Dplo3WCIPMyT74FX/M=; b=N KkNM84i6mQo7SAvE1iJBgJEhIDLGi/AYt1ZpvHTYcGf9Vvcnpa22vazCPNQfKtae ysuDrBUwJegDvCLaLE2QKisO6LiWtPSsiARt2fWfIcJ008scwAk9iiLE004n96GB 4vsPV57pAmxcSGEDkDPLdYWoTVHooXkWWto781W2xwzck08S97Ee4ULf0YSdrr0h O1HxPdRrWvBiBdjcBcVaZRnnjq2L+l5337ks9CRkwySJ7r1/UeTlrH50OVPk/AQQ gmiB6GJDaBJUwRHbcViue/3cPg5UPIzeiwqYlsVQGwQHPmwo+WM8gZ6MeGqEol24 6AgG0qI2LEQIGee2b1itw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeihedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeejjefffffgffekfefflefgkeelteejffelledugefhheelffet heevudffudfgvdenucffohhmrghinhepughpughkrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Oct 2022 05:20:46 -0400 (EDT) From: Thomas Monjalon To: Akhil Goyal , Amit Prakash Shukla Cc: dev@dpdk.org, "ruifeng.wang@arm.com" , "honnappa.nagarahalli@arm.com" , Rahul Bhansali Subject: Re: [EXT] DPDK build for Arm with GCC 12 Date: Thu, 06 Oct 2022 11:20:44 +0200 Message-ID: <3693371.kQq0lBPeGt@thomas> In-Reply-To: References: <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 06/10/2022 08:14, Rahul Bhansali: > Hi Thomas, > > > -----Original Message----- > > From: Thomas Monjalon > > Sent: Tuesday, October 4, 2022 6:17 PM > > To: Rahul Bhansali ; Akhil Goyal > > > > Cc: dev@dpdk.org; ruifeng.wang@arm.com; honnappa.nagarahalli@arm.com > > Subject: [EXT] DPDK build for Arm with GCC 12 > > > > External Email > > > > ---------------------------------------------------------------------- > > 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 [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 [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? > This is already addressed in http://patches.dpdk.org/project/dpdk/patch/20220902074337.3129786-1-amitprakashs@marvell.com/ by @Amit Prakash Shukla . Yes thank you.