lkdtm: Add Control Flow Integrity test
commitb0eb93cfd516201ccf0e4d36e226cfe1b16cc1fe
authorKees Cook <keescook@chromium.org>
Thu, 8 Aug 2019 18:37:45 +0000 (8 11:37 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 12 Aug 2019 22:28:51 +0000 (12 15:28 -0700)
treef560f6bb85c3dd5d7e846012c4e03769a7cfa725
parent609488bc979f99f805f34e9a32c1e3b71179d10b
lkdtm: Add Control Flow Integrity test

This adds a simple test for forward CFI (indirect function calls) with
function prototype granularity (as implemented by Clang's CFI).

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm/Makefile
drivers/misc/lkdtm/cfi.c [new file with mode: 0644]
drivers/misc/lkdtm/core.c
drivers/misc/lkdtm/lkdtm.h