]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm64/kernel/arm64ksyms.c
arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user
[mirror_ubuntu-artful-kernel.git] / arch / arm64 / kernel / arm64ksyms.c
CommitLineData
f27bb139
MZ
1/*
2 * Based on arch/arm/kernel/armksyms.c
3 *
4 * Copyright (C) 2000 Russell King
5 * Copyright (C) 2012 ARM Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include <linux/export.h>
21#include <linux/sched.h>
22#include <linux/string.h>
23#include <linux/cryptohash.h>
24#include <linux/delay.h>
25#include <linux/in6.h>
26#include <linux/syscalls.h>
27#include <linux/uaccess.h>
28#include <linux/io.h>
14457459 29#include <linux/arm-smccc.h>
44b53f67 30#include <linux/kprobes.h>
f27bb139
MZ
31
32#include <asm/checksum.h>
33
f27bb139 34EXPORT_SYMBOL(copy_page);
726dcaa1 35EXPORT_SYMBOL(clear_page);
f27bb139 36
12a0ef7b 37 /* user mem (segment) */
bffe1baf
YS
38EXPORT_SYMBOL(__arch_copy_from_user);
39EXPORT_SYMBOL(__arch_copy_to_user);
85eefa24
WD
40EXPORT_SYMBOL(__arch_clear_user);
41EXPORT_SYMBOL(__arch_copy_in_user);
f27bb139 42
f27bb139
MZ
43 /* physical memory */
44EXPORT_SYMBOL(memstart_addr);
4a899227
CM
45
46 /* string / mem functions */
2b8cac81
CM
47EXPORT_SYMBOL(strchr);
48EXPORT_SYMBOL(strrchr);
192c4d90 49EXPORT_SYMBOL(strcmp);
50EXPORT_SYMBOL(strncmp);
0a42cb0a 51EXPORT_SYMBOL(strlen);
52EXPORT_SYMBOL(strnlen);
4a899227
CM
53EXPORT_SYMBOL(memset);
54EXPORT_SYMBOL(memcpy);
55EXPORT_SYMBOL(memmove);
39d114dd
AR
56EXPORT_SYMBOL(__memset);
57EXPORT_SYMBOL(__memcpy);
58EXPORT_SYMBOL(__memmove);
4a899227 59EXPORT_SYMBOL(memchr);
d875c9b3 60EXPORT_SYMBOL(memcmp);
62479586
CM
61
62 /* atomic bitops */
63EXPORT_SYMBOL(set_bit);
64EXPORT_SYMBOL(test_and_set_bit);
65EXPORT_SYMBOL(clear_bit);
66EXPORT_SYMBOL(test_and_clear_bit);
67EXPORT_SYMBOL(change_bit);
68EXPORT_SYMBOL(test_and_change_bit);
819e50e2
AT
69
70#ifdef CONFIG_FUNCTION_TRACER
71EXPORT_SYMBOL(_mcount);
44b53f67 72NOKPROBE_SYMBOL(_mcount);
819e50e2 73#endif
14457459
JW
74
75 /* arm-smccc */
680a0873
AG
76EXPORT_SYMBOL(__arm_smccc_smc);
77EXPORT_SYMBOL(__arm_smccc_hvc);