[PATCH] drm/i915/gvt: Add carefully checking in GTT walker paths

Zhenyu Wang zhenyuw at linux.intel.com
Fri Aug 4 01:48:55 UTC 2017


On 2017.08.02 15:06:37 +0800, changbin.du at intel.com wrote:
> From: Changbin Du <changbin.du at intel.com>
> 
> When debugging the gtt code, found the intel_vgpu_gma_to_gpa() can
> translate any given GMA though the GMA is not valid. This because
> the GTT ops suppress the possible errors, which may result in an
> invalid PT entry is retrieved by upper caller.
> 
> This patch changed the prototype of pte ops to propagate status to
> callers. Then we make sure the GTT walker stop as early as when
> a error is detected to prevent undefined behavior.
> 
> Signed-off-by: Changbin Du <changbin.du at intel.com>

pushed, thx!

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170804/51d1d383/attachment.sig>


More information about the intel-gvt-dev mailing list