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=1796437673; b=o3po7rkMz438GzZxpB7kl1ph+DUOCfiurHmV2G4ATIDOrGwoa1F5JDu6D3Kc1S6DyYmb C0GjtoqeyeXbS1T4FulLG/yPJwwRxJsDz59g4josT7y6trQUhHvdm0vc9pxqFRpGzqzee EsGHkxtfiTjrFx+EUT/g5IrolCQQeg+zjIjVTtVX6GWMexUe1leJvkPgUQNuU7wnbqccD Cfj9IejJB+zoeR/38OuWEFirPlcpQgZZEFHIB3kGCNerrQV05gvs0aLypuMnz6Flic+h7 kj4LVjb5fvjprmPxli21PSg7uJnmkE//Mlmh+FwQCf66W5Xc8bvgV2YPAL/UAPvvRpA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796437673; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=p/t+SRSnHiWJtj0PFmilqd8WcdK9DPIAZQMF/WoDsqs=; b=3ITKaYXOccnwt/PyO7IzQzkZrBM8y+YfJvHn7fVuIXWnTBPhKCl5D2TWlVOgrnZKw/wJ CsKfsd6D/AAiDc63p5WBKPQR8EqtASQdHOb9sRP2jtgOYgVO4OLWmISkU0IHE4CdQZ1I5 Dwxp4fKGv5OpZ+041gzMopmDV6Es45YiSUvPA6aTV/lQzarn4K9bUvDCtaon844vW86nT mWSBea9VKJ7fmGkX+GZGNYrEqAlPB89wSFESWhJ3ShA8KUvcwzhgStX1qn0tvroKJA4Mp 1BdZMTSliYw93CrMAkq2qY0eMZeRpw0OGaKC8p4eIigGP4JPdV4dBoTltutdGhzcS6g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OsbrWA7a; 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 86907606A322 for ; Sat, 5 Dec 2026 02:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OsbrWA7a 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 Reply-To: sashiko-reviews@lists.linux.dev 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-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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