From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380248; b=bi2P8EKfkkCwUBZXYFxaDMc1REJiouC1oZjZW7iAFU6iHIYddryEZ1LnHxfsGsQEnWOV 2McnPdWSXbPIGIcfa9UOuoMnFR1c/zCLHLLdzzXMCTr0VEr3ufFP+DdVbqjKtRkGRVvc9 Z+DpBYYwwJN/fGZXcpGBbIKirkg1Mac9CudB3OccdKksekN+tn3g1mg9tW+WWHuSt9geu hmwJbSB7QKWyX6//EZ4LEU4YkYBl+LL5LA6TXDfEEMmvCDTO+i5xC5WDQXycAew6soXve Ee1lJSb3gE5k+G/atWVi2CFNp8gzaCoWx0Z4KqKImZKK2ERUB7CYPk/ua7/NuESBHkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380248; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=4iwmonM3jp7MDgIdBedGFkxuixvHKwLmZ3EaoII5Ul4=; b=K0XPQ5g7g/KbEkaL+dWJfoTv3+jnKCYEOyn4n4ct1ycPXavB4MzRVPcHgGsLZJ7/Grv0 wc95w5PpaP/IHyRPU/mrz/fx4T6kFN+PH2S1zqU9JMLd2Fbwjtsi54PsO6mVaNVuviH7P L7Gt0fDBNSF/pZZf+G1aFNWEjuw9tZk0UP3vQpktT30NdOnnvvvNp5iI7LOJWKVkKZLSq Q7xnBbufiohLBy1OyaImqrdCSQUOPz73AZxdVaptxwUpvV9l5kNbpWHJmaHEMcpv53Ifo WxXjK54Wwf8yLyqOzieh9DyaWF/KZwO9ui9pWT7wjKMtRuLRZzVxMOudzn9XmdKwk9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pBfyc6zg; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DE14606A322; Fri, 4 Dec 2026 10:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pBfyc6zg Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9A2F1F00935; Fri, 4 Dec 2026 10:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380248; bh=4iwmonM3jp7MDgIdBedGFkxuixvHKwLmZ3EaoII5Ul4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pBfyc6zgdY7RAa2r9NGH7V9dfJ7nd8s5mJGnQbiOs4pcFt/p579zKVcpnPeJgPraZ e5rm3YlIegzk5jJleuRHAz31uJWLTMXqeoANGEMzxycg92/vmTI2RsGHo9k01UUt2A +JKNpgJiXTuZXFU2xn5r68v7wD2yAzDO8YTNklWo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ian Forbes , =?UTF-8?q?Christian=20K=C3=B6nig?= , Dave Airlie , Sasha Levin Subject: [PATCH 7.3 192/742] ttm/pool: Dont leak LRU list on shutdown Date: Fri, 4 Dec 2026 19:00:56 +0900 Message-ID: <20261204100640.181248846@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ian Forbes [ Upstream commit 5ffdc8f8361387a1b11553e5c95cd589c67a51f2 ] TTM pool was changed from a regular list to an lru list in the referenced fixes commit. list_lru_init allocates state and it needs to be freed unlike a simple list. Found using the igt@core_hotunplug and kmemleak. Fixes: 444e2a19d7fd ("ttm/pool: port to list_lru. (v2)") Signed-off-by: Ian Forbes Reviewed-by: Christian König Signed-off-by: Dave Airlie Link: https://patch.msgid.link/20260527202018.1223912-1-ian.forbes@broadcom.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/ttm/ttm_pool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c index 1bf37023fed66..0076594b00683 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -421,6 +421,7 @@ static void ttm_pool_type_fini(struct ttm_pool_type *pt) list_lru_walk(&pt->pages, pool_move_to_dispose_list, &dispose, LONG_MAX); ttm_pool_dispose_list(pt, &dispose); + list_lru_destroy(&pt->pages); } /* Return the pool_type to use for the given caching and order */ -- 2.53.0