Skip to content

ice: fix validation issues in virtchnl parameters

Martyna Szapar-Mudlaw intel-wired-lan netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 9 repliesIn review
  2. v25 patches 11 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

v3 -> v2 from the cover letter

removed redundant check and fixed kfree being called on uninitialized var in 5. patch

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5virtchnl: make proto and filter action count unsignedinclude/linux/avf/virtchnl.h+2 -25 replies
2/5ice: stop truncating queue ids when checkingdrivers/net/ethernet/intel/ice/ice_virtchnl.c+1 -11 reply
3/5ice: validate queue quanta parameters to prevent OOB accessdrivers/net/ethernet/intel/ice/ice_virtchnl.c+9 -41 reply
4/5ice: fix input validation for virtchnl BWdrivers/net/ethernet/intel/ice/ice_virtchnl.c+21 -31 reply
5/5ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c+15 -91 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJedrzej JagielskiSimon HormanAleksandr LoktionovPrzemek KitszelRafal Romanowski
1/5R-b R-b T-b
2/5R-b R-b R-b T-b
3/5R-b R-b T-b
4/5R-b R-b T-b
5/5R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [iwl-net v3 0/5] ice: fix validation issues in virtchnl parameters

This patch series addresses validation issues in the virtchnl interface of the ice driver. These fixes correct improper value checking, ensuring that the driver can properly handle and reject invalid inputs from potentially malicious VFs. By fixing validation mechanisms, these patches strictly enforce existing constraints to prevent out-of-bounds scenarios, making the system more robust against incorrect or unexpected data.

---

v3 -> v2:
removed redundant check and fixed kfree being called on uninitialized var in 5. patch

v2 -> v1:
attached Mateusz's related patch
rephrase some commit messages to indicate that this are fixes and should target net

---

Jan Glaza (3):
virtchnl: make proto and filter action count unsigned
ice: stop truncating queue ids when checking
ice: validate queue quanta parameters to prevent OOB access

Lukasz Czapnik (1):
ice: fix input validation for virtchnl BW

Mateusz Polchlopek (1):
ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()

 drivers/net/ethernet/intel/ice/ice_virtchnl.c | 39 +++++++++++++++----
 .../ethernet/intel/ice/ice_virtchnl_fdir.c    | 24 +++++++-----
 include/linux/avf/virtchnl.h                  |  4 +-
 3 files changed, 48 insertions(+), 19 deletions(-)
Signature · 1 line
2.47.0