|
@@ -490,6 +490,13 @@ struct task_struct {
|
|
|
#endif
|
|
|
/* -1 unrunnable, 0 runnable, >0 stopped: */
|
|
|
volatile long state;
|
|
|
+
|
|
|
+ /*
|
|
|
+ * This begins the randomizable portion of task_struct. Only
|
|
|
+ * scheduling-critical items should be added above here.
|
|
|
+ */
|
|
|
+ randomized_struct_fields_start
|
|
|
+
|
|
|
void *stack;
|
|
|
atomic_t usage;
|
|
|
/* Per task flags (PF_*), defined further below: */
|
|
@@ -1051,6 +1058,13 @@ struct task_struct {
|
|
|
/* Used by LSM modules for access restriction: */
|
|
|
void *security;
|
|
|
#endif
|
|
|
+
|
|
|
+ /*
|
|
|
+ * New fields for task_struct should be added above here, so that
|
|
|
+ * they are included in the randomized portion of task_struct.
|
|
|
+ */
|
|
|
+ randomized_struct_fields_end
|
|
|
+
|
|
|
/* CPU-specific state of this task: */
|
|
|
struct thread_struct thread;
|
|
|
|