Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/mm/
Dmlock.c679 unsigned long lock_limit; in do_mlock() local
690 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()
691 lock_limit >>= PAGE_SHIFT; in do_mlock()
698 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock()
710 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()
806 unsigned long lock_limit; in SYSCALL_DEFINE1() local
816 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()
817 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()
823 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()
852 unsigned long lock_limit, locked; in user_shm_lock() local
[all …]
Dmremap.c520 unsigned long locked, lock_limit; in vma_to_resize() local
522 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()
524 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
Dmmap.c1365 unsigned long locked, lock_limit; in mlock_future_check() local
1371 lock_limit = rlimit(RLIMIT_MEMLOCK); in mlock_future_check()
1372 lock_limit >>= PAGE_SHIFT; in mlock_future_check()
1373 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_user_pages.c97 unsigned long locked, lock_limit; in qib_get_user_pages() local
101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in qib_get_user_pages()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dumem.c146 unsigned long lock_limit; in ib_umem_get() local
197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
200 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
/kernel/linux/linux-5.10/net/xdp/
Dxdp_umem.c133 unsigned long lock_limit, new_npgs, old_npgs; in xdp_umem_account_pages() local
138 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in xdp_umem_account_pages()
144 if (new_npgs > lock_limit) { in xdp_umem_account_pages()
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_uiom.c93 unsigned long lock_limit; in usnic_uiom_get_pages() local
129 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
131 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Dsev.c331 unsigned long locked, lock_limit; in sev_pin_memory() local
347 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in sev_pin_memory()
348 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in sev_pin_memory()
349 pr_err("SEV: %lu locked pages exceed the lock limit of %lu.\n", locked, lock_limit); in sev_pin_memory()
/kernel/linux/linux-5.10/drivers/vhost/
Dvdpa.c621 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_process_iotlb_update() local
651 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in vhost_vdpa_process_iotlb_update()
652 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_process_iotlb_update()
/kernel/linux/linux-5.10/kernel/events/
Dcore.c6119 unsigned long locked, lock_limit; in perf_mmap() local
6263 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap()
6264 lock_limit >>= PAGE_SHIFT; in perf_mmap()
6267 if ((locked > lock_limit) && perf_is_paranoid() && in perf_mmap()