Avoid beyond bounds copy while caching ACL
[zen-stable.git] / arch / hexagon / kernel / init_task.c
blob73283d3edf0938d616c2ce24b78432dbc7a0616f
1 /*
2 * Init task definition
4 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA.
21 #include <linux/mm.h>
22 #include <linux/module.h>
23 #include <linux/sched.h>
24 #include <linux/init_task.h>
25 #include <linux/fs.h>
26 #include <linux/mqueue.h>
27 #include <asm/thread_info.h>
28 #include <asm/uaccess.h>
29 #include <asm/pgtable.h>
31 static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
32 static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
35 * Initial thread structure.
37 * We need to make sure that this is 8192-byte aligned due to the
38 * way process stacks are handled. This is done by making sure
39 * the linker maps this in the .text segment right after head.S,
40 * and making head.S ensure the proper alignment.
42 union thread_union init_thread_union
43 __attribute__((__section__(".data.init_task"),
44 __aligned__(THREAD_SIZE))) = {
45 INIT_THREAD_INFO(init_task)
49 * Initial task structure.
51 * All other task structs will be allocated on slabs in fork.c
53 struct task_struct init_task = INIT_TASK(init_task);
54 EXPORT_SYMBOL(init_task);