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 <[email protected]>

> 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 <[email protected]>
> Cc: Lucas Stach <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Christian Gmeiner <[email protected]>
> Cc: [email protected]

[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/[email protected]?part=2

Reply via email to