rlim 107 arch/x86/ia32/ia32_aout.c unsigned long error, fd_offset, rlim; rlim 127 arch/x86/ia32/ia32_aout.c rlim = rlimit(RLIMIT_DATA); rlim 128 arch/x86/ia32/ia32_aout.c if (rlim >= RLIM_INFINITY) rlim 129 arch/x86/ia32/ia32_aout.c rlim = ~0; rlim 130 arch/x86/ia32/ia32_aout.c if (ex.a_data + ex.a_bss > rlim) rlim 413 drivers/net/ethernet/ti/davinci_cpdma.c int rlim = 0; rlim 425 drivers/net/ethernet/ti/davinci_cpdma.c rlim = 1; rlim 430 drivers/net/ethernet/ti/davinci_cpdma.c if (rlim) rlim 435 drivers/net/ethernet/ti/davinci_cpdma.c *prio_mode = rlim; rlim 123 fs/binfmt_aout.c unsigned long rlim; rlim 147 fs/binfmt_aout.c rlim = rlimit(RLIMIT_DATA); rlim 148 fs/binfmt_aout.c if (rlim >= RLIM_INFINITY) rlim 149 fs/binfmt_aout.c rlim = ~0; rlim 150 fs/binfmt_aout.c if (ex.a_data + ex.a_bss > rlim) rlim 431 fs/binfmt_flat.c unsigned long len, memp, memp_size, extra, rlim; rlim 527 fs/binfmt_flat.c rlim = rlimit(RLIMIT_DATA); rlim 528 fs/binfmt_flat.c if (rlim >= RLIM_INFINITY) rlim 529 fs/binfmt_flat.c rlim = ~0; rlim 530 fs/binfmt_flat.c if (data_len + bss_len > rlim) { rlim 562 fs/coredump.c current->signal->rlim[RLIMIT_CORE] = (struct rlimit){1, 1}; rlim 371 fs/exec.c bprm->rlim_stack = current->signal->rlim[RLIMIT_STACK]; rlim 1398 fs/exec.c current->signal->rlim[RLIMIT_STACK] = bprm->rlim_stack; rlim 1513 fs/io_uring.c current->signal->rlim[RLIMIT_FSIZE].rlim_cur = req->fsize; rlim 1521 fs/io_uring.c current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; rlim 497 fs/proc/array.c rsslim = READ_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur); rlim 590 fs/proc/base.c struct rlimit rlim[RLIM_NLIMITS]; rlim 594 fs/proc/base.c memcpy(rlim, task->signal->rlim, sizeof(struct rlimit) * RLIM_NLIMITS); rlim 606 fs/proc/base.c if (rlim[i].rlim_cur == RLIM_INFINITY) rlim 611 fs/proc/base.c lnames[i].name, rlim[i].rlim_cur); rlim 613 fs/proc/base.c if (rlim[i].rlim_max == RLIM_INFINITY) rlim 616 fs/proc/base.c seq_printf(m, "%-20lu ", rlim[i].rlim_max); rlim 726 include/linux/compat.h struct compat_rlimit __user *rlim); rlim 728 include/linux/compat.h struct compat_rlimit __user *rlim); rlim 2303 include/linux/mm.h static inline int check_data_rlimit(unsigned long rlim, rlim 2309 include/linux/mm.h if (rlim < RLIM_INFINITY) { rlim 2310 include/linux/mm.h if (((new - start) + (end_data - start_data)) > rlim) rlim 201 include/linux/sched/signal.h struct rlimit rlim[RLIM_NLIMITS]; rlim 687 include/linux/sched/signal.h return READ_ONCE(task->signal->rlim[limit].rlim_cur); rlim 693 include/linux/sched/signal.h return READ_ONCE(task->signal->rlim[limit].rlim_max); rlim 725 include/linux/syscalls.h struct rlimit __user *rlim); rlim 727 include/linux/syscalls.h struct rlimit __user *rlim); rlim 1205 include/linux/syscalls.h asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim); rlim 27 init/init_task.c .rlim = INIT_RLIMITS, rlim 481 kernel/acct.c flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; rlim 482 kernel/acct.c current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; rlim 524 kernel/acct.c current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; rlim 823 kernel/fork.c init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; rlim 824 kernel/fork.c init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; rlim 825 kernel/fork.c init_task.signal->rlim[RLIMIT_SIGPENDING] = rlim 826 kernel/fork.c init_task.signal->rlim[RLIMIT_NPROC]; rlim 1539 kernel/fork.c cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); rlim 1577 kernel/fork.c memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); rlim 1383 kernel/sys.c SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) rlim 1390 kernel/sys.c ret = copy_to_user(rlim, &value, sizeof(*rlim)) ? -EFAULT : 0; rlim 1398 kernel/sys.c struct compat_rlimit __user *, rlim) rlim 1403 kernel/sys.c if (copy_from_user(&r32, rlim, sizeof(struct compat_rlimit))) rlim 1418 kernel/sys.c struct compat_rlimit __user *, rlim) rlim 1435 kernel/sys.c if (copy_to_user(rlim, &r32, sizeof(struct compat_rlimit))) rlim 1449 kernel/sys.c struct rlimit __user *, rlim) rlim 1457 kernel/sys.c x = current->signal->rlim[resource]; rlim 1463 kernel/sys.c return copy_to_user(rlim, &x, sizeof(x)) ? -EFAULT : 0; rlim 1468 kernel/sys.c struct compat_rlimit __user *, rlim) rlim 1477 kernel/sys.c r = current->signal->rlim[resource]; rlim 1484 kernel/sys.c if (put_user(r.rlim_cur, &rlim->rlim_cur) || rlim 1485 kernel/sys.c put_user(r.rlim_max, &rlim->rlim_max)) rlim 1502 kernel/sys.c static void rlim_to_rlim64(const struct rlimit *rlim, struct rlimit64 *rlim64) rlim 1504 kernel/sys.c if (rlim->rlim_cur == RLIM_INFINITY) rlim 1507 kernel/sys.c rlim64->rlim_cur = rlim->rlim_cur; rlim 1508 kernel/sys.c if (rlim->rlim_max == RLIM_INFINITY) rlim 1511 kernel/sys.c rlim64->rlim_max = rlim->rlim_max; rlim 1514 kernel/sys.c static void rlim64_to_rlim(const struct rlimit64 *rlim64, struct rlimit *rlim) rlim 1517 kernel/sys.c rlim->rlim_cur = RLIM_INFINITY; rlim 1519 kernel/sys.c rlim->rlim_cur = (unsigned long)rlim64->rlim_cur; rlim 1521 kernel/sys.c rlim->rlim_max = RLIM_INFINITY; rlim 1523 kernel/sys.c rlim->rlim_max = (unsigned long)rlim64->rlim_max; rlim 1530 kernel/sys.c struct rlimit *rlim; rlim 1550 kernel/sys.c rlim = tsk->signal->rlim + resource; rlim 1555 kernel/sys.c if (new_rlim->rlim_max > rlim->rlim_max && rlim 1563 kernel/sys.c *old_rlim = *rlim; rlim 1565 kernel/sys.c *rlim = *new_rlim; rlim 1653 kernel/sys.c SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim) rlim 1657 kernel/sys.c if (copy_from_user(&new_rlim, rlim, sizeof(*rlim))) rlim 859 kernel/time/posix-cpu-timers.c tsk->signal->rlim[RLIMIT_RTTIME].rlim_cur = soft; rlim 957 kernel/time/posix-cpu-timers.c sig->rlim[RLIMIT_CPU].rlim_cur = soft + 1; rlim 126 security/apparmor/include/audit.h int rlim; rlim 128 security/apparmor/include/audit.h } rlim; rlim 35 security/apparmor/resource.c rlim_names[aad(sa)->rlim.rlim], aad(sa)->rlim.max); rlim 58 security/apparmor/resource.c aad(&sa)->rlim.rlim = resource; rlim 59 security/apparmor/resource.c aad(&sa)->rlim.max = value; rlim 144 security/apparmor/resource.c struct rlimit *rlim, *initrlim; rlim 161 security/apparmor/resource.c rlim = current->signal->rlim + j; rlim 162 security/apparmor/resource.c initrlim = init_task.signal->rlim + j; rlim 163 security/apparmor/resource.c rlim->rlim_cur = min(rlim->rlim_max, rlim 180 security/apparmor/resource.c rlim = current->signal->rlim + j; rlim 181 security/apparmor/resource.c rlim->rlim_max = min(rlim->rlim_max, rlim 184 security/apparmor/resource.c rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); rlim 2505 security/selinux/hooks.c struct rlimit *rlim, *initrlim; rlim 2535 security/selinux/hooks.c rlim = current->signal->rlim + i; rlim 2536 security/selinux/hooks.c initrlim = init_task.signal->rlim + i; rlim 2537 security/selinux/hooks.c rlim->rlim_cur = min(rlim->rlim_max, initrlim->rlim_cur); rlim 4108 security/selinux/hooks.c struct rlimit *old_rlim = p->signal->rlim + resource; rlim 529 tools/io_uring/io_uring-bench.c struct rlimit rlim; rlim 531 tools/io_uring/io_uring-bench.c rlim.rlim_cur = RLIM_INFINITY; rlim 532 tools/io_uring/io_uring-bench.c rlim.rlim_max = RLIM_INFINITY; rlim 533 tools/io_uring/io_uring-bench.c if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { rlim 862 tools/perf/pmu-events/jevents.c struct rlimit rlim; rlim 864 tools/perf/pmu-events/jevents.c if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) rlim 865 tools/perf/pmu-events/jevents.c return min((int)rlim.rlim_max / 2, 512); rlim 240 tools/perf/tests/dso-data.c struct rlimit rlim; rlim 242 tools/perf/tests/dso-data.c if (getrlimit(RLIMIT_NOFILE, &rlim)) rlim 245 tools/perf/tests/dso-data.c pr_debug("file limit %ld, new %d\n", (long) rlim.rlim_cur, n); rlim 247 tools/perf/tests/dso-data.c rlim.rlim_cur = n; rlim 248 tools/perf/tests/dso-data.c return setrlimit(RLIMIT_NOFILE, &rlim); rlim 15 tools/perf/util/rlimit.c struct rlimit rlim; rlim 17 tools/perf/util/rlimit.c if (getrlimit(RLIMIT_MEMLOCK, &rlim) == 0) { rlim 18 tools/perf/util/rlimit.c rlim.rlim_cur *= 4; rlim 19 tools/perf/util/rlimit.c rlim.rlim_max *= 4; rlim 21 tools/perf/util/rlimit.c if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { rlim 22 tools/perf/util/rlimit.c rlim.rlim_cur /= 2; rlim 23 tools/perf/util/rlimit.c rlim.rlim_max /= 2; rlim 25 tools/perf/util/rlimit.c if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) rlim 65 tools/testing/selftests/mqueue/mq_open_tests.c static inline void getr(int type, struct rlimit *rlim); rlim 66 tools/testing/selftests/mqueue/mq_open_tests.c static inline void setr(int type, struct rlimit *rlim); rlim 141 tools/testing/selftests/mqueue/mq_open_tests.c static inline void getr(int type, struct rlimit *rlim) rlim 143 tools/testing/selftests/mqueue/mq_open_tests.c if (getrlimit(type, rlim)) rlim 147 tools/testing/selftests/mqueue/mq_open_tests.c static inline void setr(int type, struct rlimit *rlim) rlim 149 tools/testing/selftests/mqueue/mq_open_tests.c if (setrlimit(type, rlim)) rlim 160 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void getr(int type, struct rlimit *rlim); rlim 161 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void setr(int type, struct rlimit *rlim); rlim 267 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void getr(int type, struct rlimit *rlim) rlim 269 tools/testing/selftests/mqueue/mq_perf_tests.c if (getrlimit(type, rlim)) rlim 273 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void setr(int type, struct rlimit *rlim) rlim 275 tools/testing/selftests/mqueue/mq_perf_tests.c if (setrlimit(type, rlim)) rlim 76 tools/testing/selftests/powerpc/ptrace/core-pkey.c struct rlimit rlim; rlim 79 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = getrlimit(RLIMIT_CORE, &rlim); rlim 82 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { rlim 83 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_cur = CORE_FILE_LIMIT; rlim 85 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (rlim.rlim_max != RLIM_INFINITY && rlim 86 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_max < CORE_FILE_LIMIT) rlim 87 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_max = CORE_FILE_LIMIT; rlim 89 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = setrlimit(RLIMIT_CORE, &rlim); rlim 93 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = getrlimit(RLIMIT_FSIZE, &rlim); rlim 96 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { rlim 97 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_cur = CORE_FILE_LIMIT; rlim 99 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (rlim.rlim_max != RLIM_INFINITY && rlim 100 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_max < CORE_FILE_LIMIT) rlim 101 tools/testing/selftests/powerpc/ptrace/core-pkey.c rlim.rlim_max = CORE_FILE_LIMIT; rlim 103 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = setrlimit(RLIMIT_FSIZE, &rlim); rlim 237 tools/testing/selftests/proc/proc-pid-vm.c struct rlimit rlim = {0, 0}; rlim 238 tools/testing/selftests/proc/proc-pid-vm.c (void)setrlimit(RLIMIT_CORE, &rlim);