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 BCD56606A322 for ; Sat, 5 Dec 2026 02:28:04 +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=OsbrWA7a Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C4AB10E198; Sat, 5 Dec 2026 02:27:59 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5BBCA10E097 for ; Sat, 5 Dec 2026 02:27:53 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 18B0841783; Sat, 5 Dec 2026 02:27:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC4651F0092B; Sat, 5 Dec 2026 02:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796437672; bh=p/t+SRSnHiWJtj0PFmilqd8WcdK9DPIAZQMF/WoDsqs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=OsbrWA7aN5N+faK3z1pg9OF9LzcswnNp8OpX6as8CyCHisg96tQPFy0gIOeMkZfKC t7rNvvsWyRv/uC5Ehk3Vy7fmMlf93BEJMavT6iSbOSmwVDaMGAwzKM198mSYEAKi6W 5yOCqnF2DTXPGbE/SPORrBhNUlz3TrEII65NDlNKXKhsgjmvKAFXH8yZdmKVsfWNoq TFghayllkeIFBBJU0ml07G2giKBpeyroKN57tQAqR1mHHP+FSEiJRbi+lgSofWJfYl NU1eCKLX8vLQV96Yw994emwURzNzjxUU8aisNpvbbdGSPdpmKDXwgegu2eOmKXjMvK Z+517WC3ZjICw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/sun4i: reject zero-sized layer To: "Shirong Zhao" Cc: dri-devel@lists.freedesktop.org, linux-sunxi@lists.linux.dev In-Reply-To: <20261205021741.44-1-shxzhaosr@163.com> References: <20261205021741.44-1-shxzhaosr@163.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 02:27:52 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" 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/sun4i: Fixes trailer cites commit predating frontend divide-by-zero -- commit 38f14c080ffeebc7f15d4cfb56f927a9e17b180b Author: Shirong Zhao > drm/sun4i: reject zero-sized layer > > sun4i_frontend_update_coord(), reached through the frontend path, computes > the scaler factors as > > (luma_width << 16) / state->crtc_w > (luma_height << 16) / state->crtc_h > > state->crtc_w/crtc_h are the userspace atomic plane destination size. The > DRM core only bounds them from above, and nothing in the sun4i backend > rejects zero, so a commit with a zero destination size divides by zero. > > Reject zero-sized layers in sun4i_backend_plane_is_supported(). > > Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") > Signed-off-by: Shirong Zhao [Severity: Low] Does the Fixes tag point to the right commit? 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") predates the display frontend and sun4i_frontend_update_coord(), which misdirects stable backport tracking. The division by state->crtc_w and state->crtc_h was introduced in dd0421f47505 ("drm/sun4i: Add a driver for the display frontend") and enabled via 96180dde23b7 ("drm/sun4i: backend: Add a custom atomic_check for the frontend"). Should this be: Fixes: 96180dde23b7 ("drm/sun4i: backend: Add a custom atomic_check for t= he frontend") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205021741.44-1= -shxzhaosr@163.com?part=3D1