Re: [Intel-gfx] [PATCH 1/2] drm/i915/gvt: Avoid use-after-free iterating the gtt list

2018-11-21 Thread Zhenyu Wang
On 2018.11.21 09:20:19 +, Chris Wilson wrote: > Quoting Zhenyu Wang (2018-11-21 02:29:21) > > On 2018.11.20 20:24:38 +, Chris Wilson wrote: > > > Found by smatch: > > > > > > drivers/gpu/drm/i915/gvt/gtt.c:2452 intel_vgpu_destroy_ggtt_mm() error: > > > dereferencing freed memory 'pos' >

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gvt: Avoid use-after-free iterating the gtt list

2018-11-21 Thread Chris Wilson
Quoting Zhenyu Wang (2018-11-21 02:29:21) > On 2018.11.20 20:24:38 +, Chris Wilson wrote: > > Found by smatch: > > > > drivers/gpu/drm/i915/gvt/gtt.c:2452 intel_vgpu_destroy_ggtt_mm() error: > > dereferencing freed memory 'pos' > > > > Signed-off-by: Chris Wilson > > Cc: Zhenyu Wang > >

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gvt: Avoid use-after-free iterating the gtt list

2018-11-20 Thread Yuan, Hang
Sorry I missed it. Thanks for the correction! Regards, Henry > -Original Message- > From: Zhenyu Wang [mailto:zhen...@linux.intel.com] > Sent: Wednesday, November 21, 2018 10:29 AM > To: Chris Wilson > Cc: intel-gfx@lists.freedesktop.org; Zhenyu Wang > ; Yuan, Hang > Subject: Re:

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gvt: Avoid use-after-free iterating the gtt list

2018-11-20 Thread Zhenyu Wang
On 2018.11.20 20:24:38 +, Chris Wilson wrote: > Found by smatch: > > drivers/gpu/drm/i915/gvt/gtt.c:2452 intel_vgpu_destroy_ggtt_mm() error: > dereferencing freed memory 'pos' > > Signed-off-by: Chris Wilson > Cc: Zhenyu Wang > --- > drivers/gpu/drm/i915/gvt/gtt.c | 7 --- > 1 file

[Intel-gfx] [PATCH 1/2] drm/i915/gvt: Avoid use-after-free iterating the gtt list

2018-11-20 Thread Chris Wilson
Found by smatch: drivers/gpu/drm/i915/gvt/gtt.c:2452 intel_vgpu_destroy_ggtt_mm() error: dereferencing freed memory 'pos' Signed-off-by: Chris Wilson Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/gtt.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git