net/bnxt: fix two ULP parser/mapper safety issues
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/bnxt: cap memcpy at field sizedrivers/ | +10 | 0 replies | |
| 2/2 | net/bnxt: replace VLA with heap allocationdrivers/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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