rlimit 64 arch/parisc/kernel/sys_parisc.c static unsigned long mmap_upper_limit(struct rlimit *rlim_stack) rlimit 241 arch/parisc/kernel/sys_parisc.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 28 arch/powerpc/mm/mmap.c static inline int mmap_is_legacy(struct rlimit *rlim_stack) rlimit 66 arch/powerpc/mm/mmap.c struct rlimit *rlim_stack) rlimit 187 arch/powerpc/mm/mmap.c struct rlimit *rlim_stack) rlimit 201 arch/powerpc/mm/mmap.c struct rlimit *rlim_stack); rlimit 207 arch/powerpc/mm/mmap.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 30 arch/s390/mm/mmap.c static inline int mmap_is_legacy(struct rlimit *rlim_stack) rlimit 50 arch/s390/mm/mmap.c struct rlimit *rlim_stack) rlimit 191 arch/s390/mm/mmap.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 280 arch/sparc/kernel/sys_sparc_64.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 28 arch/um/os-Linux/main.c struct rlimit lim; rlimit 303 arch/um/os-Linux/start_up.c struct rlimit lim; rlimit 127 arch/x86/ia32/ia32_aout.c rlim = rlimit(RLIMIT_DATA); rlimit 1845 arch/x86/kvm/svm.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 81 arch/x86/mm/mmap.c struct rlimit *rlim_stack) rlimit 118 arch/x86/mm/mmap.c struct rlimit *rlim_stack) rlimit 127 arch/x86/mm/mmap.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 1054 drivers/android/binder.c min_nice = rlimit_to_nice(rlimit(RLIMIT_NICE)); rlimit 208 drivers/hwmon/pmbus/lm25066.c u16 rlimit; /* Maximum register value */ rlimit 361 drivers/hwmon/pmbus/lm25066.c word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); rlimit 366 drivers/hwmon/pmbus/lm25066.c word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); rlimit 373 drivers/hwmon/pmbus/lm25066.c word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); rlimit 382 drivers/hwmon/pmbus/lm25066.c word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); rlimit 390 drivers/hwmon/pmbus/lm25066.c word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); rlimit 449 drivers/hwmon/pmbus/lm25066.c data->rlimit = 0x0fff; rlimit 453 drivers/hwmon/pmbus/lm25066.c data->rlimit = 0x0fff; rlimit 256 drivers/infiniband/core/umem.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 74 drivers/infiniband/hw/hfi1/user_pages.c unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, rlimit 101 drivers/infiniband/hw/qib/qib_user_pages.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 129 drivers/infiniband/hw/usnic/usnic_uiom.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 402 drivers/infiniband/sw/siw/siw_mem.c mlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 1303 drivers/infiniband/sw/siw/siw_verbs.c unsigned long mem_limit = rlimit(RLIMIT_MEMLOCK); rlimit 283 drivers/misc/mic/scif/scif_rma.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 1515 drivers/net/wireless/quantenna/qtnfmac/commands.c mac_info->sretry_limit = limit->rlimit; rlimit 1519 drivers/net/wireless/quantenna/qtnfmac/commands.c mac_info->lretry_limit = limit->rlimit; rlimit 1242 drivers/net/wireless/quantenna/qtnfmac/qlink.h u8 rlimit; rlimit 1016 drivers/vfio/vfio_iommu_type1.c unsigned long pfn, limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 1192 drivers/vfio/vfio_iommu_type1.c unsigned long limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 140 fs/attr.c limit = rlimit(RLIMIT_FSIZE); rlimit 147 fs/binfmt_aout.c rlim = rlimit(RLIMIT_DATA); rlimit 527 fs/binfmt_flat.c rlim = rlimit(RLIMIT_DATA); rlimit 314 fs/coredump.c rlimit(RLIMIT_CORE)); rlimit 562 fs/coredump.c current->signal->rlim[RLIMIT_CORE] = (struct rlimit){1, 1}; rlimit 587 fs/coredump.c .limit = rlimit(RLIMIT_CORE), rlimit 1738 fs/exec.c atomic_read(¤t_user()->processes) > rlimit(RLIMIT_NPROC)) { rlimit 540 fs/file.c return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags); rlimit 545 fs/file.c return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); rlimit 895 fs/file.c if (fd >= rlimit(RLIMIT_NOFILE)) rlimit 921 fs/file.c if (newfd >= rlimit(RLIMIT_NOFILE)) rlimit 986 fs/file.c if (from >= rlimit(RLIMIT_NOFILE)) rlimit 1091 fs/io_uring.c req->fsize = rlimit(RLIMIT_FSIZE); rlimit 3322 fs/io_uring.c page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 590 fs/proc/base.c struct rlimit rlim[RLIM_NLIMITS]; rlimit 594 fs/proc/base.c memcpy(rlim, task->signal->rlim, sizeof(struct rlimit) * RLIM_NLIMITS); rlimit 973 fs/select.c if (nfds > rlimit(RLIMIT_NOFILE)) rlimit 65 include/linux/binfmts.h struct rlimit rlim_stack; /* Saved RLIMIT_STACK used during exec. */ rlimit 1646 include/linux/lsm_hooks.h struct rlimit *new_rlim); rlimit 12 include/linux/resource.h struct rlimit *new_rlim, struct rlimit *old_rlim); rlimit 135 include/linux/sched/mm.h struct rlimit *rlim_stack); rlimit 145 include/linux/sched/mm.h struct rlimit *rlim_stack) {} rlimit 201 include/linux/sched/signal.h struct rlimit rlim[RLIM_NLIMITS]; rlimit 37 include/linux/security.h struct rlimit; rlimit 401 include/linux/security.h struct rlimit *new_rlim); rlimit 1073 include/linux/security.h struct rlimit *new_rlim) rlimit 36 include/linux/syscalls.h struct rlimit; rlimit 725 include/linux/syscalls.h struct rlimit __user *rlim); rlimit 727 include/linux/syscalls.h struct rlimit __user *rlim); rlimit 1205 include/linux/syscalls.h asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim); rlimit 317 ipc/mqueue.c u->mq_bytes + mq_bytes > rlimit(RLIMIT_MSGQUEUE)) { rlimit 1098 ipc/shm.c if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) { rlimit 188 kernel/bpf/syscall.c unsigned long memlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 1244 kernel/bpf/syscall.c unsigned long memlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 5856 kernel/events/core.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 467 kernel/sys.c if (atomic_read(&new_user->processes) >= rlimit(RLIMIT_NPROC) && rlimit 1383 kernel/sys.c SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) rlimit 1385 kernel/sys.c struct rlimit value; rlimit 1400 kernel/sys.c struct rlimit r; rlimit 1420 kernel/sys.c struct rlimit r; rlimit 1449 kernel/sys.c struct rlimit __user *, rlim) rlimit 1451 kernel/sys.c struct rlimit x; rlimit 1470 kernel/sys.c struct rlimit r; rlimit 1502 kernel/sys.c static void rlim_to_rlim64(const struct rlimit *rlim, struct rlimit64 *rlim64) rlimit 1514 kernel/sys.c static void rlim64_to_rlim(const struct rlimit64 *rlim64, struct rlimit *rlim) rlimit 1528 kernel/sys.c struct rlimit *new_rlim, struct rlimit *old_rlim) rlimit 1530 kernel/sys.c struct rlimit *rlim; rlimit 1611 kernel/sys.c struct rlimit old, new; rlimit 1653 kernel/sys.c SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim) rlimit 1655 kernel/sys.c struct rlimit new_rlim; rlimit 1938 kernel/sys.c if (check_data_rlimit(rlimit(RLIMIT_DATA), prctl_map->brk, rlimit 2910 mm/filemap.c loff_t limit = rlimit(RLIMIT_FSIZE); rlimit 31 mm/mlock.c if (rlimit(RLIMIT_MEMLOCK) != 0) rlimit 685 mm/mlock.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 811 mm/mlock.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 851 mm/mlock.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 225 mm/mmap.c if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk, rlimit 1346 mm/mmap.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 2304 mm/mmap.c if (size > rlimit(RLIMIT_STACK)) rlimit 2312 mm/mmap.c limit = rlimit(RLIMIT_MEMLOCK); rlimit 3289 mm/mmap.c if (mm->total_vm + npages > rlimit(RLIMIT_AS) >> PAGE_SHIFT) rlimit 3293 mm/mmap.c mm->data_vm + npages > rlimit(RLIMIT_DATA) >> PAGE_SHIFT) { rlimit 3295 mm/mmap.c if (rlimit(RLIMIT_DATA) == 0 && rlimit 3302 mm/mmap.c rlimit(RLIMIT_DATA), rlimit 478 mm/mremap.c lock_limit = rlimit(RLIMIT_MEMLOCK); rlimit 347 mm/util.c static int mmap_is_legacy(struct rlimit *rlim_stack) rlimit 365 mm/util.c static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) rlimit 386 mm/util.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 402 mm/util.c void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) rlimit 1064 net/core/skbuff.c max_pg = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 324 net/xdp/xdp_umem.c lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; rlimit 432 samples/bpf/map_perf_test_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 98 samples/bpf/offwaketime_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 19 samples/bpf/sockex2_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 33 samples/bpf/sockex3_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 14 samples/bpf/spintest_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 88 samples/bpf/syscall_tp_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 293 samples/bpf/task_fd_query_user.c struct rlimit r = {1024*1024, RLIM_INFINITY}; rlimit 492 samples/bpf/test_lru_dist.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 115 samples/bpf/test_map_in_map_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 128 samples/bpf/test_overhead_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 284 samples/bpf/trace_event_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 117 samples/bpf/tracex2_user.c struct rlimit r = {1024*1024, RLIM_INFINITY}; rlimit 111 samples/bpf/tracex3_user.c struct rlimit r = {1024*1024, RLIM_INFINITY}; rlimit 52 samples/bpf/tracex4_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 32 samples/bpf/tracex5_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 176 samples/bpf/tracex6_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 82 samples/bpf/xdp1_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 83 samples/bpf/xdp_adjust_tail_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 652 samples/bpf/xdp_monitor_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 671 samples/bpf/xdp_redirect_cpu_user.c struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY}; rlimit 99 samples/bpf/xdp_redirect_map_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 100 samples/bpf/xdp_redirect_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 628 samples/bpf/xdp_router_ipv4_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 460 samples/bpf/xdp_rxq_info_user.c struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY}; rlimit 113 samples/bpf/xdp_sample_pkts_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 158 samples/bpf/xdp_tx_iptunnel_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 733 samples/bpf/xdpsock_user.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 30 security/apparmor/include/resource.h struct rlimit limits[RLIM_NLIMITS]; rlimit 37 security/apparmor/include/resource.h unsigned int resource, struct rlimit *new_rlim); rlimit 717 security/apparmor/lsm.c unsigned int resource, struct rlimit *new_rlim) rlimit 82 security/apparmor/resource.c struct rlimit *new_rlim) rlimit 105 security/apparmor/resource.c unsigned int resource, struct rlimit *new_rlim) rlimit 144 security/apparmor/resource.c struct rlimit *rlim, *initrlim; rlimit 1681 security/security.c struct rlimit *new_rlim) rlimit 2505 security/selinux/hooks.c struct rlimit *rlim, *initrlim; rlimit 2541 security/selinux/hooks.c update_rlimit_cpu(current, rlimit(RLIMIT_CPU)); rlimit 4106 security/selinux/hooks.c struct rlimit *new_rlim) rlimit 4108 security/selinux/hooks.c struct rlimit *old_rlim = p->signal->rlim + resource; rlimit 75 tools/bpf/bpftool/common.c struct rlimit rinf = { RLIM_INFINITY, RLIM_INFINITY }; rlimit 529 tools/io_uring/io_uring-bench.c struct rlimit rlim; rlimit 307 tools/perf/bench/epoll-ctl.c struct rlimit rl, prevrl; rlimit 422 tools/perf/bench/epoll-wait.c struct rlimit rl, prevrl; rlimit 561 tools/perf/builtin-sched.c struct rlimit limit; rlimit 862 tools/perf/pmu-events/jevents.c struct rlimit rlim; rlimit 240 tools/perf/tests/dso-data.c struct rlimit rlim; rlimit 575 tools/perf/util/dso.c struct rlimit l; rlimit 1729 tools/perf/util/evsel.c struct rlimit l; rlimit 15 tools/perf/util/rlimit.c struct rlimit rlim; rlimit 6 tools/testing/selftests/bpf/bpf_rlimit.h struct rlimit rlim_old, rlim_new = { rlimit 402 tools/testing/selftests/bpf/map_tests/sk_storage_map.c struct rlimit rlim_old, rlim_new = {}; rlimit 91 tools/testing/selftests/bpf/xdping.c struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; rlimit 53 tools/testing/selftests/mqueue/mq_open_tests.c struct rlimit saved_limits, cur_limits; rlimit 65 tools/testing/selftests/mqueue/mq_open_tests.c static inline void getr(int type, struct rlimit *rlim); rlimit 66 tools/testing/selftests/mqueue/mq_open_tests.c static inline void setr(int type, struct rlimit *rlim); rlimit 141 tools/testing/selftests/mqueue/mq_open_tests.c static inline void getr(int type, struct rlimit *rlim) rlimit 147 tools/testing/selftests/mqueue/mq_open_tests.c static inline void setr(int type, struct rlimit *rlim) rlimit 93 tools/testing/selftests/mqueue/mq_perf_tests.c struct rlimit saved_limits, cur_limits; rlimit 160 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void getr(int type, struct rlimit *rlim); rlimit 161 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void setr(int type, struct rlimit *rlim); rlimit 267 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void getr(int type, struct rlimit *rlim) rlimit 273 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void setr(int type, struct rlimit *rlim) rlimit 440 tools/testing/selftests/net/reuseport_bpf.c static struct rlimit rlim_old; rlimit 447 tools/testing/selftests/net/reuseport_bpf.c struct rlimit rlim_new; rlimit 76 tools/testing/selftests/powerpc/ptrace/core-pkey.c struct rlimit rlim; rlimit 237 tools/testing/selftests/proc/proc-pid-vm.c struct rlimit rlim = {0, 0}; rlimit 162 tools/testing/selftests/vm/compaction_test.c struct rlimit lim; rlimit 27 tools/testing/selftests/vm/mlock-random-test.c struct rlimit new; rlimit 143 tools/testing/selftests/vm/mlock-random-test.c struct rlimit cur; rlimit 220 tools/testing/selftests/vm/mlock-random-test.c struct rlimit cur; rlimit 16 tools/testing/selftests/vm/on-fault-limit.c struct rlimit lims;