[PATCH v2 0/5] Fixes for build with -Dsanitize=undefined
Stephen Hemminger
stephen at networkplumber.org
Thu Dec 19 23:49:50 CET 2024
Recent bug report https://bugs.dpdk.org/show_bug.cgi?id=1605
highlighted that no build is done with -Dsanitize=address,undefined.
Doing a test build showed some new issues that were not being reported.
Note: a couple of these required introducing the equivalent _FOREACH_SAFE
variant macros. These are in FreeBSD and in DPDK windows versions of queue.h
but never made it to Linux sys/queue.h. Put the macro in the file where
used (rather than a common spot) to make backporting the fixes easier.
Stephen Hemminger (5):
bus/fslmc: fix use after rte_free
net/bnxt: fix use after free
net/bnx2x: use RTE_BIT32
net/qede: fix use after free
vhost: use strlcpy instead of strncpy
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 3 +-
drivers/net/bnx2x/ecore_reg.h | 130 +++++++++++------------
drivers/net/bnxt/bnxt_filter.c | 11 +-
drivers/net/qede/qede_filter.c | 20 ++--
lib/vhost/socket.c | 3 +-
5 files changed, 90 insertions(+), 77 deletions(-)
--
2.45.2
More information about the dev
mailing list