hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/poison.h
....@@ -21,21 +21,13 @@
2121 * non-initialized list entries.
2222 */
2323 #define LIST_POISON1 ((void *) 0x100 + POISON_POINTER_DELTA)
24
-#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
24
+#define LIST_POISON2 ((void *) 0x122 + POISON_POINTER_DELTA)
2525
2626 /********** include/linux/timer.h **********/
27
-/*
28
- * Magic number "tsta" to indicate a static timer initializer
29
- * for the object debugging code.
30
- */
3127 #define TIMER_ENTRY_STATIC ((void *) 0x300 + POISON_POINTER_DELTA)
3228
33
-/********** mm/debug-pagealloc.c **********/
34
-#ifdef CONFIG_PAGE_POISONING_ZERO
35
-#define PAGE_POISON 0x00
36
-#else
29
+/********** mm/page_poison.c **********/
3730 #define PAGE_POISON 0xaa
38
-#endif
3931
4032 /********** mm/page_alloc.c ************/
4133
....@@ -82,9 +74,6 @@
8274 #define MUTEX_DEBUG_INIT 0x11
8375 #define MUTEX_DEBUG_FREE 0x22
8476 #define MUTEX_POISON_WW_CTX ((void *) 0x500 + POISON_POINTER_DELTA)
85
-
86
-/********** lib/flex_array.c **********/
87
-#define FLEX_ARRAY_FREE 0x6c /* for use-after-free poisoning */
8877
8978 /********** security/ **********/
9079 #define KEY_DESTROY 0xbd