diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-12-03 05:42:17 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-03 05:42:17 -0500 |
commit | 5f675231e456cb599b283f8361f01cf34b0617df (patch) | |
tree | afb2bdfd6fdbb18336146f41ba7659120a5ff9d2 /include/linux/sched.h | |
parent | 3e184501083c38fa091f640acb13af17a21fd228 (diff) | |
parent | 2595646791c319cadfdbf271563aac97d0843dc7 (diff) |
Merge tag 'v4.20-rc5' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 8f8a5418b627..291a9bd5b97f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1116,6 +1116,7 @@ struct task_struct { | |||
1116 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 1116 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1117 | /* Index of current stored address in ret_stack: */ | 1117 | /* Index of current stored address in ret_stack: */ |
1118 | int curr_ret_stack; | 1118 | int curr_ret_stack; |
1119 | int curr_ret_depth; | ||
1119 | 1120 | ||
1120 | /* Stack of return addresses for return function tracing: */ | 1121 | /* Stack of return addresses for return function tracing: */ |
1121 | struct ftrace_ret_stack *ret_stack; | 1122 | struct ftrace_ret_stack *ret_stack; |
@@ -1200,6 +1201,11 @@ struct task_struct { | |||
1200 | void *security; | 1201 | void *security; |
1201 | #endif | 1202 | #endif |
1202 | 1203 | ||
1204 | #ifdef CONFIG_GCC_PLUGIN_STACKLEAK | ||
1205 | unsigned long lowest_stack; | ||
1206 | unsigned long prev_lowest_stack; | ||
1207 | #endif | ||
1208 | |||
1203 | /* | 1209 | /* |
1204 | * New fields for task_struct should be added above here, so that | 1210 | * New fields for task_struct should be added above here, so that |
1205 | * they are included in the randomized portion of task_struct. | 1211 | * they are included in the randomized portion of task_struct. |
@@ -1448,6 +1454,8 @@ static inline bool is_percpu_thread(void) | |||
1448 | #define PFA_SPREAD_SLAB 2 /* Spread some slab caches over cpuset */ | 1454 | #define PFA_SPREAD_SLAB 2 /* Spread some slab caches over cpuset */ |
1449 | #define PFA_SPEC_SSB_DISABLE 3 /* Speculative Store Bypass disabled */ | 1455 | #define PFA_SPEC_SSB_DISABLE 3 /* Speculative Store Bypass disabled */ |
1450 | #define PFA_SPEC_SSB_FORCE_DISABLE 4 /* Speculative Store Bypass force disabled*/ | 1456 | #define PFA_SPEC_SSB_FORCE_DISABLE 4 /* Speculative Store Bypass force disabled*/ |
1457 | #define PFA_SPEC_IB_DISABLE 5 /* Indirect branch speculation restricted */ | ||
1458 | #define PFA_SPEC_IB_FORCE_DISABLE 6 /* Indirect branch speculation permanently restricted */ | ||
1451 | 1459 | ||
1452 | #define TASK_PFA_TEST(name, func) \ | 1460 | #define TASK_PFA_TEST(name, func) \ |
1453 | static inline bool task_##func(struct task_struct *p) \ | 1461 | static inline bool task_##func(struct task_struct *p) \ |
@@ -1479,6 +1487,13 @@ TASK_PFA_CLEAR(SPEC_SSB_DISABLE, spec_ssb_disable) | |||
1479 | TASK_PFA_TEST(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) | 1487 | TASK_PFA_TEST(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) |
1480 | TASK_PFA_SET(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) | 1488 | TASK_PFA_SET(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) |
1481 | 1489 | ||
1490 | TASK_PFA_TEST(SPEC_IB_DISABLE, spec_ib_disable) | ||
1491 | TASK_PFA_SET(SPEC_IB_DISABLE, spec_ib_disable) | ||
1492 | TASK_PFA_CLEAR(SPEC_IB_DISABLE, spec_ib_disable) | ||
1493 | |||
1494 | TASK_PFA_TEST(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) | ||
1495 | TASK_PFA_SET(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) | ||
1496 | |||
1482 | static inline void | 1497 | static inline void |
1483 | current_restore_flags(unsigned long orig_flags, unsigned long flags) | 1498 | current_restore_flags(unsigned long orig_flags, unsigned long flags) |
1484 | { | 1499 | { |