From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7403E606A322 for ; Sat, 5 Dec 2026 01:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BRyCGEjf Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13A5810ED11; Sat, 5 Dec 2026 01:01:28 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id DD59E10ED11; Sat, 5 Dec 2026 01:01:21 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 03F9F60224; Sat, 5 Dec 2026 01:01:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F951F0092B; Sat, 5 Dec 2026 01:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796432480; bh=9aGUYP/r8lNVP9PlLGSX9ywoBuAv0E8iOMpC+KfVJag=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=BRyCGEjfiQcXh0CesXVSZ3RUEeJkl4Ntjepr8LXJlEq1BL9HAoW9RglDnHzrEezUu TVhuQagnl8ztmYBdiQlTatWukAPd4eq+sL7zHIOA88ma+4aWjRImNz3XtjoOBK1iEN 0NQgMh/mm3G7YVF0DgiZZgxRDE/SqkxZZFttVm81w58AMiEHBjGp5vM4eZetkDbxRn kD6F8gK63JcbqahG3AcQWHZYqL4Zb+q+0QMp2FLWaX3dANtNMTwjv9vE74HtSQNpDL o6FU9l5tzMqFPWhORm/+nV5MFdwP3URn7TmG2zoksvNtcZMzgEzOyCfzVFdOcdzStB URxtHPH/w2ySA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] drm/amd/display: Fix use-after-free in dm_test_vblank_control_worker_enable_increments To: "John Harrison" , amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261205004951.404627-2-John.Harrison@Igalia.com> References: <20261205004951.404627-1-John.Harrison@Igalia.com> <20261205004951.404627-2-John.Harrison@Igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 01:01:20 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "amd-gfx" X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/amd/display: missing Fixes trailer in commit message -- commit 743bf16e2134d4dfb68bd75ac4f4ba7434f28d77 Author: John Harrison > drm/amd/display: Fix use-after-free in dm_test_vblank_control_worker_enab= le_increments > > The test runs a worker thread and verifies that it did something. > However, the worker frees up the work item object that the 'did > something' check inspects. > > The check is actually looking at data inside a different object (AMD > CRTC) but using the work item object to get there. So just save a > pointer to the desired CRTC object and use that in the test instead. > > Signed-off-by: John Harrison [Severity: Low] This fixes the use-after-free on work->acrtc introduced in dm_test_vblank_control_worker_enable_increments(). Should the commit message include: Fixes: 6455792e51db ("drm/amd/display: Fix KUnit tests for vblank control= rework") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205004951.4046= 27-1-John.Harrison@Igalia.com?part=3D1