Skip to content

net/bnxt: bounds checking patches

Stephen Hemminger dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6eal: add portable way to check for math overflowlib/librte_eal/common/Makefile lib/librte_eal/common/include/rte_overflow.h+75 -11 reply
2/6net/bnxt: fix potential data racedrivers/net/bnxt/bnxt_hwrm.c+4 -22 replies
3/6net/bnxt: avoid potential out of bounds readdrivers/net/bnxt/bnxt_hwrm.c+6 -00 replies
4/6net/bnxt: check for integer overflow in buffer sizingdrivers/net/bnxt/bnxt_hwrm.c+4 -10 replies
5/6net/bnxt: add integer underflow checkdrivers/net/bnxt/bnxt_hwrm.c+3 -00 replies
6/6net/bnxt: sanitize max_l2_ctxdrivers/net/bnxt/bnxt_hwrm.c+9 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/6] net/bnxt: bounds checking patches

This set of patches came from security review of bnxt driver. It introduces a set of overflow macros that could be more widely used in other places in DPDK to check for math overflows.

Stephen Hemminger (6):
eal: add portable way to check for math overflow net/bnxt: fix potential data race
net/bnxt: avoid potential out of bounds read net/bnxt: check for integer overflow in buffer sizing net/bnxt: add integer underflow check net/bnxt: sanitize max_l2_ctx

 drivers/net/bnxt/bnxt_hwrm.c                 | 31 ++++++--
 lib/librte_eal/common/Makefile               |  2 +-
 lib/librte_eal/common/include/rte_overflow.h | 74 ++++++++++++++++++++
 3 files changed, 101 insertions(+), 6 deletions(-)
 create mode 100644 lib/librte_eal/common/include/rte_overflow.h
Signature · 1 line
2.20.1