diff options
author | Kees Cook <keescook@chromium.org> | 2019-08-08 21:37:45 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-08-13 01:28:51 +0300 |
commit | b0eb93cfd516201ccf0e4d36e226cfe1b16cc1fe (patch) | |
tree | f560f6bb85c3dd5d7e846012c4e03769a7cfa725 /drivers/misc/lkdtm/core.c | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b (diff) | |
download | linux-b0eb93cfd516201ccf0e4d36e226cfe1b16cc1fe.tar.xz |
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>
Diffstat (limited to 'drivers/misc/lkdtm/core.c')
-rw-r--r-- | drivers/misc/lkdtm/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm/core.c b/drivers/misc/lkdtm/core.c index 66ae6b2a6950..42136196681e 100644 --- a/drivers/misc/lkdtm/core.c +++ b/drivers/misc/lkdtm/core.c @@ -169,6 +169,7 @@ static const struct crashtype crashtypes[] = { CRASHTYPE(USERCOPY_KERNEL), CRASHTYPE(USERCOPY_KERNEL_DS), CRASHTYPE(STACKLEAK_ERASING), + CRASHTYPE(CFI_FORWARD_PROTO), }; |