diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-08-21 09:26:53 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-23 13:31:19 +0300 |
commit | 1fb4124ca9d456656a324f1ee29b7bf942f59ac8 (patch) | |
tree | f5ee8ce0f7624727ef5f44e13011c2eeeb49f9ad /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3489cdc417b20d929b33eff4d8312b4dd1f39ca1 (diff) | |
download | linux-1fb4124ca9d456656a324f1ee29b7bf942f59ac8.tar.xz |
powerpc/sriov: Remove VF eeh_dev state when disabling SR-IOV
When disabling virtual functions on an SR-IOV adapter we currently do not
correctly remove the EEH state for the now-dead virtual functions. When
removing the pci_dn that was created for the VF when SR-IOV was enabled
we free the corresponding eeh_dev without removing it from the child device
list of the eeh_pe that contained it. This can result in crashes due to the
use-after-free.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Tested-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190821062655.19735-1-oohall@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions