list: Split list_del() debug checking into separate function
authorKees Cook <keescook@chromium.org>
Wed, 17 Aug 2016 21:42:10 +0000 (14:42 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 22 Aug 2016 16:59:06 +0000 (09:59 -0700)
commit36c956ec858eb4e0bf1730e152f20122c2e8f93d
tree1f5847afd49761cf3bd97d4322ae4481f65b39ad
parente5bb62b63ae07e930719b02105103ff1dc3e12d0
list: Split list_del() debug checking into separate function

Similar to the list_add() debug consolidation, this commit consolidates
the debug checking performed during CONFIG_DEBUG_LIST into a new
__list_del_entry_valid() function, and stops list updates when corruption
is found.

Refactored from same hardening in PaX and Grsecurity.

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>
include/linux/list.h
lib/list_debug.c
This page took 0.081977 seconds and 5 git commands to generate.