]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 25 Apr 2014 09:10:57 +0000 (11:10 +0200)
commitc4365fb8e0fa4be621a8d4b10581a545005dea71
treee0f4c543d12505cb34f7e069839d6cdf90cd16b9
parent1cc25e37213c5adca7a442a4fa6d09d9651928cc
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