* Re: [PATCH 1/2] drm/i915/gvt: Fix potential GGTT leak on scratch tree failure
[not found] ` <20261204133112.1953285-2-202300460064@mail.sdu.edu.cn>
@ 2026-12-04 13:49 ` sashiko-bot
0 siblings, 0 replies; only message in thread
From: sashiko-bot @ 2026-12-04 13:49 UTC (permalink / raw)
To: Tian Xuechen; +Cc: intel-gfx, dri-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-04 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261204133112.1953285-1-202300460064@mail.sdu.edu.cn>
[not found] ` <20261204133112.1953285-2-202300460064@mail.sdu.edu.cn>
2026-12-04 13:49 ` [PATCH 1/2] drm/i915/gvt: Fix potential GGTT leak on scratch tree failure sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox