summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2015-03-13 15:21:53 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-17 22:30:31 +0100
commit72c5ba9562147d3fc2d22cd44c30bd136cd4a1ac (patch)
treeab091c977ced78de761dc2069c117aff441d38c2 /include/target
parenta1559ffefb2a80eabbee65d7cc04e828d4fd557d (diff)
downloadop-kernel-dev-72c5ba9562147d3fc2d22cd44c30bd136cd4a1ac.zip
op-kernel-dev-72c5ba9562147d3fc2d22cd44c30bd136cd4a1ac.tar.gz
drm/i915: Fix vmap_batch page iterator overrun
vmap_batch() calculates amount of needed pages for the mapping we are going to create. And it uses this page count as an argument for the for_each_sg_pages() macro. The macro takes the number of sg list entities as an argument, not the page count. So we ended up iterating through all the pages on the mapped object, corrupting memory past the smaller pages[] array. Fix this by bailing out when we have enough pages. This regression has been introduced in commit 17cabf571e50677d980e9ab2a43c5f11213003ae Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jan 14 11:20:57 2015 +0000 drm/i915: Trim the command parser allocations Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud