Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C65B6CD4F57 for ; Tue, 19 May 2026 09:56:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2035910E103; Tue, 19 May 2026 09:56:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kOFWEcrU"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id E7C9F10E103; Tue, 19 May 2026 09:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779184579; x=1810720579; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=uKwKXHqT+Qtz3a1LzVnNhstJ7shEY0GbecWpdhxqwr4=; b=kOFWEcrUqmQ1tZcHw4TiFngn3FujKv8ed+NWmjH1v9hsG9ghfQzw2wxZ L4INitm9hVNJKZfJWTcfXv6SbfdqNAXK2YEQ1gtmjOHbqMM0kLeZnul6+ 0mq43vpITulsiIgSp/cx+qrEp2xh26fXdg5iba8P0c6iQg5tf7dIGTBEf hfKL7CiUFXntWLHKlXY/5jhAXurDCTwDLwiPqhfr1J7hvjUxXZQt4pB/e KHcR0pZt9EawZLJpMH+PW8WbzDl+2KyKmcbGlBHC/EZMjRXmBEeXiD9t8 Ja03lvamP8ub4h0gyVV1WlXn0gijUT6ZK4YsKYd5TQGKcrP7x6wmUrYJD g==; X-CSE-ConnectionGUID: gLm04r+KQA6yVy00mehFiw== X-CSE-MsgGUID: cCkpDJz7RYu6qA2Ma3qfkA== X-IronPort-AV: E=McAfee;i="6800,10657,11790"; a="80109259" X-IronPort-AV: E=Sophos;i="6.23,243,1770624000"; d="scan'208";a="80109259" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2026 02:56:19 -0700 X-CSE-ConnectionGUID: GbeULT+pQeCpwoM416LNEg== X-CSE-MsgGUID: qN++TJVkTbWdJm7fQ9f0Zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,243,1770624000"; d="scan'208";a="238731009" Received: from kniemiec-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.244.209]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2026 02:56:14 -0700 Date: Tue, 19 May 2026 11:56:09 +0200 From: Andi Shyti To: Janusz Krzysztofik Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Christian =?iso-8859-15?Q?K=F6nig?= , Matthew Auld , Thomas =?iso-8859-15?Q?Hellstr=F6m?= , Andi Shyti , Krzysztof Karas , Krzysztof Niemiec , Sebastian Brzezinka Subject: Re: [PATCH v2] drm/i915: Fix potential UAF in TTM object purge Message-ID: References: <20260508122612.469227-2-janusz.krzysztofik@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260508122612.469227-2-janusz.krzysztofik@linux.intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Janusz, On Fri, May 08, 2026 at 02:23:51PM +0200, Janusz Krzysztofik wrote: > TLDR: The bo->ttm object might be changed by calling ttm_bo_validate(), > move casting it to an i915_tt object later to actually get the right > pointer. > > A user reported hitting the following bug under heavy use on DG2: > why the change is necessary (Christian). ... > > Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/14882 > Fixes: 7ae034590ceae ("drm/i915/ttm: add tt shmem backend") > Signed-off-by: Janusz Krzysztofik > Cc: stable@vger.kernel.org # v5.17+ > Cc: Matthew Auld > Cc: "Thomas Hellström" > Cc: Sebastian Brzezinka > Cc: "Christian König" merged to drm-intel-gt-next. Thanks, Andi