lkdtm: Add a test for STACKLEAK
authorAlexander Popov <alex.popov@linux.com>
Thu, 16 Aug 2018 22:17:00 +0000 (01:17 +0300)
committerKees Cook <keescook@chromium.org>
Tue, 4 Sep 2018 17:35:47 +0000 (10:35 -0700)
commitf90d1e0c7804b52e12fea501aa46a12c1ff6a567
treef47785497cfa578ec8da7d9941382ff17a3a2063
parent10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d
lkdtm: Add a test for STACKLEAK

Introduce an lkdtm test for the STACKLEAK feature: check that the
current task stack is properly erased (filled with STACKLEAK_POISON).

Signed-off-by: Alexander Popov <alex.popov@linux.com>
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Tested-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm/Makefile
drivers/misc/lkdtm/core.c
drivers/misc/lkdtm/lkdtm.h
drivers/misc/lkdtm/stackleak.c [new file with mode: 0644]