From: sashiko-bot@kernel.org
To: "Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 03/10] drm/etnaviv: Check drm_sched_entity_init() return value
Date: Thu, 03 Dec 2026 14:19:11 +0000 [thread overview]
Message-ID: <sashiko-outbox-247945@kernel.org> (raw)
In-Reply-To: <20261203140128.6813-4-tvrtko.ursulin@igalia.com>
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 <tvrtko.ursulin@igalia.com>
> 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 <tvrtko.ursulin@igalia.com>
> Cc: Lucas Stach <l.stach@pengutronix.de>
> Cc: Russell King <linux+etnaviv@armlinux.org.uk>
> Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
> 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")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203140128.6813-1-tvrtko.ursulin@igalia.com?part=3
next prev parent reply other threads:[~2026-12-03 14:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:01 [PATCH v2 00/10] drm/sched: Entity handling cleanups Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 01/10] drm/amdgpu/vcn3: Fail job submission if VCN0 decode is disabled under SR-IOV Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 02/10] drm/etnaviv: Release context id on failure Tvrtko Ursulin
2026-12-03 14:18 ` sashiko-bot
2026-12-03 14:01 ` [PATCH v2 03/10] drm/etnaviv: Check drm_sched_entity_init() return value Tvrtko Ursulin
2026-12-03 14:19 ` sashiko-bot [this message]
2026-12-03 14:24 ` Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 04/10] drm/msm: " Tvrtko Ursulin
2026-12-03 14:23 ` sashiko-bot
2026-12-03 14:24 ` Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 05/10] drm/sched: Mark drm_sched_entity_init() as __must_check Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 06/10] drm/sched: Disallow initializing entities with un-initialized schedulers Tvrtko Ursulin
2026-12-03 14:23 ` sashiko-bot
2026-12-05 4:20 ` Sidong Yang
2026-12-03 14:01 ` [PATCH v2 07/10] drm/sched: Clamp priority againsts all provided schedulers Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 08/10] drm/sched: Ignore stopped entity attempt to change its run-queue Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 09/10] drm/sched: Remove the single scheduler special case Tvrtko Ursulin
2026-12-03 14:31 ` sashiko-bot
2026-12-03 14:01 ` [PATCH v2 10/10] drm/sched: Address the fence_seq fixme Tvrtko Ursulin
2026-12-03 14:30 ` sashiko-bot
2026-12-03 19:29 ` [PATCH v2 00/10] drm/sched: Entity handling cleanups Maíra Canal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247945@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tvrtko.ursulin@igalia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.