From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73F1ABA3D for ; Sun, 31 May 2026 17:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780246979; cv=none; b=RSm6bdsgY5u6bz9vsH8/4sYuGFXasVUFZyVPLOSGG8pIac0UsxVtQlzP1hEoOYPSwvC4uXpLzex00Unb46XrUyGtUVdjU29V6Ad260DnxS4ngk95+1o1kXkBM06k4FHEKgw/Ox0fbmQKxtw3+g0ctWr32Qeya04lnAwvK27lqto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780246979; c=relaxed/simple; bh=h2LShkgTS4F6cLrC17qtgcJSfn+9wJYzg3Z0SdOtgEk=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=q9gK3DnrmadlkRuwaKHndnfMvJXPOIrbRtofIfvH5gtqt9CwZO/H7l0A5Vllc7sSKCKo9GTcBCtQMXSqRDhKqix15fZLNjaWH0JsKwuUzCMJwfJ69zpJKVvAniNn4QbiGwRGGfNeqvjwn5hAZfweibDX5cK4gr/QjyS+ZsFOieY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--praan.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=boZ47hEE; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--praan.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="boZ47hEE" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-36d98b76d12so387808a91.2 for ; Sun, 31 May 2026 10:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780246978; x=1780851778; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=f5OhZ1yeh0sgmy7BgKOMHnhO6M1dzf06o5FBbczTnR8=; b=boZ47hEE1kExJVtFxGkZDVi1YrQqCNrseAz6LxFE6om5sAtwUycfBi5oyMpi8xMBTy wNimDrfdmPyHZVLk/4zyCrz7+qNyE7WBohiPQ5oBM7HyDGGLnXql1dXzLPcvAYSzfiIS JO+SVW2PqzliXvBJlHOJUShlkwC0m4ihFKoNbeDvkM3H7o40zL8Q0P6QiKR/4Adt9107 ro6jD00Cp3ch1R4hcZM/9pwwqQ8YJlu7c2Sb769bXxIbggl9kPCx3VxCIDR7gUG8v/6W 1UlGn1Yq6TmwQ5BaYTDarxJaxrhkK2rCpA9dSepeNVJaOQcTm7f9w+kd74S3XsSzpIZR Wh1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780246978; x=1780851778; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=f5OhZ1yeh0sgmy7BgKOMHnhO6M1dzf06o5FBbczTnR8=; b=a0OHp+03B1LU7nJn+Nega5dCzXl4aubV2qPvmgFZjJ5vGuQllDlYYPs7nzru+CPLBD NVMsJPOnfl15ZrtCtK25US0sEZeHWTBbe1SOPHiEwEXWhbPkljHcgc6fpLQturD9wr0y nfMAfpHSTfB24CCkVrMf0qxs439mrEyjO/BBiS9H5C2AqpUzbUy+/5ecSPFf0ESKsCz3 T4+q5Sjfl7o9utoLvyhJW8KyDH6YKn/Lu6NlrWM4JoOSQFms3KX5WwfaDelzHhAfL3qY UvSIrfDINR5Nw4SWT+ZpwRvRJpUt0PZx7q3uWOnZOWYtTBtDzwA/jvSzbq8jYaAEredF GY+Q== X-Forwarded-Encrypted: i=1; AFNElJ88UAqQDBGJgeUTyDTGCGSmb+GnD1xtYuUoqzkUEhyIS1YWBgcUw+Va2xSl/dDGcjh2Jb9yG+mW7QaEImA=@vger.kernel.org X-Gm-Message-State: AOJu0YwSzSr9eM+d2XgJTom0/YOfUdcb0n5srKBTPYKydW1rPW2rXDei VTjvM/5mNSTLWA6u2nTqMCHYWkIxdRJzy95+q6oWPgspRaa6733VMigdAjlj9g7+3OAzbkHpCQ+ ECw== X-Received: from pjbnb13.prod.google.com ([2002:a17:90b:35cd:b0:365:d006:6df7]) (user=praan job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:2247:b0:362:e826:cefe with SMTP id 98e67ed59e1d1-36c5afb8e7cmr7852408a91.23.1780246977491; Sun, 31 May 2026 10:02:57 -0700 (PDT) Date: Sun, 31 May 2026 17:02:52 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.823.g6e5bcc1fc9-goog Message-ID: <20260531170254.60493-1-praan@google.com> Subject: [PATCH 0/2] iommu/vt-d: Fix issues on probe error path From: Pranjal Shrivastava To: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Cc: David Woodhouse , Lu Baolu , Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Samiullah Khawaja , Pranjal Shrivastava Content-Type: text/plain; charset="UTF-8" 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/20260525184347.4059549-1-praan@google.com?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(-) -- 2.54.0.823.g6e5bcc1fc9-goog