From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nguyen, Anthony L Date: Tue, 20 Apr 2021 20:15:57 +0000 Subject: [Intel-wired-lan] [net] igb: Check if num of q_vectors is smaller than max before array access. In-Reply-To: <20210416165952.24401-1-aleksandr.loktionov@intel.com> References: <20210416165952.24401-1-aleksandr.loktionov@intel.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On Fri, 2021-04-16 at 16:59 +0000, Aleksandr Loktionov wrote: > Ensure that the adapter->q_vector[MAX_Q_VECTORS] array isn't accessed > beyond its size. It was fixed by using a local variable num_q_vectors > as a limit for loop index, and ensure that num_q_vectors is not > bigger > than MAX_Q_VECTORS. > > Fixes: 047e0030f1e6 ("igb: add new data structure for handling > interrupts and NAPI") The Fixes tag should not be wrapped. It's exempt from the 75 char limit. > Signed-off-by: Aleksandr Loktionov > Reviewed-by: Grzegorz Siwik > Reviewed-by: Arkadiusz Kubalewski > Reviewed-by: Slawomir Laba > Reviewed-by: Sylwester Dziedziuch > Verified-by: Mateusz Palczewski WARNING: Non-standard signature: Verified-by: Please fix and resend.