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 3E014606A322 for ; Thu, 3 Dec 2026 14:19:26 +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=DPwHRCIc Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93714112916; Thu, 3 Dec 2026 14:19:20 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id A55AA1128D3 for ; Thu, 3 Dec 2026 14:19:13 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 2990A60E96; Thu, 3 Dec 2026 14:19:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 447DC1F00898; Thu, 3 Dec 2026 14:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307552; bh=ImfLw3oVT4N1AkHUy4J8Ak951/PadrUQpcPLUiM0YLI=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=DPwHRCIcjsLYYetnaSKAh/Yyzbga/18zuSfC8C91mdxMQsUfNoDD5X7zu9N51X7o1 4PMqpXgcpw5LVGwSgWxGpqVcLXB3E4CKKIHPBGYa7g5JCIR3dnMntm4+lADC07AT4T gSMVldOXJWobPvuVqonxZqpuZoFD6XPfHsWyAwTr7YKNW1IPS2LQAU2BMj5gpxcrtr HuzmzP9cdlQi0dCw5wUxvdxL0WB3wOx7pBHjjUFQwOyIg14Mz3rVuFy8hfcVJWfhou +m3H1xjEErjCXSZOvekwxQe2pmcpBCARpOR0eLgWeXObL+3WQbMrEZBOUds/jANibW g9chnWyYGFKSA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 03/10] drm/etnaviv: Check drm_sched_entity_init() return value To: "Tvrtko Ursulin" , dri-devel@lists.freedesktop.org In-Reply-To: <20261203140128.6813-4-tvrtko.ursulin@igalia.com> References: <20261203140128.6813-1-tvrtko.ursulin@igalia.com> <20261203140128.6813-4-tvrtko.ursulin@igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:19:11 +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=-10.8 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/etnaviv: inaccurate commit message and missing Fixes tag -- commit 1bcc1945503d97a4e3b2616be71622735bd4fe37 Author: Tvrtko Ursulin > drm/etnaviv: Check drm_sched_entity_init() return value > > Start checking drm_sched_entity_init() return value in preparation of > making that API a bit stricter. > > No functional change intended as the failure path should never trigger in > this driver. > > Signed-off-by: Tvrtko Ursulin > Cc: Lucas Stach > Cc: Russell King > Cc: Christian Gmeiner > Cc: etnaviv@lists.freedesktop.org [Severity: Low] Is the commit message accurate that the failure path can never trigger in this driver? Since commit fd177135f0e6 ("drm/sched: Account entity GPU time"), drm_sched_entity_init() allocates entity->stats via drm_sched_entity_stats_new() and can return -ENOMEM even with valid arguments. Without checking the return value, etnaviv_open() succeeds with a NULL entity->rq, causing a NULL pointer dereference in drm_sched_entity_flush() when etnaviv_postclose() calls drm_sched_entity_destroy(). Since this fixes a reachable bug, should the commit message be updated and include: Fixes: fd177135f0e6 ("drm/sched: Account entity GPU time") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203140128.6813= -1-tvrtko.ursulin@igalia.com?part=3D3