On Wed, Dec 11, 2019 at 03:01:54PM +0100, Denys Vlasenko wrote: > Bugzilla: 1713567 > Z-Bugzilla: 1739309 > CVE: CVE-2019-11085 > Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=25302094 > > This is a backport of 7.6.z patch to 7.4.z - 7.4.z needs > intel_vgpu_in_aperture(), so add it. > > 7.6.z patch tested: Win10 VM with assigned Intel vGPU still works > > This is to fix missed mmap range check on vGPU bar2 region > and only allow to map vGPU allocated GMADDR range, which means > user space should support sparse mmap to get proper offset for > mmap vGPU aperture. And this takes care of actual pgoff in mmap > request as original code always does from beginning of vGPU > aperture. > > Fixes: 659643f7d814 ("drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT") > Cc: "Monroy, Rodrigo Axel" <rodrigo.axel.monroy@xxxxxxxxx> > Cc: "Orrala Contreras, Alfredo" <alfredo.orrala.contreras@xxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx # v4.10+ > Reviewed-by: Hang Yuan <hang.yuan@xxxxxxxxx> > Signed-off-by: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> > (cherry picked from commit 51b00d8509dc69c98740da2ad07308b630d3eb7d) > Signed-off-by: Denys Vlasenko <dvlasenk@xxxxxxxxxx> > --- > drivers/gpu/drm/i915/gvt/kvmgt.c | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-) Come on, isn't there a requirement to know NOT to spam public mailing lists for internal emails? :(