Skip to content

iommu/vt-d: Fix issues on probe error path

Pranjal Shrivastava linux-iommu lkml 1 version Applied

Status from this message: Queued these two fix patches for linux-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 1 replyApplied

Patches in v1 Applied

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] iommu/vt-d: Fix issues on probe error path

This series addresses two pre-existing issues in the Intel VT-d driver's probe error path. These issues were identified by Sashiko during the review of the ATS series [1].

The first patch fixes an RB-tree corruption that occurs when probing non-ATS devices. The second patch fixes a UAF by ensuring the per-device private data pointer is cleared before freeing memory on failure.

[1] https://sashiko.dev/#/patchset/[email protected]?part=4

v2
- Updated the Fixes tag for Patch 2 based on feedback from Lu.

Thanks,
Praan

Pranjal Shrivastava (2):
iommu/vt-d: Fix RB-tree corruption in probe error path iommu/vt-d: Fix Use-After-Free in probe error path

 drivers/iommu/intel/iommu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.54.0.823.g6e5bcc1fc9-goog