Re: [PATCH] PCI/ASPM: fix UAF by removing cached downstream

From: Ding Hui
Date: Sat Apr 29 2023 - 10:58:48 EST


On 2023/4/29 9:26 下午, Ding Hui wrote:
If the function 0 of a multifunction device is removed, an freed

Typo "a freed" will be fix in v2.


downstream pointer will be left in struct pcie_link_state, and then
when pcie_config_aspm_link() be invoked from any path, we will get a
KASAN use-after-free report.

--
Thanks,
-dinghui