diff options
| author | Vinicius Costa Gomes <[email protected]> | 2021-05-14 00:31:04 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2021-07-01 17:53:04 +0000 |
| commit | 7b292608db23ccbbfbfa50cdb155d01725d7a52e (patch) | |
| tree | aaf9e657a3986864c24fe0d29854ff9eb2eefefe /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | igc: Fix use-after-free error during reset (diff) | |
| download | kernel-7b292608db23ccbbfbfa50cdb155d01725d7a52e.tar.gz kernel-7b292608db23ccbbfbfa50cdb155d01725d7a52e.zip | |
igb: Fix use-after-free error during reset
Cleans the next descriptor to watch (next_to_watch) when cleaning the
TX ring.
Failure to do so can cause invalid memory accesses. If igb_poll() runs
while the controller is reset this can lead to the driver try to free
a skb that was already freed.
(The crash is harder to reproduce with the igb driver, but the same
potential problem exists as the code is identical to igc)
Fixes: 7cc6fd4c60f2 ("igb: Don't bother clearing Tx buffer_info in igb_clean_tx_ring")
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Reported-by: Erez Geva <[email protected]>
Tested-by: Tony Brelinski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
