Skip to content

net/bnxt: fix two ULP parser/mapper safety issues

Manish Kurup dpdk-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/bnxt: cap memcpy at field sizedrivers/net/bnxt/tf_ulp/ulp_rte_parser.c+10 -00 replies
2/2net/bnxt: replace VLA with heap allocationdrivers/net/bnxt/tf_ulp/ulp_mapper_tfc.c+8 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] net/bnxt: fix two ULP parser/mapper safety issues

Two unrelated hardening fixes in the ULP parser/mapper found during review:

- Patch 1 caps a header-field memcpy() at the field's spec size, fixing a potential overflow when the source value is larger than the destination field.

- Patch 2 replaces a variable-length array sized by caller input with a heap allocation, avoiding unbounded stack growth.

Dakota Sicher (2):
net/bnxt: cap memcpy at field size
net/bnxt: replace VLA with heap allocation

 drivers/net/bnxt/tf_ulp/ulp_mapper_tfc.c | 10 ++++++++--
 drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 10 ++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1