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 CD66A606A322 for ; Thu, 3 Dec 2026 14:23:29 +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=HhVlglFH Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33DDB11291D; Thu, 3 Dec 2026 14:23:24 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 71F0C11291D for ; Thu, 3 Dec 2026 14:23:18 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id AC299629C3; Thu, 3 Dec 2026 14:23:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F6461F00896; Thu, 3 Dec 2026 14:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307797; bh=NkRmC4x/jQEv1TL36DFCuwN1sMKMFbDl4F8hZ4P8XTs=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=HhVlglFHo08OgsBuH+PCfN8riL8TE/UjuUcHEmSUsT51OL1RzHYTmH7miOtYtWApb taAg9KL3gA9/76JWRwQ11c68cECqcqoY7bE9dg9GelSZk67u2kZQ4GXaNHETQ8Wik9 B5UL3EMgB0bHvnrcXbokL1wgFKSgRZVJFWeOiC5YTYXSkx8uL+3yxJAxJlvnGYqYV3 D3Hw6N136R2cZCdUI2fHmh3qZGaQ2skxb8Um2EhGv9Lrwc3raHVi857AH+XzxEsrqH scw0QX/rUY5o3RL9Y77nuYxDQToc30aho0cmP6UqrGaviXJdsBUqnEd01fb95fbQZS 4zYTQK/2ZW4ZA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 04/10] drm/msm: Check drm_sched_entity_init() return value To: "Tvrtko Ursulin" , dri-devel@lists.freedesktop.org In-Reply-To: <20261203140128.6813-5-tvrtko.ursulin@igalia.com> References: <20261203140128.6813-1-tvrtko.ursulin@igalia.com> <20261203140128.6813-5-tvrtko.ursulin@igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:23:13 +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/msm: inaccurate commit message and missing Fixes tag -- commit 21999ea1c8eea57d5acd6db9fdbfa393532b555c Author: Tvrtko Ursulin > drm/msm: 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 given drm_sched_init() happens before and it's failure is > always fatal. > > Signed-off-by: Tvrtko Ursulin > Cc: Rob Clark > Cc: Dmitry Baryshkov > Cc: linux-arm-msm@vger.kernel.org > Cc: freedreno@lists.freedesktop.org [Severity: Low] Is the "no functional change intended" claim accurate here? drm_sched_entity_init() allocates entity->stats via drm_sched_entity_stats_new() and returns -ENOMEM on allocation failure even when drm_sched_init() succeeded. Previously, ignoring that error left queue->entity zeroed while still registering the queue, leading to a NULL pointer dereference in drm_sched_entity_stats_put() on teardown. Since this fixes a reachable allocation-failure crash, should the commit message be updated and include: Fixes: 92395af63a99 ("drm/msm: Add VM_BIND submitqueue") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203140128.6813= -1-tvrtko.ursulin@igalia.com?part=3D4