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 BD3B4A0C45; Thu, 28 Oct 2021 10:42:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 848F34067B; Thu, 28 Oct 2021 10:42:39 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 4AD374003F for ; Thu, 28 Oct 2021 10:42:38 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 28966A0C47; Thu, 28 Oct 2021 10:42:38 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 28 Oct 2021 08:42:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.marchand@redhat.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 846] ipsec build issue with gcc 11 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D846 Bug ID: 846 Summary: ipsec build issue with gcc 11 Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: examples Assignee: dev@dpdk.org Reporter: david.marchand@redhat.com Target Milestone: --- The issue is probably generic, but I can see it when enabling ASan (passing -Db_sanitize=3Daddress meson option): FAILED: examples/dpdk-ipsec-secgw.p/ipsec-secgw_ipsec.c.o=20 cc -Iexamples/dpdk-ipsec-secgw.p -Iexamples -I../../dpdk/examples -Iexamples/ipsec-secgw -I../../dpdk/examples/ipsec-secgw -I. -I../../dpdk -Iconfig -I../../dpdk/config -Ilib/eal/include -I../../dpdk/lib/eal/include -Ilib/eal/linux/include -I../../dpdk/lib/eal/linux/include -Ilib/eal/x86/include -I../../dpdk/lib/eal/x86/include -Ilib/eal/common -I../../dpdk/lib/eal/common -Ilib/eal -I../../dpdk/lib/eal -Ilib/kvargs -I../../dpdk/lib/kvargs -Ilib/metrics -I../../dpdk/lib/metrics -Ilib/teleme= try -I../../dpdk/lib/telemetry -Ilib/mempool -I../../dpdk/lib/mempool -Ilib/ring -I../../dpdk/lib/ring -Ilib/net -I../../dpdk/lib/net -Ilib/mbuf -I../../dpdk/lib/mbuf -Ilib/ethdev -I../../dpdk/lib/ethdev -Ilib/meter -I../../dpdk/lib/meter -Ilib/cmdline -I../../dpdk/lib/cmdline -Ilib/security -I../../dpdk/lib/security -Ilib/cryptodev -I../../dpdk/lib/cryptodev -Ilib/= rcu -I../../dpdk/lib/rcu -Ilib/lpm -I../../dpdk/lib/lpm -Ilib/hash -I../../dpdk/lib/hash -Ilib/acl -I../../dpdk/lib/acl -Ilib/ip_frag -I../../dpdk/lib/ip_frag -Ilib/ipsec -I../../dpdk/lib/ipsec -Ilib/eventdev -I../../dpdk/lib/eventdev -Ilib/timer -I../../dpdk/lib/timer -fdiagnostics-color=3Dalways -fsanitize=3Daddress -fno-omit-frame-pointer -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Werror -O2 -g -include rte_co= nfig.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-secu= rity -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-align= ed -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -march=3Dnehalem -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-ipsec-secgw.p/ipsec-secgw_ipsec.c.o -MF examples/dpdk-ipsec-secgw.p/ipsec-secgw_ipsec.c.o.d -o examples/dpdk-ipsec-secgw.p/ipsec-secgw_ipsec.c.o -c ../../dpdk/examples/ipsec-secgw/ipsec.c ../../dpdk/examples/ipsec-secgw/ipsec.c: In function =E2=80=98create_inline= _session=E2=80=99: ../../dpdk/examples/ipsec-secgw/ipsec.c:314:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 314 | ret =3D rte_flow_validate(sa->portid, &sa->= attr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ 315 | sa->pattern, sa->action, |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ~~~~~~~~~~~~~~~~~~~~~~~~ 316 | &err); | ~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:314:31: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:314:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:314:31: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4043:1: note: in a call to function =E2=80=98rte_flow_validate=E2=80=99 4043 | rte_flow_validate(uint16_t port_id, | ^~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:325:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 325 | ret =3D rte_flow_validate(sa->portid, &sa->= attr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ 326 | sa->pattern, sa->action, |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ~~~~~~~~~~~~~~~~~~~~~~~~ 327 | &err); | ~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:325:31: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:325:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:325:31: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4043:1: note: in a call to function =E2=80=98rte_flow_validate=E2=80=99 4043 | rte_flow_validate(uint16_t port_id, | ^~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:331:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 331 | ret =3D rte_flow_validate(sa->portid, &sa->= attr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ 332 | sa->pattern, sa->action, |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ~~~~~~~~~~~~~~~~~~~~~~~~ 333 | &err); | ~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:331:31: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:331:31: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:331:31: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4043:1: note: in a call to function =E2=80=98rte_flow_validate=E2=80=99 4043 | rte_flow_validate(uint16_t port_id, | ^~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:345:28: error: =E2=80=98rte_flow_cr= eate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 345 | sa->flow =3D rte_flow_create(sa->portid, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 346 | &sa->attr, sa->pattern, sa->action, &err); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:345:28: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:345:28: error: =E2=80=98rte_flow_cr= eate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:345:28: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4070:1: note: in a call to function =E2=80=98rte_flow_create=E2=80=99 4070 | rte_flow_create(uint16_t port_id, | ^~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c: In function =E2=80=98create_ipsec_= esp_flow=E2=80=99: ../../dpdk/examples/ipsec-secgw/ipsec.c:473:15: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 473 | ret =3D rte_flow_validate(sa->portid, &sa->attr, sa->patter= n, sa->action, |=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 474 | &err); | ~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:473:15: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:473:15: error: =E2=80=98rte_flow_va= lidate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:473:15: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4043:1: note: in a call to function =E2=80=98rte_flow_validate=E2=80=99 4043 | rte_flow_validate(uint16_t port_id, | ^~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:480:20: error: =E2=80=98rte_flow_cr= eate=E2=80=99 reading 32 bytes from a region of size 4 [-Werror=3Dstringop-overread] 480 | sa->flow =3D rte_flow_create(sa->portid, &sa->attr, sa->pat= tern, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ 481 | sa->action, &err); | ~~~~~~~~~~~~~~~~~ ../../dpdk/examples/ipsec-secgw/ipsec.c:480:20: note: referencing argument = 3 of type =E2=80=98const struct rte_flow_item *=E2=80=99 ../../dpdk/examples/ipsec-secgw/ipsec.c:480:20: error: =E2=80=98rte_flow_cr= eate=E2=80=99 reading 16 bytes from a region of size 4 [-Werror=3Dstringop-overread] ../../dpdk/examples/ipsec-secgw/ipsec.c:480:20: note: referencing argument = 4 of type =E2=80=98const struct rte_flow_action *=E2=80=99 In file included from ../../dpdk/lib/ethdev/rte_eth_ctrl.h:11, from ../../dpdk/lib/ethdev/rte_ethdev.h:1421, from ../../dpdk/examples/ipsec-secgw/ipsec.c:14: ../../dpdk/lib/ethdev/rte_flow.h:4070:1: note: in a call to function =E2=80=98rte_flow_create=E2=80=99 4070 | rte_flow_create(uint16_t port_id, | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors --=20 You are receiving this mail because: You are the assignee for the bug.=