[Intel-wired-lan] [net] igb: Check if num of q_vectors is smaller than max before array access.

Nguyen, Anthony L anthony.l.nguyen at intel.com
Tue Apr 20 20:15:57 UTC 2021


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 <aleksandr.loktionov at intel.com>
> Reviewed-by: Grzegorz Siwik <grzegorz.siwik at intel.com>
> Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski at intel.com>
> Reviewed-by: Slawomir Laba <slawomirx.laba at intel.com>
> Reviewed-by: Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>
> Verified-by: Mateusz Palczewski <mateusz.placzewski at intel.com>

WARNING: Non-standard signature: Verified-by:

Please fix and resend.


More information about the Intel-wired-lan mailing list