Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709883

Re: [PATCH v3] iommu/s390: Add support for iommu_device handling

From Sebastian Ott <sebott@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3] iommu/s390: Add support for iommu_device handling
Date 2017-08-11 19:30 +0200
Message-ID <udlV0-6mk-29@gated-at.bofh.it> (permalink)
References <ucwps-5Qr-19@gated-at.bofh.it> <ud10e-1xP-13@gated-at.bofh.it> <udcI2-Db-7@gated-at.bofh.it> <udlBE-6fZ-15@gated-at.bofh.it>
Organization "IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294"

Show all headers | View raw


On Fri, 11 Aug 2017, Sebastian Ott wrote:
> * That patch embedded a struct iommu_device within struct zpci_dev but
> the iommu_device has a release function (via its class) - so when
> the release function gets called it frees memory that was never allocated.
> The fix is to not embedd struct iommu_device in zpci_dev (see below)

While discussing the problem with Gerald he noticed that
struct iommu_device is embedded in other structs. So that
is potentially broken in other cases, too.

Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3] iommu/s390: Add support for iommu_device handling Joerg Roedel <joro@8bytes.org> - 2017-08-09 12:30 +0200
  Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-10 21:10 +0200
    Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Joerg Roedel <joro@8bytes.org> - 2017-08-10 23:30 +0200
    Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Joerg Roedel <joro@8bytes.org> - 2017-08-11 09:40 +0200
      Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-11 19:10 +0200
        Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-11 19:20 +0200
        Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-11 19:30 +0200
        Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Joerg Roedel <jroedel@suse.de> - 2017-08-14 18:30 +0200
          Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-15 18:10 +0200
            Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-08-15 18:20 +0200
            Re: [PATCH v3] iommu/s390: Add support for iommu_device handling Joerg Roedel <jroedel@suse.de> - 2017-08-15 18:20 +0200

csiph-web