Re: [PATCH testsuite v2] tests/io_uring/iouring.c: bump RLIMIT_MEMLOCK up to hard limit

Ondrej Mosnacek <[email protected]>
Newsgroups org.kernel.vger.selinux
Message-ID <CAFqZXNtmJ7gJtYcDWrcjpGLJ0paomZPbE+B8QwcAk+nFPfxVFQ@mail.gmail.com>
On Wed, Aug 5, 2026 at 3:29 PM Stephen Smalley
<[email protected]> wrote:
>
> On Wed, Aug 5, 2026 at 7:21 AM Ondrej Mosnacek <[email protected]> wrote:
> >
> > Test domains may get their soft resource limits lowered on transition
> > due to the typically denied rlimitinh permission. However, the resulting
> > RLIMIT_MEMLOCK limit may not be enough to run the io_uring test program
> > in some cases (low init task's limit + large page size, for example).
> > Ensure that io_uring tests can run successfully in such environments as
> > well by bumping the soft limit to the hard limit (which should be
> > sufficient everywhere) in iouring.c.
> >
> > The issue can be observed for example on CentOS Stream 9 on aarch64 or
> > ppc64le.
> >
> > Fixes: 3b4e44eb3243 ("Add tests for io_uring")
> > Signed-off-by: Ondrej Mosnacek <[email protected]>
>
> Acked-by: Stephen Smalley <[email protected]>

Thanks, applied:
https://github.com/SELinuxProject/selinux-testsuite/commit/d03e89292da66e638d795c06840037d27131d82c

-- 
Ondrej Mosnacek
Senior Software Engineer, Linux Security - SELinux kernel
Red Hat, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.