]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include/linux/poison.h: use POISON_POINTER_DELTA for poison pointers
authorVasily Kulikov <segoon@openwall.com>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
commit0077319e3e43196d5fe98e956c394d47b1024d03
tree5bf78155e568b54d2a2e125029d8789fef4e41ff
parentd0042ebfd4c54ce936cb32695d7900f1231b2271
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>
include/linux/poison.h