Re: [PATCH 4.14 backport] drm/i915/gvt: Fix mmap range check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 22, 2019 at 10:15:01AM +0800, Zhenyu Wang wrote:
> 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>
> ---
> Note: This is backported version of upstream
> commit 51b00d8509dc ("drm/i915/gvt: Fix mmap range check") for 4.14.x stable.

Now applied, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux