]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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, 31 Oct 2016 20:01:57 +0000 (13:01 -0700)
commit0cd340dcb05c4a43742fe156f36737bb2a321bfd
tree1e45dac53b3a090f28e2e11a5328f0f5a8b4d6a0
parent54acd4397d7e7a725c94101180cd9f38ef701acc
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