tests: add gem_reloc_overflow to check wrapping
authorKees Cook <keescook@chromium.org>
Fri, 15 Mar 2013 18:09:07 +0000 (11:09 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 Mar 2013 11:19:58 +0000 (12:19 +0100)
commitc3bfd738c71b2821fcdc5c769c088578d84dc0a1
treeafb75ebdb2f1b4694cd5ade78ee0977d16a0f466
parent7da0af8855c1ecf075dc6019d9b711d969219722
tests: add gem_reloc_overflow to check wrapping

This adds a test to make sure that the execbuffer validation routine is
checking for invalid addresses, single entry overflow, and multi-entry
wrapping overflow.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/.gitignore
tests/Makefile.am
tests/gem_reloc_overflow.c [new file with mode: 0644]