From nobody Sun Feb 8 09:10:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A6D3145B25; Wed, 27 Mar 2024 12:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711541509; cv=none; b=qVUNXUaF9+ACzePWw+IEyTX6FBQPf5REekR6Dk+ZPBxYSQcsqtBIwnl2QtFv07NYzk0B01UGakhmIgTxO1wvlUQb7rbbK1SfGj45Yx+2a14hMJAMSA1ehUQhh8G1Uq2vHT63FhawP10+Rdj5SCKEAoM2wromFWdBpmhTP3j43P8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711541509; c=relaxed/simple; bh=zXBG6WccgNTjvCYFSdQ51M2mQr1CH5mEKup6YbzhBug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D+zEEX3ZHGmAFZmbqMJbzsKZH1nwGilAP5dfLDDZcLMdzVN0ObBxWLblXrfcKnuSL17Uc0aX4IkqPvs9U1SUNVkbiUU4sPK0zBxAGa3RHrT8APiN2mR0sxxsIFU6mlzlr8m0cFTWupLJ/fEEcsJSyq4GkqkNOp3Dlb5XsVbTKpw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ftNAL1ii; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ftNAL1ii" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60C2CC433F1; Wed, 27 Mar 2024 12:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711541509; bh=zXBG6WccgNTjvCYFSdQ51M2mQr1CH5mEKup6YbzhBug=; h=From:To:Cc:Subject:Date:From; b=ftNAL1iinqBGKRhl31/xAINBu/lMOJcPCZdxLxg8ZB7VFQb+ub5pXccuNoz+q0HVl u3MCc6Ferci5tBmiKEz/pVuh9m1PBVtlEiDAcEoUhmahTCd+NY0Q8QsPKyxu5Wu3Hl IS9j1SK5HEGeqUD16C4L9UwLyzzSseTGkSlpEiGID0nbO+RUIN4dfwJfNMBLZFpJy4 OvgubLun4tJPl+5du6rxM1NYmaa74h/ngKfJxS/rhyS1GKxKeiWG+Be0paQyNVCX7a eLy6b1HRt1E7ki8DsM3BzwwL8LuJhYrU8VobimdCf9TfFMOIdZgWQUOCP3wXADOslJ n36KHat7bmlYg== From: Sasha Levin To: stable@vger.kernel.org, nirmoy.das@intel.com Cc: Andi Shyti , Shawn Lee , Rodrigo Vivi , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: FAILED: Patch "drm/i915: Check before removing mm notifier" failed to apply to 6.1-stable tree Date: Wed, 27 Mar 2024 08:11:47 -0400 Message-ID: <20240327121147.2829006-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha Reviewed-by: Rodrigo Vivi ------------------ original commit in Linus's tree ------------------ From db7bbd13f08774cde0332c705f042e327fe21e73 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Mon, 19 Feb 2024 13:50:47 +0100 Subject: [PATCH] drm/i915: Check before removing mm notifier Error in mmu_interval_notifier_insert() can leave a NULL notifier.mm pointer. Catch that and return early. Fixes: ed29c2691188 ("drm/i915: Fix userptr so we do not have to worry abou= t obj->mm.lock, v7.") Cc: # v5.13+ [tursulin: Added Fixes and cc stable.] Cc: Andi Shyti Cc: Shawn Lee Signed-off-by: Nirmoy Das Reviewed-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20240219125047.28906-1-= nirmoy.das@intel.com Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c b/drivers/gpu/drm/= i915/gem/i915_gem_userptr.c index 0e21ce9d3e5ac..61abfb505766d 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c @@ -349,6 +349,9 @@ i915_gem_userptr_release(struct drm_i915_gem_object *ob= j) { GEM_WARN_ON(obj->userptr.page_ref); =20 + if (!obj->userptr.notifier.mm) + return; + mmu_interval_notifier_remove(&obj->userptr.notifier); obj->userptr.notifier.mm =3D NULL; } --=20 2.43.0