KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Replace one-element array flex-array member in drivers/net/ethernet/intel/iavf/iavf_client.h #289

Closed GustavoARSilva closed 5 months ago

GustavoARSilva commented 1 year ago
diff --git a/drivers/net/ethernet/intel/iavf/iavf_client.h b/drivers/net/ethernet/intel/iavf/iavf_client.h
index c5d51d7dc7cc..500269bc0f5b 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_client.h
+++ b/drivers/net/ethernet/intel/iavf/iavf_client.h
@@ -53,7 +53,7 @@ struct iavf_qv_info {

 struct iavf_qvlist_info {
        u32 num_vectors;
-       struct iavf_qv_info qv_info[1];
+       struct iavf_qv_info qv_info[];
 };

 #define IAVF_CLIENT_MSIX_ALL 0xFFFFFFFF
GustavoARSilva commented 1 year ago

Patch: https://lore.kernel.org/linux-hardening/ZGLR3H1OTgJfOdFP@work/

kees commented 5 months ago

Fixed in commit b0654e64dbaf62f565b5f2b4fbd92202e88dcba3.