Skip to content

Commit a8e699d

Browse files
bjking1gregkh
authored andcommitted
ixgbevf: Use smp_rmb rather than read_barrier_depends
commit ae0c585d93dfaf923d2c7eb44b2c3ab92854ea9b upstream. The original issue being fixed in this patch was seen with the ixgbe driver, but the same issue exists with ixgbevf as well, as the code is very similar. read_barrier_depends is not sufficient to ensure loads following it are not speculatively loaded out of order by the CPU, which can result in stale data being loaded, causing potential system crashes. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2f7de4d commit a8e699d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static bool ixgbevf_clean_tx_irq(struct ixgbevf_q_vector *q_vector,
312312
break;
313313

314314
/* prevent any other reads prior to eop_desc */
315-
read_barrier_depends();
315+
smp_rmb();
316316

317317
/* if DD is not set pending work has not been completed */
318318
if (!(eop_desc->wb.status & cpu_to_le32(IXGBE_TXD_STAT_DD)))

0 commit comments

Comments
 (0)