]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/sched.h
sched: Add helper for task stack page overrun checking
[mirror_ubuntu-artful-kernel.git] / include / linux / sched.h
index 118dca7d5a28b9d2d25f589ef79cb4d962550a57..18f52624eaa692981a65073aab0b83d351dd4e56 100644 (file)
@@ -2617,6 +2617,8 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
 }
 
 #endif
+#define task_stack_end_corrupted(task) \
+               (*(end_of_stack(task)) != STACK_END_MAGIC)
 
 static inline int object_is_on_stack(void *obj)
 {