Thread (1 message) 1 message, 1 author, 2025-05-19

Re: mlock ulimits for SHM_HUGETLB

From: Michal Hocko <mhocko@suse.com>
Date: 2025-05-19 14:02:56
Also in: linux-fsdevel, linux-mm, lkml

Hi,
On Mon 19-05-25 10:21:17, Bharat Agrawal wrote:
Hi all,

Could anyone please help comment on the risks associated with an
application throwing the "Using mlock ulimits for SHM_HUGETLB is
deprecated" message on RHEL 8.9 with 4.18.0-513.18.1.el8_9.x86_64
Linux kernel?
This is not RHEL specific behavior. The current Linus tree has the same
warning which has been added by 
: commit 2584e517320bd48dc8d20e38a2621a2dbe58fade
: Author: Ravikiran G Thirumalai [off-list ref]
: Date:   Tue Mar 31 15:21:26 2009 -0700
: 
:     mm: reintroduce and deprecate rlimit based access for SHM_HUGETLB
: 
:     Allow non root users with sufficient mlock rlimits to be able to allocate
:     hugetlb backed shm for now.  Deprecate this though.  This is being
:     deprecated because the mlock based rlimit checks for SHM_HUGETLB is not
:     consistent with mmap based huge page allocations.
: 
:     Signed-off-by: Ravikiran Thirumalai [off-list ref]
:     Reviewed-by: Mel Gorman [off-list ref]
:     Cc: William Lee Irwin III [off-list ref]
:     Cc: Adam Litke [off-list ref]
:     Signed-off-by: Andrew Morton [off-list ref]
:     Signed-off-by: Linus Torvalds [off-list ref]

HTH
-- 
Michal Hocko
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help