@@ -202,7 +202,7 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
202
202
size_t len = strlen (k_platform ) + 1 ;
203
203
204
204
u_platform = (elf_addr_t __user * )STACK_ALLOC (p , len );
205
- if (__copy_to_user (u_platform , k_platform , len ))
205
+ if (copy_to_user (u_platform , k_platform , len ))
206
206
return - EFAULT ;
207
207
}
208
208
@@ -215,7 +215,7 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
215
215
size_t len = strlen (k_base_platform ) + 1 ;
216
216
217
217
u_base_platform = (elf_addr_t __user * )STACK_ALLOC (p , len );
218
- if (__copy_to_user (u_base_platform , k_base_platform , len ))
218
+ if (copy_to_user (u_base_platform , k_base_platform , len ))
219
219
return - EFAULT ;
220
220
}
221
221
@@ -225,7 +225,7 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
225
225
get_random_bytes (k_rand_bytes , sizeof (k_rand_bytes ));
226
226
u_rand_bytes = (elf_addr_t __user * )
227
227
STACK_ALLOC (p , sizeof (k_rand_bytes ));
228
- if (__copy_to_user (u_rand_bytes , k_rand_bytes , sizeof (k_rand_bytes )))
228
+ if (copy_to_user (u_rand_bytes , k_rand_bytes , sizeof (k_rand_bytes )))
229
229
return - EFAULT ;
230
230
231
231
/* Create the ELF interpreter info */
@@ -308,36 +308,36 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
308
308
return - EFAULT ;
309
309
310
310
/* Now, let's put argc (and argv, envp if appropriate) on the stack */
311
- if (__put_user (argc , sp ++ ))
311
+ if (put_user (argc , sp ++ ))
312
312
return - EFAULT ;
313
313
314
314
/* Populate list of argv pointers back to argv strings. */
315
315
p = mm -> arg_end = mm -> arg_start ;
316
316
while (argc -- > 0 ) {
317
317
size_t len ;
318
- if (__put_user ((elf_addr_t )p , sp ++ ))
318
+ if (put_user ((elf_addr_t )p , sp ++ ))
319
319
return - EFAULT ;
320
320
len = strnlen_user ((void __user * )p , MAX_ARG_STRLEN );
321
321
if (!len || len > MAX_ARG_STRLEN )
322
322
return - EINVAL ;
323
323
p += len ;
324
324
}
325
- if (__put_user (0 , sp ++ ))
325
+ if (put_user (0 , sp ++ ))
326
326
return - EFAULT ;
327
327
mm -> arg_end = p ;
328
328
329
329
/* Populate list of envp pointers back to envp strings. */
330
330
mm -> env_end = mm -> env_start = p ;
331
331
while (envc -- > 0 ) {
332
332
size_t len ;
333
- if (__put_user ((elf_addr_t )p , sp ++ ))
333
+ if (put_user ((elf_addr_t )p , sp ++ ))
334
334
return - EFAULT ;
335
335
len = strnlen_user ((void __user * )p , MAX_ARG_STRLEN );
336
336
if (!len || len > MAX_ARG_STRLEN )
337
337
return - EINVAL ;
338
338
p += len ;
339
339
}
340
- if (__put_user (0 , sp ++ ))
340
+ if (put_user (0 , sp ++ ))
341
341
return - EFAULT ;
342
342
mm -> env_end = p ;
343
343
0 commit comments