diff options
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 3037fc085e8e..696d22312b31 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -175,6 +175,13 @@ extern struct task_group root_task_group;  # define INIT_NUMA_BALANCING(tsk)  #endif +#ifdef CONFIG_KASAN +# define INIT_KASAN(tsk)						\ +	.kasan_depth = 1, +#else +# define INIT_KASAN(tsk) +#endif +  /*   *  INIT_TASK is used to set up the first task table, touch at   * your own risk!. Base=0, limit=0x1fffff (=2MB) @@ -193,6 +200,9 @@ extern struct task_group root_task_group;  	.nr_cpus_allowed= NR_CPUS,					\  	.mm		= NULL,						\  	.active_mm	= &init_mm,					\ +	.restart_block = {						\ +		.fn = do_no_restart_syscall,				\ +	},								\  	.se		= {						\  		.group_node 	= LIST_HEAD_INIT(tsk.se.group_node),	\  	},								\ @@ -247,6 +257,7 @@ extern struct task_group root_task_group;  	INIT_RT_MUTEXES(tsk)						\  	INIT_VTIME(tsk)							\  	INIT_NUMA_BALANCING(tsk)					\ +	INIT_KASAN(tsk)							\  } |