Skip to contentSkip to conversation

mlx5: errors when built with LTO

DPDK/ethdev Bug 1862 [email protected] 1 participant 2 messages Dec 31, 2025 – Jan 19

lore
Share & tools
lore
#0 lore raw

http://bugs.dpdk.org/show_bug.cgi?id=1862

            Bug ID: 1862
           Summary: mlx5: errors when built with LTO
           Product: DPDK
           Version: 25.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

Building with LTO and release flags causes lots of warnings in mlx5

[3686/3710] Linking target drivers/librte_net_mlx5.so.26.1
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [140, 524248] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [12, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [140, 524248] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [148, 524256] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [20, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [148, 524256] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [156, 524264] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [28, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [156, 524264] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [164, 524272] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [36, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [164, 524272] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [172, 524280] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [44, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [172, 524280] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [180, 524288] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [52, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [180, 524288] into destination object ‘mh_data’ of size 64
In function ‘mlx5dr_action_prepare_decap_l3_data’,
inlined from ‘mlx5dr_action_handle_tunnel_l3_to_l2’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2164:3,
inlined from ‘mlx5dr_action_create_reformat_hws’ at
../drivers/net/mlx5/hws/mlx5dr_action.c:2234:9:
../drivers/net/mlx5/hws/mlx5dr_action.c:3643:17: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
3643 | memcpy(dst, e_src, MLX5DR_ACTION_INLINE_DATA_SIZE); /*
data */
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c: In function ‘mlx5dr_action_create_reformat_hws’:
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [188, 524296] into destination object ‘mh_data’ of size 64
2144 | uint8_t mh_data[MLX5DR_ACTION_REFORMAT_DATA_SIZE] = {0};
| ^
../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [60, 64] into destination object ‘mh_data’ of size 64 ../drivers/net/mlx5/hws/mlx5dr_action.c:2144:17: note: at offset [188, 524296] into destination object ‘mh_data’ of size 64

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

http://bugs.dpdk.org/show_bug.cgi?id=1862

Stephen Hemminger ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Stephen Hemminger ([email protected]) --- Same problem and fix is pending

*** This bug has been marked as a duplicate of bug 1710 ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.