diff options
author | Kees Cook <[email protected]> | 2022-10-18 02:25:24 -0700 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2022-11-04 11:09:57 -0700 |
commit | 0668716506ca66f90d395f36ccdaebc3e0e84801 (patch) | |
tree | 10c16168c5a7b5ee0585f9ee917280bcdae882ae /tools/perf/scripts/python/futex-contention.py | |
parent | eac0b6804b74dd77dd33ee4a0639b717481ebf54 (diff) |
igb: Do not free q_vector unless new one was allocated
Avoid potential use-after-free condition under memory pressure. If the
kzalloc() fails, q_vector will be freed but left in the original
adapter->q_vector[v_idx] array position.
Cc: Jesse Brandeburg <[email protected]>
Cc: Tony Nguyen <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Michael J. Ruhl <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions