]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
lkdtm: Add tests for struct list corruption
authorKees Cook <keescook@chromium.org>
Wed, 17 Aug 2016 21:42:12 +0000 (14:42 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 31 Oct 2016 20:01:58 +0000 (13:01 -0700)
commit6819d101dd739dd4e8cbe60a98c9ebb224ecc992
tree04823cf711bbe51cad6a4227b3ca14459fbb1336
parentde54ebbe26bb371a6f1fbc0593372232f04e3107
lkdtm: Add tests for struct list corruption

When building under CONFIG_DEBUG_LIST, list addition and removal will be
sanity-checked. This validates that the check is working as expected by
setting up classic corruption attacks against list manipulations, available
with the new lkdtm tests CORRUPT_LIST_ADD and CORRUPT_LIST_DEL.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Rik van Riel <riel@redhat.com>
drivers/misc/lkdtm.h
drivers/misc/lkdtm_bugs.c
drivers/misc/lkdtm_core.c