DPDK patches and discussions
 help / color / mirror / Atom feed
* DPDK build for Arm with GCC 12
@ 2022-10-04 12:46 Thomas Monjalon
  2022-10-06  6:14 ` [EXT] " Rahul Bhansali
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2022-10-04 12:46 UTC (permalink / raw)
  To: Rahul Bhansali, Akhil Goyal; +Cc: dev, ruifeng.wang, honnappa.nagarahalli

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [EXT] DPDK build for Arm with GCC 12
  2022-10-04 12:46 DPDK build for Arm with GCC 12 Thomas Monjalon
@ 2022-10-06  6:14 ` Rahul Bhansali
  2022-10-06  9:20   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Rahul Bhansali @ 2022-10-06  6:14 UTC (permalink / raw)
  To: Thomas Monjalon, Akhil Goyal, Amit Prakash Shukla
  Cc: dev, ruifeng.wang, honnappa.nagarahalli

Hi Thomas,

> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Tuesday, October 4, 2022 6:17 PM
> To: Rahul Bhansali <rbhansali@marvell.com>; Akhil Goyal
> <gakhil@marvell.com>
> 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 <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?
This is already addressed in http://patches.dpdk.org/project/dpdk/patch/20220902074337.3129786-1-amitprakashs@marvell.com/ by @Amit Prakash Shukla .

> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EXT] DPDK build for Arm with GCC 12
  2022-10-06  6:14 ` [EXT] " Rahul Bhansali
@ 2022-10-06  9:20   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2022-10-06  9:20 UTC (permalink / raw)
  To: Akhil Goyal, Amit Prakash Shukla
  Cc: dev, ruifeng.wang, honnappa.nagarahalli, Rahul Bhansali

06/10/2022 08:14, Rahul Bhansali:
> Hi Thomas,
> 
> > -----Original Message-----
> > From: Thomas Monjalon <thomas@monjalon.net>
> > Sent: Tuesday, October 4, 2022 6:17 PM
> > To: Rahul Bhansali <rbhansali@marvell.com>; Akhil Goyal
> > <gakhil@marvell.com>
> > 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 <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?
> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-06  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:46 DPDK build for Arm with GCC 12 Thomas Monjalon
2022-10-06  6:14 ` [EXT] " Rahul Bhansali
2022-10-06  9:20   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).