• Home
  • Raw
  • Download

Lines Matching refs:error

174 static int set_one_prio(struct task_struct *p, int niceval, int error)  in set_one_prio()  argument
179 error = -EPERM; in set_one_prio()
183 error = -EACCES; in set_one_prio()
188 error = no_nice; in set_one_prio()
191 if (error == -ESRCH) in set_one_prio()
192 error = 0; in set_one_prio()
195 return error; in set_one_prio()
203 int error = -EINVAL; in SYSCALL_DEFINE3() local
211 error = -ESRCH; in SYSCALL_DEFINE3()
226 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
234 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
249 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
259 return error; in SYSCALL_DEFINE3()
380 goto error; in __sys_setregid()
389 goto error; in __sys_setregid()
399 error: in __sys_setregid()
437 goto error; in __sys_setgid()
441 error: in __sys_setgid()
522 goto error; in __sys_setreuid()
531 goto error; in __sys_setreuid()
537 goto error; in __sys_setreuid()
546 goto error; in __sys_setreuid()
550 error: in __sys_setreuid()
594 goto error; in __sys_setuid()
597 goto error; in __sys_setuid()
604 goto error; in __sys_setuid()
608 error: in __sys_setuid()
654 goto error; in __sys_setresuid()
657 goto error; in __sys_setresuid()
660 goto error; in __sys_setresuid()
668 goto error; in __sys_setresuid()
679 goto error; in __sys_setresuid()
683 error: in __sys_setresuid()
743 goto error; in __sys_setresgid()
746 goto error; in __sys_setresgid()
749 goto error; in __sys_setresgid()
762 error: in __sys_setresgid()
1885 int error = -EINVAL, i; in validate_prctl_map_addr() local
1919 error = __prctl_check_order(start_code, <, end_code); in validate_prctl_map_addr()
1920 error |= __prctl_check_order(start_data,<=, end_data); in validate_prctl_map_addr()
1921 error |= __prctl_check_order(start_brk, <=, brk); in validate_prctl_map_addr()
1922 error |= __prctl_check_order(arg_start, <=, arg_end); in validate_prctl_map_addr()
1923 error |= __prctl_check_order(env_start, <=, env_end); in validate_prctl_map_addr()
1924 if (error) in validate_prctl_map_addr()
1928 error = -EINVAL; in validate_prctl_map_addr()
1945 error = 0; in validate_prctl_map_addr()
1947 return error; in validate_prctl_map_addr()
1956 int error; in prctl_set_mm_map() local
1971 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm_map()
1972 if (error) in prctl_set_mm_map()
1973 return error; in prctl_set_mm_map()
2003 error = prctl_set_mm_exe_file(mm, prctl_map.exe_fd); in prctl_set_mm_map()
2004 if (error) in prctl_set_mm_map()
2005 return error; in prctl_set_mm_map()
2096 int error; in prctl_set_mm() local
2120 error = -EINVAL; in prctl_set_mm()
2181 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm()
2182 if (error) in prctl_set_mm()
2199 error = -EFAULT; in prctl_set_mm()
2216 error = 0; in prctl_set_mm()
2220 return error; in prctl_set_mm()
2271 int error = 0; in prctl_update_vma_anon_name() local
2291 error = split_vma(mm, vma, start, 1); in prctl_update_vma_anon_name()
2292 if (error) in prctl_update_vma_anon_name()
2297 error = split_vma(mm, vma, end, 0); in prctl_update_vma_anon_name()
2298 if (error) in prctl_update_vma_anon_name()
2307 if (error == -ENOMEM) in prctl_update_vma_anon_name()
2308 error = -EAGAIN; in prctl_update_vma_anon_name()
2309 return error; in prctl_update_vma_anon_name()
2318 int error = -EINVAL; in prctl_set_vma_anon_name() local
2331 error = -ENOMEM; in prctl_set_vma_anon_name()
2333 return error; in prctl_set_vma_anon_name()
2340 return error; in prctl_set_vma_anon_name()
2349 error = prctl_update_vma_anon_name(vma, &prev, start, tmp, in prctl_set_vma_anon_name()
2351 if (error) in prctl_set_vma_anon_name()
2352 return error; in prctl_set_vma_anon_name()
2356 error = unmapped_error; in prctl_set_vma_anon_name()
2358 return error; in prctl_set_vma_anon_name()
2370 int error; in prctl_set_vma() local
2393 error = prctl_set_vma_anon_name(start, end, arg); in prctl_set_vma()
2396 error = -EINVAL; in prctl_set_vma()
2401 return error; in prctl_set_vma()
2416 long error; in SYSCALL_DEFINE5() local
2418 error = security_task_prctl(option, arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2419 if (error != -ENOSYS) in SYSCALL_DEFINE5()
2420 return error; in SYSCALL_DEFINE5()
2422 error = 0; in SYSCALL_DEFINE5()
2426 error = -EINVAL; in SYSCALL_DEFINE5()
2432 error = put_user(me->pdeath_signal, (int __user *)arg2); in SYSCALL_DEFINE5()
2435 error = get_dumpable(me->mm); in SYSCALL_DEFINE5()
2439 error = -EINVAL; in SYSCALL_DEFINE5()
2446 error = SET_UNALIGN_CTL(me, arg2); in SYSCALL_DEFINE5()
2449 error = GET_UNALIGN_CTL(me, arg2); in SYSCALL_DEFINE5()
2452 error = SET_FPEMU_CTL(me, arg2); in SYSCALL_DEFINE5()
2455 error = GET_FPEMU_CTL(me, arg2); in SYSCALL_DEFINE5()
2458 error = SET_FPEXC_CTL(me, arg2); in SYSCALL_DEFINE5()
2461 error = GET_FPEXC_CTL(me, arg2); in SYSCALL_DEFINE5()
2464 error = PR_TIMING_STATISTICAL; in SYSCALL_DEFINE5()
2468 error = -EINVAL; in SYSCALL_DEFINE5()
2484 error = GET_ENDIAN(me, arg2); in SYSCALL_DEFINE5()
2487 error = SET_ENDIAN(me, arg2); in SYSCALL_DEFINE5()
2490 error = prctl_get_seccomp(); in SYSCALL_DEFINE5()
2493 error = prctl_set_seccomp(arg2, (char __user *)arg3); in SYSCALL_DEFINE5()
2496 error = GET_TSC_CTL(arg2); in SYSCALL_DEFINE5()
2499 error = SET_TSC_CTL(arg2); in SYSCALL_DEFINE5()
2502 error = perf_event_task_disable(); in SYSCALL_DEFINE5()
2505 error = perf_event_task_enable(); in SYSCALL_DEFINE5()
2509 error = ULONG_MAX; in SYSCALL_DEFINE5()
2511 error = current->timer_slack_ns; in SYSCALL_DEFINE5()
2549 error = (current->flags & PF_MCE_EARLY) ? in SYSCALL_DEFINE5()
2552 error = PR_MCE_KILL_DEFAULT; in SYSCALL_DEFINE5()
2555 error = prctl_set_mm(arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2558 error = prctl_get_tid_address(me, (int __user **)arg2); in SYSCALL_DEFINE5()
2568 error = put_user(me->signal->is_child_subreaper, in SYSCALL_DEFINE5()
2584 error = !!test_bit(MMF_DISABLE_THP, &me->mm->flags); in SYSCALL_DEFINE5()
2602 error = SET_FP_MODE(me, arg2); in SYSCALL_DEFINE5()
2605 error = GET_FP_MODE(me); in SYSCALL_DEFINE5()
2608 error = SVE_SET_VL(arg2); in SYSCALL_DEFINE5()
2611 error = SVE_GET_VL(); in SYSCALL_DEFINE5()
2616 error = arch_prctl_spec_ctrl_get(me, arg2); in SYSCALL_DEFINE5()
2621 error = arch_prctl_spec_ctrl_set(me, arg2, arg3); in SYSCALL_DEFINE5()
2624 error = prctl_set_vma(arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2629 error = PAC_RESET_KEYS(me, arg2); in SYSCALL_DEFINE5()
2634 error = SET_TAGGED_ADDR_CTRL(arg2); in SYSCALL_DEFINE5()
2639 error = GET_TAGGED_ADDR_CTRL(); in SYSCALL_DEFINE5()
2642 error = -EINVAL; in SYSCALL_DEFINE5()
2645 return error; in SYSCALL_DEFINE5()