drm/i915: Validate VBT header before trusting it
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Apr 2014 21:04:22 +0000 (18:04 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 07:08:59 +0000 (09:08 +0200)
commit3dd4e846042063bf5481df87a00356ee820288de
treecc860f9e11f27e9a64d2922770244053d7e9f872
parentd1f13fd261f4490b3b69c1da87711fd3813c2a9f
drm/i915: Validate VBT header before trusting it

Be we read and chase pointers from the VBT, it is prudent to make sure
that those accesses are wholly contained within the MMIO region, or else
we may cause a kernel panic during boot.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Shobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.c
This page took 0.025247 seconds and 5 git commands to generate.