include/linux/poison.h: use POISON_POINTER_DELTA for poison pointers
authorVasily Kulikov <segoon@openwall.com>
Sat, 16 Jan 2016 00:57:55 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2016 19:17:22 +0000 (11:17 -0800)
commitb8a0255db958b8f70c5267dda152e93b6fda1778
tree3c37c21b3a4a2be86df8e87731e563c0bdbedda4
parent6611d8d76132f86faa501de9451a89bf23fb2371
include/linux/poison.h: use POISON_POINTER_DELTA for poison pointers

TIMER_ENTRY_STATIC and TAIL_MAPPING are defined as poison pointers which
should point to nowhere.  Redefine them using POISON_POINTER_DELTA
arithmetics to make sure they really point to non-mappable area declared
by the target architecture.

Signed-off-by: Vasily Kulikov <segoon@openwall.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Solar Designer <solar@openwall.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/poison.h