From mboxrd@z Thu Jan 1 00:00:00 1970 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 BE0CEC88E77 for ; Tue, 15 Sep 2026 02:04:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3434A10F856; Tue, 15 Sep 2026 02:04:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="jKIveioP"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id A015510F855; Tue, 15 Sep 2026 02:03:59 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id ACD9F602C4; Tue, 15 Sep 2026 02:03:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA0291F0089B; Tue, 15 Sep 2026 02:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789437838; bh=z0vL2p+Bd88btvl3Ksm1wFnOPohiOiTkBKSRUoYcHVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jKIveioPNhMqPBhOJHPVrFRe2TZU9csQBTAj24Nftp8XjhJudo+o/kpgK4cZ9MEcD kfA2tqmfMEdKI0BdpYR4ayV7j+459XEIq9gzICqy3hOEpaofPwq7TC+hl1NmMMG17z wCcRRadLkpzn0xRHzUC3oJKos4jCot8G5C1ithqxsMhAMMv8oyHfelW4JRr8etH37T GwNf4RHs6YbK+/yV7P9LIhZEMZhqIUO4xRHVw4e5XYRBcWd/V00wUpfmCL3sA3P+sx Vx42Jksvt7+Zz4nVDvdlyQS8amvJSZMFva2Y6tUF0yGBNOt59vIF+yBTAsmBQwuIQQ KXUEDFhiZWbCA== From: Sasha Levin To: stable@vger.kernel.org, Greg Kroah-Hartman Cc: Sasha Levin , Roman Demidov , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Xinhui Pan , David Airlie , Simona Vetter , Wayne Lin , =?UTF-8?q?Timur=20Krist=C3=B3f?= , Fangzhi Zuo , Mario Limonciello , Srinivasan Shanmugam , Ivan Lipski , Melissa Wen , Alex Hung , "Mario Limonciello (AMD)" , Thomas Zimmermann , Sunil Khatri , Andrey Grodzovsky , Bhawanpreet Lakha , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, WenTao Liang , George Zhang Subject: Re: [PATCH 5.10/6.1] drm/amd/display: set new_stream to NULL after release Date: Mon, 14 Sep 2026 22:03:31 -0400 Message-ID: X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260914081639.12512-1-roman.demidov.nn@gmail.com> References: <20260914081639.12512-1-roman.demidov.nn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" > If a later error (e.g., color management failure) triggers the fail > label, the error path calls dc_stream_release() again on the same > dangling pointer, causing a double release and potential use-after-free. 5.15 carries the same double release of new_stream in dm_update_crtc_state() and has no fix for it, so taking 6.1 and 5.10 alone would make a 5.10 to 5.15 upgrade a regression. Could you send a v2 covering 5.15 as well? -- Thanks, Sasha