All of lore.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <5990131.2l3rmUXbR5@thomas> (raw)

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?



             reply	other threads:[~2022-10-04 12:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 12:46 Thomas Monjalon [this message]
2022-10-06  6:14 ` [EXT] DPDK build for Arm with GCC 12 Rahul Bhansali
2022-10-06  9:20   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5990131.2l3rmUXbR5@thomas \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=honnappa.nagarahalli@arm.com \
    --cc=rbhansali@marvell.com \
    --cc=ruifeng.wang@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.