[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170827124524.sye7hzriufwwjolu@8bytes.org>
Date: Sun, 27 Aug 2017 14:45:32 +0200
From: Joerg Roedel <joro@...tes.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org
Subject: [git pull] IOMMU Fixes for Linux iommu-fixes-v4.13-rc6
Hi Linus,
The following changes since commit a7990c647b35415e3dd07a077480a908678947ba:
iommu/arm-smmu: fix null-pointer dereference in arm_smmu_add_device (2017-08-11 16:56:51 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v4.13-rc6
for you to fetch changes up to 2926a2aa5c14fb2add75e6584845b1c03022235f:
iommu: Fix wrong freeing of iommu_device->dev (2017-08-15 13:58:48 +0200)
----------------------------------------------------------------
IOMMU Fixes for Linux v4.13-rc6
Another fix, this time in common IOMMU sysfs code
- In the conversion from the old iommu sysfs-code to the
iommu_device_register interface, I missed to update the
release path for the struct device associated with an IOMMU.
It freed the 'struct device', which was a pointer before, but
is now embedded in another struct. Freeing from the middle of
allocated memory had all kinds of nasty side effects when an
IOMMU was unplugged. Unfortunatly nobody unplugged and IOMMU
until now, so this was not discovered earlier. The fix is to
make the 'struct device' a pointer again.
----------------------------------------------------------------
Joerg Roedel (1):
iommu: Fix wrong freeing of iommu_device->dev
drivers/iommu/amd_iommu_types.h | 4 +++-
drivers/iommu/intel-iommu.c | 4 +++-
drivers/iommu/iommu-sysfs.c | 32 ++++++++++++++++++++------------
include/linux/iommu.h | 12 +++++++++++-
4 files changed, 37 insertions(+), 15 deletions(-)
Please pull.
Thanks,
Joerg
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists