]> git.baikalelectronics.ru Git - kernel.git/commit
lkdtm: adjust usercopy tests to bypass const checks
authorKees Cook <keescook@chromium.org>
Tue, 6 Sep 2016 18:26:12 +0000 (11:26 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 6 Sep 2016 19:17:30 +0000 (12:17 -0700)
commitecad54172abb0922a7f5dd7823f8be9c0d5f5680
treebe51f2f74d09f2c6a201f3edb4bfca3fe2326f1b
parentaa096effb46da9a677f95a778b3a195e72347f63
lkdtm: adjust usercopy tests to bypass const checks

The hardened usercopy is now consistently avoiding checks against const
sizes, since we really only want to perform runtime bounds checking
on lengths that weren't known at build time. To test the hardened usercopy
code, we must force the length arguments to be seen as non-const.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm_usercopy.c