]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: validate size and offset of user fence BO
authorChristian König <christian.koenig@amd.com>
Fri, 9 Sep 2016 09:21:43 +0000 (11:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Sep 2016 19:10:43 +0000 (15:10 -0400)
commit08df64b266d7f20df43b74a1a4ad857769cd082a
treee3e9c09aef76de44e3bd55c59275dbcb47b7bdd0
parentbf7f583d2661edda9bdfb9d5cb9d082977780cf4
drm/amdgpu: validate size and offset of user fence BO

We need to validate the offset to make sure that we don't write after the BO.

Additional to that a page should be enough and can make address space
handling much easier.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c