[PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-18 Thread Andrew Donnellan
When cxl removes a vPHB, it's possible that the pci_controller may be freed before all references to the devices on the vPHB have been released. This in turn causes an invalid memory access when the devices are eventually released, as pcibios_release_device() attempts to call the phb's release_devi

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-18 Thread Matthew R. Ochs
> On Aug 18, 2016, at 2:35 AM, Andrew Donnellan > wrote: > > When cxl removes a vPHB, it's possible that the pci_controller may be freed > before all references to the devices on the vPHB have been released. This > in turn causes an invalid memory access when the devices are eventually > release

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-18 Thread Ian Munsie
Acked-by: Ian Munsie

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-22 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.8-rc3 next-20160822] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-29 Thread Andrew Donnellan
Hi stable team, The following patch, which ended up upstream as 6f38a8b9a45833495dc878c335c5431cd98a16ed: On 18/08/16 17:35, Andrew Donnellan wrote: When cxl removes a vPHB, it's possible that the pci_controller may be freed before all references to the devices on the vPHB have been released.

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-29 Thread Benjamin Herrenschmidt
On Tue, 2016-08-30 at 11:58 +1000, Andrew Donnellan wrote: > Hi stable team, > > The following patch, which ended up upstream asĀ  > 6f38a8b9a45833495dc878c335c5431cd98a16ed: > > On 18/08/16 17:35, Andrew Donnellan wrote: > > > > When cxl removes a vPHB, it's possible that the pci_controller may