Skip to content

Fixes for build with -Dsanitize=undefined

Stephen Hemminger dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v11 patch 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bus/fslmc: fix use after rte_freedrivers/bus/fslmc/portal/dpaa2_hw_dpio.c+2 -10 replies
2/5net/bnxt: fix use after freedrivers/net/bnxt/bnxt_filter.c+10 -10 replies
3/5net/bnx2x: use RTE_BIT32drivers/net/bnx2x/ecore_reg.h+65 -650 replies
4/5net/qede: fix use after freedrivers/net/qede/qede_filter.c+12 -80 replies
5/5vhost: use strlcpy instead of strncpylib/vhost/socket.c+1 -22 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchBruce Richardson
1/5
2/5
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Fixes for build with -Dsanitize=undefined

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(-)
Signature · 1 line
2.45.2