diff options
author | Vasily Kulikov <segoon@openwall.com> | 2016-01-15 19:57:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-16 14:17:22 -0500 |
commit | b8a0255db958b8f70c5267dda152e93b6fda1778 (patch) | |
tree | 3c37c21b3a4a2be86df8e87731e563c0bdbedda4 | |
parent | 6611d8d76132f86faa501de9451a89bf23fb2371 (diff) |
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>
-rw-r--r-- | include/linux/poison.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/poison.h b/include/linux/poison.h index 76c3b6c38c16..4a27153574e2 100644 --- a/include/linux/poison.h +++ b/include/linux/poison.h | |||
@@ -27,14 +27,14 @@ | |||
27 | * Magic number "tsta" to indicate a static timer initializer | 27 | * Magic number "tsta" to indicate a static timer initializer |
28 | * for the object debugging code. | 28 | * for the object debugging code. |
29 | */ | 29 | */ |
30 | #define TIMER_ENTRY_STATIC ((void *) 0x74737461) | 30 | #define TIMER_ENTRY_STATIC ((void *) 0x300 + POISON_POINTER_DELTA) |
31 | 31 | ||
32 | /********** mm/debug-pagealloc.c **********/ | 32 | /********** mm/debug-pagealloc.c **********/ |
33 | #define PAGE_POISON 0xaa | 33 | #define PAGE_POISON 0xaa |
34 | 34 | ||
35 | /********** mm/page_alloc.c ************/ | 35 | /********** mm/page_alloc.c ************/ |
36 | 36 | ||
37 | #define TAIL_MAPPING ((void *) 0x01014A11 + POISON_POINTER_DELTA) | 37 | #define TAIL_MAPPING ((void *) 0x400 + POISON_POINTER_DELTA) |
38 | 38 | ||
39 | /********** mm/slab.c **********/ | 39 | /********** mm/slab.c **********/ |
40 | /* | 40 | /* |