Lines Matching refs:error
189 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument
194 error = -EPERM; in set_one_prio()
198 error = -EACCES; in set_one_prio()
203 error = no_nice; in set_one_prio()
206 if (error == -ESRCH) in set_one_prio()
207 error = 0; in set_one_prio()
210 return error; in set_one_prio()
218 int error = -EINVAL; in SYSCALL_DEFINE3() local
226 error = -ESRCH; in SYSCALL_DEFINE3()
240 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
249 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
265 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
274 return error; in SYSCALL_DEFINE3()
395 goto error; in __sys_setregid()
404 goto error; in __sys_setregid()
414 goto error; in __sys_setregid()
418 error: in __sys_setregid()
456 goto error; in __sys_setgid()
460 goto error; in __sys_setgid()
464 error: in __sys_setgid()
551 goto error; in __sys_setreuid()
560 goto error; in __sys_setreuid()
566 goto error; in __sys_setreuid()
575 goto error; in __sys_setreuid()
579 goto error; in __sys_setreuid()
584 error: in __sys_setreuid()
628 goto error; in __sys_setuid()
631 goto error; in __sys_setuid()
638 goto error; in __sys_setuid()
642 goto error; in __sys_setuid()
647 error: in __sys_setuid()
712 goto error; in __sys_setresuid()
723 goto error; in __sys_setresuid()
727 goto error; in __sys_setresuid()
732 error: in __sys_setresuid()
817 goto error; in __sys_setresgid()
821 error: in __sys_setresgid()
1925 int error = -EINVAL, i; in validate_prctl_map_addr() local
1959 error = __prctl_check_order(start_code, <, end_code); in validate_prctl_map_addr()
1960 error |= __prctl_check_order(start_data,<=, end_data); in validate_prctl_map_addr()
1961 error |= __prctl_check_order(start_brk, <=, brk); in validate_prctl_map_addr()
1962 error |= __prctl_check_order(arg_start, <=, arg_end); in validate_prctl_map_addr()
1963 error |= __prctl_check_order(env_start, <=, env_end); in validate_prctl_map_addr()
1964 if (error) in validate_prctl_map_addr()
1968 error = -EINVAL; in validate_prctl_map_addr()
1978 error = 0; in validate_prctl_map_addr()
1980 return error; in validate_prctl_map_addr()
1989 int error; in prctl_set_mm_map() local
2004 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm_map()
2005 if (error) in prctl_set_mm_map()
2006 return error; in prctl_set_mm_map()
2039 error = prctl_set_mm_exe_file(mm, prctl_map.exe_fd); in prctl_set_mm_map()
2040 if (error) in prctl_set_mm_map()
2041 return error; in prctl_set_mm_map()
2132 int error; in prctl_set_mm() local
2156 error = -EINVAL; in prctl_set_mm()
2217 error = validate_prctl_map_addr(&prctl_map); in prctl_set_mm()
2218 if (error) in prctl_set_mm()
2235 error = -EFAULT; in prctl_set_mm()
2252 error = 0; in prctl_set_mm()
2256 return error; in prctl_set_mm()
2320 int error; in prctl_set_vma() local
2347 error = madvise_set_anon_name(mm, addr, size, anon_name); in prctl_set_vma()
2352 error = -EINVAL; in prctl_set_vma()
2355 return error; in prctl_set_vma()
2371 long error; in SYSCALL_DEFINE5() local
2373 error = security_task_prctl(option, arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2374 if (error != -ENOSYS) in SYSCALL_DEFINE5()
2375 return error; in SYSCALL_DEFINE5()
2377 error = 0; in SYSCALL_DEFINE5()
2381 error = -EINVAL; in SYSCALL_DEFINE5()
2387 error = put_user(me->pdeath_signal, (int __user *)arg2); in SYSCALL_DEFINE5()
2390 error = get_dumpable(me->mm); in SYSCALL_DEFINE5()
2394 error = -EINVAL; in SYSCALL_DEFINE5()
2401 error = SET_UNALIGN_CTL(me, arg2); in SYSCALL_DEFINE5()
2404 error = GET_UNALIGN_CTL(me, arg2); in SYSCALL_DEFINE5()
2407 error = SET_FPEMU_CTL(me, arg2); in SYSCALL_DEFINE5()
2410 error = GET_FPEMU_CTL(me, arg2); in SYSCALL_DEFINE5()
2413 error = SET_FPEXC_CTL(me, arg2); in SYSCALL_DEFINE5()
2416 error = GET_FPEXC_CTL(me, arg2); in SYSCALL_DEFINE5()
2419 error = PR_TIMING_STATISTICAL; in SYSCALL_DEFINE5()
2423 error = -EINVAL; in SYSCALL_DEFINE5()
2439 error = GET_ENDIAN(me, arg2); in SYSCALL_DEFINE5()
2442 error = SET_ENDIAN(me, arg2); in SYSCALL_DEFINE5()
2445 error = prctl_get_seccomp(); in SYSCALL_DEFINE5()
2448 error = prctl_set_seccomp(arg2, (char __user *)arg3); in SYSCALL_DEFINE5()
2451 error = GET_TSC_CTL(arg2); in SYSCALL_DEFINE5()
2454 error = SET_TSC_CTL(arg2); in SYSCALL_DEFINE5()
2457 error = perf_event_task_disable(); in SYSCALL_DEFINE5()
2460 error = perf_event_task_enable(); in SYSCALL_DEFINE5()
2464 error = ULONG_MAX; in SYSCALL_DEFINE5()
2466 error = current->timer_slack_ns; in SYSCALL_DEFINE5()
2504 error = (current->flags & PF_MCE_EARLY) ? in SYSCALL_DEFINE5()
2507 error = PR_MCE_KILL_DEFAULT; in SYSCALL_DEFINE5()
2510 error = prctl_set_mm(arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2513 error = prctl_get_tid_address(me, (int __user * __user *)arg2); in SYSCALL_DEFINE5()
2523 error = put_user(me->signal->is_child_subreaper, in SYSCALL_DEFINE5()
2539 error = !!test_bit(MMF_DISABLE_THP, &me->mm->flags); in SYSCALL_DEFINE5()
2557 error = SET_FP_MODE(me, arg2); in SYSCALL_DEFINE5()
2560 error = GET_FP_MODE(me); in SYSCALL_DEFINE5()
2563 error = SVE_SET_VL(arg2); in SYSCALL_DEFINE5()
2566 error = SVE_GET_VL(); in SYSCALL_DEFINE5()
2569 error = SME_SET_VL(arg2); in SYSCALL_DEFINE5()
2572 error = SME_GET_VL(); in SYSCALL_DEFINE5()
2577 error = arch_prctl_spec_ctrl_get(me, arg2); in SYSCALL_DEFINE5()
2582 error = arch_prctl_spec_ctrl_set(me, arg2, arg3); in SYSCALL_DEFINE5()
2587 error = PAC_RESET_KEYS(me, arg2); in SYSCALL_DEFINE5()
2592 error = PAC_SET_ENABLED_KEYS(me, arg2, arg3); in SYSCALL_DEFINE5()
2597 error = PAC_GET_ENABLED_KEYS(me); in SYSCALL_DEFINE5()
2602 error = SET_TAGGED_ADDR_CTRL(arg2); in SYSCALL_DEFINE5()
2607 error = GET_TAGGED_ADDR_CTRL(); in SYSCALL_DEFINE5()
2630 error = (current->flags & PR_IO_FLUSHER) == PR_IO_FLUSHER; in SYSCALL_DEFINE5()
2633 error = set_syscall_user_dispatch(arg2, arg3, arg4, in SYSCALL_DEFINE5()
2638 error = sched_core_share_pid(arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2642 error = prctl_set_vma(arg2, arg3, arg4, arg5); in SYSCALL_DEFINE5()
2645 error = -EINVAL; in SYSCALL_DEFINE5()
2649 return error; in SYSCALL_DEFINE5()