From: sashiko-bot@kernel.org
To: "Tian Xuechen" <202300460064@mail.sdu.edu.cn>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/gvt: Fix potential GGTT leak on scratch tree failure
Date: Fri, 04 Dec 2026 13:49:48 +0000 [thread overview]
Message-ID: <sashiko-outbox-249900@kernel.org> (raw)
In-Reply-To: <20261204133112.1953285-2-202300460064@mail.sdu.edu.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/i915/gvt: Fixes trailer cites wrong commit for
intel_vgpu_init_gtt()
--
commit 37afa0fbc147ef261c23b7fd66c1a3c2c27b4eb5
Author: Tian Xuechen <202300460064@mail.sdu.edu.cn>
> drm/i915/gvt: Fix potential GGTT leak on scratch tree failure
>
> GGTT allocation precedes scratch page-tree creation. If the latter fails,
> its local unwind releases only scratch pages, and the outer vGPU unwind
> skips GTT cleanup because initialization did not succeed.
>
> Drop the newly created GGTT and clear its pointer on this failure.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 3b6411c2c205 ("drm/i915/gvt: implement scratch page table tree for shadow PPGTT")
> Signed-off-by: Tian Xuechen <202300460064@mail.sdu.edu.cn>
[Severity: Low]
Should the Fixes tag cite 19e6393fb536 ("drm/i915/gvt: do not ignore return
value of create_scratch_page") instead?
That commit introduced the gtt->ggtt_mm leak by changing intel_vgpu_init_gtt()
to return the error from create_scratch_page() without freeing gtt->ggtt_mm.
Commit 3b6411c2c205 ("drm/i915/gvt: implement scratch page table tree for
shadow PPGTT") only replaced create_scratch_page() with
create_scratch_page_tree() on that existing error path.
Fixes: 19e6393fb536 ("drm/i915/gvt: do not ignore return value of create_scratch_page")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204133112.1953285-1-202300460064@mail.sdu.edu.cn?part=1
next prev parent reply other threads:[~2026-12-04 13:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 13:31 [PATCH 0/2] drm-i915: Fix resource lifetime and error-unwind issues Tian Xuechen
2026-12-04 13:31 ` [PATCH 1/2] drm/i915/gvt: Fix potential GGTT leak on scratch tree failure Tian Xuechen
2026-12-04 13:49 ` sashiko-bot [this message]
2026-12-04 13:31 ` [PATCH 2/2] drm/i915/selftests: Fix potential instance ID leak Tian Xuechen
2026-12-05 0:06 ` ✗ LGCI.VerificationFailed: failure for drm-i915: Fix resource lifetime and error-unwind issues Patchwork
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-249900@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=202300460064@mail.sdu.edu.cn \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.