[PATCH v4 0/6] fix build failures with LTO enabled
Stephen Hemminger
stephen at networkplumber.org
Mon Jan 19 23:44:07 CET 2026
This series addresses build failures and warnings that occur when
compiling DPDK with Link Time Optimization (LTO) enabled. LTO performs
aggressive cross-compilation-unit inlining, which allows GCC's static
analyzer to detect both real bugs and generate false positive warnings
that are not visible without LTO.
The series fixes:
- Real bugs: buffer overflow in cnxk reassembly SA setup (heap corruption)
- Variable-length arrays that trigger warnings with LTO
- False positive warnings where compiler cannot prove bounds safety
v4
- add Fixes tags where appropriate
- Bugzilla ID's for existing bugs
The cnxk patches (1-4) should be applied together as they eliminate
all VLAs from common/cnxk and re-enable VLA warnings. The remaining
patches (5-6) address warnings in other subsystems.
Stephen Hemminger (6):
common/cnxk: replace variable length state array
common/cnxk: replace variable length array
common/cnxk: re-enable vla warnings
common/cnxk: fix buffer overflow in reassembly SA setup
net/mlx5: fix LTO false positive stringop-overflow warning
test/soring: fix stringop-overflow warning with LTO
app/test/test_soring.c | 18 ++++++++++++------
drivers/common/cnxk/meson.build | 2 --
drivers/common/cnxk/roc_aes.c | 3 ++-
drivers/common/cnxk/roc_nix_inl.c | 2 +-
drivers/common/cnxk/roc_platform.c | 4 ++--
drivers/net/mlx5/hws/mlx5dr_action.c | 14 ++++++++++++++
6 files changed, 31 insertions(+), 12 deletions(-)
--
2.51.0
More information about the dev
mailing list