From: sashiko-bot@kernel.org
To: "Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 02/10] drm/etnaviv: Release context id on failure
Date: Thu, 03 Dec 2026 14:18:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-247943@kernel.org> (raw)
In-Reply-To: <20261203140128.6813-3-tvrtko.ursulin@igalia.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/etnaviv: missing Fixes trailer for etnaviv_open() XArray
leak fix
--
commit 5c40c43dfcc5cb8de64c961ddd4b379057974735
Author: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> drm/etnaviv: Release context id on failure
>
> Cleanup on the etnaviv_open() failure path looks incomplete in that the
> context id is left allocated. Fix it by adding proper onion unwind.
>
> 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]
Even though the context ids are unused, leaving them in
priv->active_contexts leaks XArray slots and xa_node slab memory (and a
dangling ctx pointer) until etnaviv_unbind().
On IOMMUv2, etnaviv_iommuv2_context_alloc() fails once 512 contexts are
open, so repeated failed opens can leak unbounded kernel memory without
memory pressure.
Since this fixes a memory leak introduced when xa_alloc_cyclic() was added
to etnaviv_open(), should this include:
Fixes: d306788b6e1b ("drm/etnaviv: allocate unique ID per drm_file")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203140128.6813-1-tvrtko.ursulin@igalia.com?part=2
next prev parent reply other threads:[~2026-12-03 14:18 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 [this message]
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
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-247943@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.