summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm_usercopy.c
Commit message (Collapse)AuthorAgeFilesLines
* lkdtm: fix false positive warning from -Wmaybe-uninitializedKees Cook2016-08-011-1/+1
| | | | | | | | | | | The variable in use here doesn't matter (it's just used to exercise taking up stack space), but this changes its use to pass its address instead, to avoid a compiler warning: drivers/misc/lkdtm_usercopy.c:54:15: warning: 'bad_stack' may be used uninitialized in this function [-Wmaybe-uninitialized] Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kees Cook <keescook@chromium.org>
* lkdtm: silence warnings about function declarationsKees Cook2016-07-151-3/+1
| | | | | | | | | When building under W=1, the lack of lkdtm.h in lkdtm_usercopy.c and lkdtm_rodata.c was discovered. This fixes the issue and consolidates the common header and the pr_fmt macro for simplicity and regularity across each test source file. Signed-off-by: Kees Cook <keescook@chromium.org>
* lkdtm: split usercopy tests to separate fileKees Cook2016-07-071-0/+315
This splits the USERCOPY_* tests into the new lkdtm_usercopy.c file to help separate things better for readability. Signed-off-by: Kees Cook <keescook@chromium.org>
OpenPOWER on IntegriCloud