Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Based on arch/arm/include/asm/uaccess.h |
| 3 | * |
| 4 | * Copyright (C) 2012 ARM Ltd. |
| 5 | * |
| 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 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 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. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | #ifndef __ASM_UACCESS_H |
| 19 | #define __ASM_UACCESS_H |
| 20 | |
| 21 | /* |
| 22 | * User space memory access functions |
| 23 | */ |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 24 | #include <linux/kasan-checks.h> |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 25 | #include <linux/string.h> |
| 26 | #include <linux/thread_info.h> |
| 27 | |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 28 | #include <asm/alternative.h> |
| 29 | #include <asm/cpufeature.h> |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 30 | #include <asm/ptrace.h> |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 31 | #include <asm/sysreg.h> |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 32 | #include <asm/errno.h> |
| 33 | #include <asm/memory.h> |
| 34 | #include <asm/compiler.h> |
| 35 | |
| 36 | #define VERIFY_READ 0 |
| 37 | #define VERIFY_WRITE 1 |
| 38 | |
| 39 | /* |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 40 | * The exception table consists of pairs of relative offsets: the first |
| 41 | * is the relative offset to an instruction that is allowed to fault, |
| 42 | * and the second is the relative offset at which the program should |
| 43 | * continue. No registers are modified, so it is entirely up to the |
| 44 | * continuation code to figure out what to do. |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 45 | * |
| 46 | * All the routines below use bits of fixup code that are out of line |
| 47 | * with the main instruction path. This means when everything is well, |
| 48 | * we don't even have to jump over them. Further, they do not intrude |
| 49 | * on our cache or tlb entries. |
| 50 | */ |
| 51 | |
| 52 | struct exception_table_entry |
| 53 | { |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 54 | int insn, fixup; |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 55 | }; |
| 56 | |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 57 | #define ARCH_HAS_RELATIVE_EXTABLE |
| 58 | |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 59 | extern int fixup_exception(struct pt_regs *regs); |
| 60 | |
| 61 | #define KERNEL_DS (-1UL) |
| 62 | #define get_ds() (KERNEL_DS) |
| 63 | |
| 64 | #define USER_DS TASK_SIZE_64 |
| 65 | #define get_fs() (current_thread_info()->addr_limit) |
| 66 | |
| 67 | static inline void set_fs(mm_segment_t fs) |
| 68 | { |
| 69 | current_thread_info()->addr_limit = fs; |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 70 | |
| 71 | /* |
| 72 | * Enable/disable UAO so that copy_to_user() etc can access |
| 73 | * kernel memory with the unprivileged instructions. |
| 74 | */ |
| 75 | if (IS_ENABLED(CONFIG_ARM64_UAO) && fs == KERNEL_DS) |
| 76 | asm(ALTERNATIVE("nop", SET_PSTATE_UAO(1), ARM64_HAS_UAO)); |
| 77 | else |
| 78 | asm(ALTERNATIVE("nop", SET_PSTATE_UAO(0), ARM64_HAS_UAO, |
| 79 | CONFIG_ARM64_UAO)); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 80 | } |
| 81 | |
Michael S. Tsirkin | 967f0e5 | 2015-01-06 15:11:13 +0200 | [diff] [blame] | 82 | #define segment_eq(a, b) ((a) == (b)) |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 83 | |
| 84 | /* |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 85 | * Test whether a block of memory is a valid user space address. |
| 86 | * Returns 1 if the range is valid, 0 otherwise. |
| 87 | * |
| 88 | * This is equivalent to the following test: |
Christopher Covington | 31b1e94 | 2014-03-19 16:29:37 +0000 | [diff] [blame] | 89 | * (u65)addr + (u65)size <= current->addr_limit |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 90 | * |
| 91 | * This needs 65-bit arithmetic. |
| 92 | */ |
| 93 | #define __range_ok(addr, size) \ |
| 94 | ({ \ |
| 95 | unsigned long flag, roksum; \ |
| 96 | __chk_user_ptr(addr); \ |
Christopher Covington | 31b1e94 | 2014-03-19 16:29:37 +0000 | [diff] [blame] | 97 | asm("adds %1, %1, %3; ccmp %1, %4, #2, cc; cset %0, ls" \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 98 | : "=&r" (flag), "=&r" (roksum) \ |
| 99 | : "1" (addr), "Ir" (size), \ |
| 100 | "r" (current_thread_info()->addr_limit) \ |
| 101 | : "cc"); \ |
| 102 | flag; \ |
| 103 | }) |
| 104 | |
| 105 | #define access_ok(type, addr, size) __range_ok(addr, size) |
Will Deacon | 12a0ef7 | 2013-11-06 17:20:22 +0000 | [diff] [blame] | 106 | #define user_addr_max get_fs |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 107 | |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 108 | #define _ASM_EXTABLE(from, to) \ |
| 109 | " .pushsection __ex_table, \"a\"\n" \ |
| 110 | " .align 3\n" \ |
| 111 | " .long (" #from " - .), (" #to " - .)\n" \ |
| 112 | " .popsection\n" |
| 113 | |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 114 | /* |
| 115 | * The "__xxx" versions of the user access functions do not verify the address |
| 116 | * space - it must have been done previously with a separate "access_ok()" |
| 117 | * call. |
| 118 | * |
| 119 | * The "__xxx_error" versions set the third argument to -EFAULT if an error |
| 120 | * occurs, and leave it unchanged on success. |
| 121 | */ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 122 | #define __get_user_asm(instr, alt_instr, reg, x, addr, err, feature) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 123 | asm volatile( \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 124 | "1:"ALTERNATIVE(instr " " reg "1, [%2]\n", \ |
| 125 | alt_instr " " reg "1, [%2]\n", feature) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 126 | "2:\n" \ |
| 127 | " .section .fixup, \"ax\"\n" \ |
| 128 | " .align 2\n" \ |
| 129 | "3: mov %w0, %3\n" \ |
| 130 | " mov %1, #0\n" \ |
| 131 | " b 2b\n" \ |
| 132 | " .previous\n" \ |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 133 | _ASM_EXTABLE(1b, 3b) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 134 | : "+r" (err), "=&r" (x) \ |
| 135 | : "r" (addr), "i" (-EFAULT)) |
| 136 | |
| 137 | #define __get_user_err(x, ptr, err) \ |
| 138 | do { \ |
| 139 | unsigned long __gu_val; \ |
| 140 | __chk_user_ptr(ptr); \ |
James Morse | 7054419 | 2016-02-05 14:58:50 +0000 | [diff] [blame] | 141 | asm(ALTERNATIVE("nop", SET_PSTATE_PAN(0), ARM64_ALT_PAN_NOT_UAO,\ |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 142 | CONFIG_ARM64_PAN)); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 143 | switch (sizeof(*(ptr))) { \ |
| 144 | case 1: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 145 | __get_user_asm("ldrb", "ldtrb", "%w", __gu_val, (ptr), \ |
| 146 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 147 | break; \ |
| 148 | case 2: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 149 | __get_user_asm("ldrh", "ldtrh", "%w", __gu_val, (ptr), \ |
| 150 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 151 | break; \ |
| 152 | case 4: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 153 | __get_user_asm("ldr", "ldtr", "%w", __gu_val, (ptr), \ |
| 154 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 155 | break; \ |
| 156 | case 8: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 157 | __get_user_asm("ldr", "ldtr", "%", __gu_val, (ptr), \ |
| 158 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 159 | break; \ |
| 160 | default: \ |
| 161 | BUILD_BUG(); \ |
| 162 | } \ |
Michael S. Tsirkin | 58fff51 | 2014-12-12 01:56:04 +0200 | [diff] [blame] | 163 | (x) = (__force __typeof__(*(ptr)))__gu_val; \ |
James Morse | 7054419 | 2016-02-05 14:58:50 +0000 | [diff] [blame] | 164 | asm(ALTERNATIVE("nop", SET_PSTATE_PAN(1), ARM64_ALT_PAN_NOT_UAO,\ |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 165 | CONFIG_ARM64_PAN)); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 166 | } while (0) |
| 167 | |
| 168 | #define __get_user(x, ptr) \ |
| 169 | ({ \ |
| 170 | int __gu_err = 0; \ |
| 171 | __get_user_err((x), (ptr), __gu_err); \ |
| 172 | __gu_err; \ |
| 173 | }) |
| 174 | |
| 175 | #define __get_user_error(x, ptr, err) \ |
| 176 | ({ \ |
| 177 | __get_user_err((x), (ptr), (err)); \ |
| 178 | (void)0; \ |
| 179 | }) |
| 180 | |
| 181 | #define __get_user_unaligned __get_user |
| 182 | |
| 183 | #define get_user(x, ptr) \ |
| 184 | ({ \ |
AKASHI Takahiro | 1f65c13 | 2013-09-24 10:00:50 +0100 | [diff] [blame] | 185 | __typeof__(*(ptr)) __user *__p = (ptr); \ |
Michael S. Tsirkin | 56d2ef7 | 2013-05-26 17:30:42 +0300 | [diff] [blame] | 186 | might_fault(); \ |
AKASHI Takahiro | 1f65c13 | 2013-09-24 10:00:50 +0100 | [diff] [blame] | 187 | access_ok(VERIFY_READ, __p, sizeof(*__p)) ? \ |
| 188 | __get_user((x), __p) : \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 189 | ((x) = 0, -EFAULT); \ |
| 190 | }) |
| 191 | |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 192 | #define __put_user_asm(instr, alt_instr, reg, x, addr, err, feature) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 193 | asm volatile( \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 194 | "1:"ALTERNATIVE(instr " " reg "1, [%2]\n", \ |
| 195 | alt_instr " " reg "1, [%2]\n", feature) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 196 | "2:\n" \ |
| 197 | " .section .fixup,\"ax\"\n" \ |
| 198 | " .align 2\n" \ |
| 199 | "3: mov %w0, %3\n" \ |
| 200 | " b 2b\n" \ |
| 201 | " .previous\n" \ |
Ard Biesheuvel | 6c94f27 | 2016-01-01 15:02:12 +0100 | [diff] [blame] | 202 | _ASM_EXTABLE(1b, 3b) \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 203 | : "+r" (err) \ |
| 204 | : "r" (x), "r" (addr), "i" (-EFAULT)) |
| 205 | |
| 206 | #define __put_user_err(x, ptr, err) \ |
| 207 | do { \ |
| 208 | __typeof__(*(ptr)) __pu_val = (x); \ |
| 209 | __chk_user_ptr(ptr); \ |
James Morse | 7054419 | 2016-02-05 14:58:50 +0000 | [diff] [blame] | 210 | asm(ALTERNATIVE("nop", SET_PSTATE_PAN(0), ARM64_ALT_PAN_NOT_UAO,\ |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 211 | CONFIG_ARM64_PAN)); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 212 | switch (sizeof(*(ptr))) { \ |
| 213 | case 1: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 214 | __put_user_asm("strb", "sttrb", "%w", __pu_val, (ptr), \ |
| 215 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 216 | break; \ |
| 217 | case 2: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 218 | __put_user_asm("strh", "sttrh", "%w", __pu_val, (ptr), \ |
| 219 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 220 | break; \ |
| 221 | case 4: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 222 | __put_user_asm("str", "sttr", "%w", __pu_val, (ptr), \ |
| 223 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 224 | break; \ |
| 225 | case 8: \ |
James Morse | 57f4959 | 2016-02-05 14:58:48 +0000 | [diff] [blame] | 226 | __put_user_asm("str", "sttr", "%", __pu_val, (ptr), \ |
| 227 | (err), ARM64_HAS_UAO); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 228 | break; \ |
| 229 | default: \ |
| 230 | BUILD_BUG(); \ |
| 231 | } \ |
James Morse | 7054419 | 2016-02-05 14:58:50 +0000 | [diff] [blame] | 232 | asm(ALTERNATIVE("nop", SET_PSTATE_PAN(1), ARM64_ALT_PAN_NOT_UAO,\ |
James Morse | 338d4f4 | 2015-07-22 19:05:54 +0100 | [diff] [blame] | 233 | CONFIG_ARM64_PAN)); \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 234 | } while (0) |
| 235 | |
| 236 | #define __put_user(x, ptr) \ |
| 237 | ({ \ |
| 238 | int __pu_err = 0; \ |
| 239 | __put_user_err((x), (ptr), __pu_err); \ |
| 240 | __pu_err; \ |
| 241 | }) |
| 242 | |
| 243 | #define __put_user_error(x, ptr, err) \ |
| 244 | ({ \ |
| 245 | __put_user_err((x), (ptr), (err)); \ |
| 246 | (void)0; \ |
| 247 | }) |
| 248 | |
| 249 | #define __put_user_unaligned __put_user |
| 250 | |
| 251 | #define put_user(x, ptr) \ |
| 252 | ({ \ |
AKASHI Takahiro | 1f65c13 | 2013-09-24 10:00:50 +0100 | [diff] [blame] | 253 | __typeof__(*(ptr)) __user *__p = (ptr); \ |
Michael S. Tsirkin | 56d2ef7 | 2013-05-26 17:30:42 +0300 | [diff] [blame] | 254 | might_fault(); \ |
AKASHI Takahiro | 1f65c13 | 2013-09-24 10:00:50 +0100 | [diff] [blame] | 255 | access_ok(VERIFY_WRITE, __p, sizeof(*__p)) ? \ |
| 256 | __put_user((x), __p) : \ |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 257 | -EFAULT; \ |
| 258 | }) |
| 259 | |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 260 | extern unsigned long __must_check __arch_copy_from_user(void *to, const void __user *from, unsigned long n); |
| 261 | extern unsigned long __must_check __arch_copy_to_user(void __user *to, const void *from, unsigned long n); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 262 | extern unsigned long __must_check __copy_in_user(void __user *to, const void __user *from, unsigned long n); |
| 263 | extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n); |
| 264 | |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 265 | static inline unsigned long __must_check __copy_from_user(void *to, const void __user *from, unsigned long n) |
| 266 | { |
| 267 | kasan_check_write(to, n); |
| 268 | return __arch_copy_from_user(to, from, n); |
| 269 | } |
| 270 | |
| 271 | static inline unsigned long __must_check __copy_to_user(void __user *to, const void *from, unsigned long n) |
| 272 | { |
| 273 | kasan_check_read(from, n); |
| 274 | return __arch_copy_to_user(to, from, n); |
| 275 | } |
| 276 | |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 277 | static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) |
| 278 | { |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 279 | kasan_check_write(to, n); |
| 280 | |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 281 | if (access_ok(VERIFY_READ, from, n)) |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 282 | n = __arch_copy_from_user(to, from, n); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 283 | else /* security hole - plug it */ |
| 284 | memset(to, 0, n); |
| 285 | return n; |
| 286 | } |
| 287 | |
| 288 | static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) |
| 289 | { |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 290 | kasan_check_read(from, n); |
| 291 | |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 292 | if (access_ok(VERIFY_WRITE, to, n)) |
Yang Shi | bffe1ba | 2016-06-08 14:40:56 -0700 | [diff] [blame] | 293 | n = __arch_copy_to_user(to, from, n); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 294 | return n; |
| 295 | } |
| 296 | |
| 297 | static inline unsigned long __must_check copy_in_user(void __user *to, const void __user *from, unsigned long n) |
| 298 | { |
| 299 | if (access_ok(VERIFY_READ, from, n) && access_ok(VERIFY_WRITE, to, n)) |
| 300 | n = __copy_in_user(to, from, n); |
| 301 | return n; |
| 302 | } |
| 303 | |
| 304 | #define __copy_to_user_inatomic __copy_to_user |
| 305 | #define __copy_from_user_inatomic __copy_from_user |
| 306 | |
| 307 | static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) |
| 308 | { |
| 309 | if (access_ok(VERIFY_WRITE, to, n)) |
| 310 | n = __clear_user(to, n); |
| 311 | return n; |
| 312 | } |
| 313 | |
Will Deacon | 12a0ef7 | 2013-11-06 17:20:22 +0000 | [diff] [blame] | 314 | extern long strncpy_from_user(char *dest, const char __user *src, long count); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 315 | |
Will Deacon | 12a0ef7 | 2013-11-06 17:20:22 +0000 | [diff] [blame] | 316 | extern __must_check long strlen_user(const char __user *str); |
| 317 | extern __must_check long strnlen_user(const char __user *str, long n); |
Catalin Marinas | 0aea86a | 2012-03-05 11:49:32 +0000 | [diff] [blame] | 318 | |
| 319 | #endif /* __ASM_UACCESS_H */ |