summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-06-27 06:45:23 +0200
committerKees Cook <keescook@chromium.org>2016-07-07 20:09:22 +0200
commitffc514f3fcac4aa76735ada55228c814153943e6 (patch)
tree15dd5a13d7a068dca8671751170768e603e9d633 /drivers/misc/lkdtm.h
parentlkdtm: split memory permissions tests to separate file (diff)
downloadlinux-ffc514f3fcac4aa76735ada55228c814153943e6.tar.xz
linux-ffc514f3fcac4aa76735ada55228c814153943e6.zip
lkdtm: split heap corruption tests to separate file
This splits the *_AFTER_FREE and related tests into the new lkdtm_heap.c file to help separate things better for readability. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm.h')
-rw-r--r--drivers/misc/lkdtm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm.h b/drivers/misc/lkdtm.h
index 40f681cd6efe..9397360a2b11 100644
--- a/drivers/misc/lkdtm.h
+++ b/drivers/misc/lkdtm.h
@@ -1,6 +1,13 @@
#ifndef __LKDTM_H
#define __LKDTM_H
+/* lkdtm_heap.c */
+void lkdtm_OVERWRITE_ALLOCATION(void);
+void lkdtm_WRITE_AFTER_FREE(void);
+void lkdtm_READ_AFTER_FREE(void);
+void lkdtm_WRITE_BUDDY_AFTER_FREE(void);
+void lkdtm_READ_BUDDY_AFTER_FREE(void);
+
/* lkdtm_perms.c */
void __init lkdtm_perms_init(void);
void lkdtm_WRITE_RO(void);