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(-) -- 2.47.0