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

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

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

Reply via email to