Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/powerpc/mm/
Dstack_expansion_ldst.c157 static void test_one_type(enum access_type type, unsigned long page_size, unsigned long rlim_cur) in test_one_type() argument
162 for (delta = page_size; delta <= rlim_cur; delta += page_size) in test_one_type()
165 assert(test_one(DEFAULT_SIZE, rlim_cur, type) == 0); in test_one_type()
168 assert(test_one(DEFAULT_SIZE, rlim_cur + 1, type) != 0); in test_one_type()
178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); in test()
181 test_one_type(LOAD, page_size, rlimit.rlim_cur); in test()
183 test_one_type(STORE, page_size, rlimit.rlim_cur); in test()
/linux-6.1.9/tools/testing/selftests/vm/
Dmlock-random-test.c30 new.rlim_cur = max; in set_cap_limits()
147 if (cur.rlim_cur < alloc_size) { in test_mlock_within_limit()
149 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit()
223 if (cur.rlim_cur >= alloc_size) { in test_mlock_outof_limit()
225 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_outof_limit()
233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit()
234 + cur.rlim_cur; in test_mlock_outof_limit()
Dmemfd_secret.c213 new.rlim_cur = max; in set_cap_limits()
242 mlock_limit_cur = rlim.rlim_cur; in prepare()
Dcompaction_test.c178 lim.rlim_cur = RLIM_INFINITY; in main()
/linux-6.1.9/tools/testing/selftests/mqueue/
Dmq_open_tests.c157 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()
160 cur_limits.rlim_cur = 8192; in validate_current_settings()
168 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
180 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
299 (long) saved_limits.rlim_cur); in main()
316 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()
388 cur_limits.rlim_cur) { in main()
389 cur_limits.rlim_cur = (cur_def_msgs + 2) * in main()
391 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main()
408 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main()
Dmq_perf_tests.c527 cur_limits.rlim_cur = RLIM_INFINITY; in increase_limits()
661 (long) saved_limits.rlim_cur); in main()
672 if (cur_limits.rlim_cur == RLIM_INFINITY) { in main()
677 (long) cur_limits.rlim_cur); in main()
/linux-6.1.9/security/apparmor/
Dresource.c163 rlim->rlim_cur = min(rlim->rlim_max, in __aa_transition_rlimits()
164 initrlim->rlim_cur); in __aa_transition_rlimits()
184 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); in __aa_transition_rlimits()
/linux-6.1.9/tools/perf/util/
Drlimit.c18 rlim.rlim_cur *= 4; in rlimit__bump_memlock()
22 rlim.rlim_cur /= 2; in rlimit__bump_memlock()
Ddso.c622 if (l.rlim_cur == RLIM_INFINITY) in get_fd_limit()
623 limit = l.rlim_cur; in get_fd_limit()
625 limit = l.rlim_cur / 2; in get_fd_limit()
/linux-6.1.9/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c82 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
83 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
96 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
97 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
/linux-6.1.9/include/uapi/linux/
Dresource.h44 __kernel_ulong_t rlim_cur; member
51 __u64 rlim_cur; member
/linux-6.1.9/arch/um/os-Linux/
Dmain.c34 if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { in set_stklim()
35 lim.rlim_cur = STACKSIZE; in set_stklim()
Dstart_up.c312 if (lim.rlim_cur == RLIM_INFINITY) in check_coredump_limit()
315 os_info("%llu\n", (unsigned long long)lim.rlim_cur); in check_coredump_limit()
/linux-6.1.9/tools/testing/selftests/kvm/
Dkvm_create_max_vcpus.c60 if (rl.rlim_cur < nr_fds_wanted) { in main()
61 rl.rlim_cur = nr_fds_wanted; in main()
/linux-6.1.9/kernel/
Dsys.c1448 if (new_rlim->rlim_cur > new_rlim->rlim_max) in do_prlimit()
1483 new_rlim->rlim_cur != RLIM_INFINITY && in do_prlimit()
1494 update_rlimit_cpu(tsk->group_leader, new_rlim->rlim_cur); in do_prlimit()
1523 if (r32.rlim_cur == COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1524 r.rlim_cur = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1526 r.rlim_cur = r32.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1543 if (r.rlim_cur > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1544 r32.rlim_cur = COMPAT_RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1546 r32.rlim_cur = r.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1576 if (x.rlim_cur > 0x7FFFFFFF) in SYSCALL_DEFINE2()
[all …]
Dacct.c503 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
544 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
/linux-6.1.9/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c410 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free()
411 rlim_new.rlim_cur = nr_sk_threads * nr_sk_per_thread + 128; in test_sk_storage_map_stress_free()
412 rlim_new.rlim_max = rlim_new.rlim_cur + 128; in test_sk_storage_map_stress_free()
415 rlim_new.rlim_cur, errno); in test_sk_storage_map_stress_free()
427 if (rlim_new.rlim_cur) in test_sk_storage_map_stress_free()
/linux-6.1.9/arch/s390/mm/
Dmmap.c33 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy()
51 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux-6.1.9/tools/perf/tests/
Ddso-data.c245 pr_debug("file limit %ld, new %d\n", (long) rlim.rlim_cur, n); in set_fd_limit()
247 rlim.rlim_cur = n; in set_fd_limit()
/linux-6.1.9/arch/x86/mm/
Dmmap.c85 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux-6.1.9/tools/testing/selftests/rlimits/
Drlimits-per-userns.c34 .rlim_cur = n, in setrlimit_nproc()
/linux-6.1.9/tools/testing/selftests/net/
Dreuseport_bpf.c444 if (rlim_old.rlim_cur != RLIM_INFINITY) { in main_ctor()
447 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in main_ctor()
/linux-6.1.9/tools/testing/selftests/core/
Dclose_range_test.c272 rlimit.rlim_cur = 25; in TEST()
340 rlimit.rlim_cur = 25; in TEST()
/linux-6.1.9/mm/
Dutil.c376 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy()
391 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux-6.1.9/fs/
Dexec.c484 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in bprm_stack_limits()
844 rlim_stack = bprm->rlim_stack.rlim_cur & PAGE_MASK; in setup_arg_pages()
1341 if (bprm->rlim_stack.rlim_cur > _STK_LIM) in begin_new_exec()
1342 bprm->rlim_stack.rlim_cur = _STK_LIM; in begin_new_exec()

12