Re: [Intel-gfx][PATCH v2] drm/i915/gvt: Prevent NULL pointer dereference in intel_vgpu_reg_rw_edid()

2020-09-12 Thread Aho Sior
Perfect! I can confirm it resolves the issue as well, thank you very much. Have a great day, Alejandro Sior. On Fri, 11 Sep 2020 at 07:58, Zhenyu Wang wrote: > > On 2020.09.08 20:11:21 +0200, Alejandro Sior wrote: > > In the function intel_vgpu_reg_rw_edid of kvmgt.c, pos can be equal > > to

[Intel-gfx][PATCH v2] drm/i915/gvt: Prevent NULL pointer dereference in intel_vgpu_reg_rw_edid()

2020-09-08 Thread Alejandro Sior
In the function intel_vgpu_reg_rw_edid of kvmgt.c, pos can be equal to NULL for GPUs that do not properly support EDID. In those cases, when pos gets passed to the handle_edid functions, it gets added a short offset then it's dereferenced in memcpy's, leading to NULL pointer dereference kernel