Re: AW: [PATCH] usb: xhci-pci: reorder removal to avoid use-after-free

2019-08-14 Thread Hans de Goede
Hi, On 14-08-19 15:32, Schmid, Carsten wrote: On driver removal, the platform_device_unregister call attached through devm_add_action_or_reset was executed after usb_hcd_pci_remove. This lead to a use-after-free for the iomem resorce of the xhci-ext-caps driver in the platform removal because th

AW: [PATCH] usb: xhci-pci: reorder removal to avoid use-after-free

2019-08-14 Thread Schmid, Carsten
> > On driver removal, the platform_device_unregister call > > attached through devm_add_action_or_reset was executed > > after usb_hcd_pci_remove. > > This lead to a use-after-free for the iomem resorce of > > the xhci-ext-caps driver in the platform removal > > because the parent of the resource

Re: [PATCH] usb: xhci-pci: reorder removal to avoid use-after-free

2019-08-14 Thread Hans de Goede
Hi, On 14-08-19 13:39, Schmid, Carsten wrote: On driver removal, the platform_device_unregister call attached through devm_add_action_or_reset was executed after usb_hcd_pci_remove. This lead to a use-after-free for the iomem resorce of the xhci-ext-caps driver in the platform removal because th

[PATCH] usb: xhci-pci: reorder removal to avoid use-after-free

2019-08-14 Thread Schmid, Carsten
On driver removal, the platform_device_unregister call attached through devm_add_action_or_reset was executed after usb_hcd_pci_remove. This lead to a use-after-free for the iomem resorce of the xhci-ext-caps driver in the platform removal because the parent of the resource was freed earlier. Fix