[G][PATCH 0/1] zPCI DMA tables and bitmap leak on hard unplug (PCI Event 0x0304) (LP: 1896216)

frank.heimes at canonical.com frank.heimes at canonical.com
Fri Sep 18 18:55:37 UTC 2020

Buglink: https://bugs.launchpad.net/bugs/1896216

Commit "s390/pci: adapt events for zbus" removed the zpci_disable_device() call for a zPCI event with PEC 0x0304 (hot unplug) becausethe device is already deconfigured by the platform.
This however skips the Linux side of the disable in particular it leads to leaking the DMA tables and bitmaps because zpci_dma_exit_device() is never called on the device.
This has been fixed in the following commit, that re-introduces the zpci_disable_device() call as it was before the zbus introduction, for good measure I also added a comment to zpci_disable_device() to call out the fact that it may be called with the device disabled already.

Niklas Schnelle (1):
  From: Niklas Schnelle <schnelle at linux.ibm.com>

 arch/s390/pci/pci.c       | 4 ++++
 arch/s390/pci/pci_event.c | 2 ++
 2 files changed, 6 insertions(+)


More information about the kernel-team mailing list