summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-08-21 16:26:53 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 15:42:37 +0100
commitd95d392f971d6737f34a5a486b34ccc866d79a89 (patch)
tree5e7f4d20aa05c1dc30734f17f81d302433cf91ba /fs
parenta19436ad811e0f66c43553cff4ce2265a6ac4000 (diff)
powerpc/sriov: Remove VF eeh_dev state when disabling SR-IOV
[ Upstream commit 1fb4124ca9d456656a324f1ee29b7bf942f59ac8 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions