Skip to content

igb: set max size RX buffer when store bad packet is enabled

JIRA: https://issues.redhat.com/browse/RHEL-15192

CVE: CVE-2023-45871

commit bb5ed01cd2428cd25b1c88a3a9cba87055eb289f

Author: Radoslaw Tyl radoslawx.tyl@intel.com

Date: Thu Aug 24 13:46:19 2023 -0700

igb: set max size RX buffer when store bad packet is enabled

Increase the RX buffer size to 3K when the SBP bit is on. The size of
the RX buffer determines the number of pages allocated which may not
be sufficient for receive frames larger than the set MTU size.

Cc: stable@vger.kernel.org
Fixes: 89eaefb61dc9 ("igb: Support RX-ALL feature flag.")
Reported-by: Manfred Rudigier <manfred.rudigier@omicronenergy.com>
Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Tested-by: Arpana Arland <arpanax.arland@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Wander Lairson Costa wander@redhat.com

Merge request reports