What role do user_cs_limit/user_cs_base in the mm_context_t?
Posted: Tue Jun 02, 2015 11:33 pm
typedef struct {
......
#ifdef CONFIG_X86_32
#if defined(CONFIG_PAX_PAGEEXEC) || defined(CONFIG_PAX_SEGMEXEC)
unsigned long user_cs_base;
unsigned long user_cs_limit;
#if defined(CONFIG_PAX_PAGEEXEC) && defined(CONFIG_SMP)
cpumask_t cpu_user_cs_mask;
#endif
} mm_context_t;
user_cs_base/user_cs_limit is to limit memory usage for segmexec,but i do not understand the effection in pageexec?
......
#ifdef CONFIG_X86_32
#if defined(CONFIG_PAX_PAGEEXEC) || defined(CONFIG_PAX_SEGMEXEC)
unsigned long user_cs_base;
unsigned long user_cs_limit;
#if defined(CONFIG_PAX_PAGEEXEC) && defined(CONFIG_SMP)
cpumask_t cpu_user_cs_mask;
#endif
} mm_context_t;
user_cs_base/user_cs_limit is to limit memory usage for segmexec,but i do not understand the effection in pageexec?