Re: [PATCH testsuite v2] tests/io_uring/iouring.c: bump RLIMIT_MEMLOCK up to hard limit
Stephen Smalley <[email protected]>
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ7wZcydOM1RWAYinmQ_AgJLg+75U0ZSFnGwHNtc_5ZORg@mail.gmail.com> |
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]>