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 1D3EE467AF; Wed, 21 May 2025 17:20:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 941C542DC1; Wed, 21 May 2025 17:20:36 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3216042DB0 for ; Wed, 21 May 2025 17:20:35 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 18341467B0; Wed, 21 May 2025 17:20:35 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/ethdev Bug 1709] net/mlx5 warnings when build with lto Date: Wed, 21 May 2025 15:20:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stephen@networkplumber.org 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: multipart/alternative; boundary=17478408340.1EAeE70ea.2314293 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --17478408340.1EAeE70ea.2314293 Date: Wed, 21 May 2025 17:20:34 +0200 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1709 Bug ID: 1709 Summary: net/mlx5 warnings when build with lto Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: stephen@networkplumber.org Target Milestone: --- Suspect that temporary buffer may not be big enough. LTO enables more inlining and therefore more bounds checking. [3511/3591] Linking target drivers/librte_net_mlx5.so.25.2 In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [76, 52423= 6] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [84, 52424= 4] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [92, 52425= 2] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [100, 5242= 60] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [108, 5242= 68] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [116, 5242= 76] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99, inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3, inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9, inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at ../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8: ../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i= nto a region of size 0 [-Wstringop-overflow=3D] 3630 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);= /* data */ | ^ ../drivers/net/mlx5/hws/mlx5dr_action.c: In function =E2=80=98mlx5dr_action_create_reformat=E2=80=99: ../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [124, 5242= 84] into destination object =E2=80=98mh_data=E2=80=99 of size 64 2131 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0}; | ^ --=20 You are receiving this mail because: You are the assignee for the bug.= --17478408340.1EAeE70ea.2314293 Date: Wed, 21 May 2025 17:20:34 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1709
Summary net/mlx5 warnings when build with lto
Product DPDK
Version unspecified
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter stephen@networkplumber.org
Target Milestone ---

Suspect that temporary buffer may =
not be big enough.
LTO enables more inlining and therefore more bounds checking.

[3511/3591] Linking target drivers/librte_net_mlx5.so.25.2

In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [76, 52423=
6]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [84, 52424=
4]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [92, 52425=
2]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [100, 5242=
60]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [108, 5242=
68]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [116, 5242=
76]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
In function =E2=80=98mlx5dr_action_prepare_decap_l3_data=E2=80=99,
    inlined from =E2=80=98mlx5dr_action_handle_tunnel_l3_to_l2=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2151:3,
    inlined from =E2=80=98mlx5dr_action_create_reformat_hws=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2221:9,
    inlined from =E2=80=98mlx5dr_action_create_reformat=E2=80=99 at
../drivers/net/mlx5/hws/mlx5dr_action.c:2278:8:
../drivers/net/mlx5/hws/mlx5dr_action.c:3630:17: warning: writing 4 bytes i=
nto
a region of size 0 [-Wstringop-overflow=3D]
 3630 |                 memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE);=
 /*
data */
      |                 ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function
=E2=80=98mlx5dr_action_create_reformat=E2=80=99:
../drivers/net/mlx5/hws/mlx5dr_action.c:2131:17: note: at offset [124, 5242=
84]
into destination object =E2=80=98mh_data=E2=80=99 of size 64
 2131 |         uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] =3D {0};
      |                 ^
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17478408340.1EAeE70ea.2314293--