[PATCH] tests/io_uring: ensure that tne io_uring::enter_ring_fd is imported

Richard Guy Briggs rgb at redhat.com
Thu Aug 25 21:07:27 UTC 2022


On 2022-08-25 16:28, Paul Moore wrote:
> On Thu, Aug 25, 2022 at 4:10 PM Richard Guy Briggs <rgb at redhat.com> wrote:
> > On 2022-08-24 15:42, Paul Moore wrote:
> > > The liburing library added a new field to the io_uring struct in
> > > commit b02125e164ea ("Add preliminary support for using a registered ring fd"),
> > > first seen in liburing v2.2.
> >
> > I'm guessing this should have been sent to the iouring folks?
> 
> No, it's for the audit-testsuite.  You'll find it committed as 9cf35a32dde4.

Oops!  I was thinking this was for the kernel tree...  Sorry for the
noise.

> > > Signed-off-by: Paul Moore <paul at paul-moore.com>
> > > ---
> > >  tests/io_uring/iouring.c |    1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/tests/io_uring/iouring.c b/tests/io_uring/iouring.c
> > > index 5d83146..af814f6 100644
> > > --- a/tests/io_uring/iouring.c
> > > +++ b/tests/io_uring/iouring.c
> > > @@ -233,6 +233,7 @@ int uring_import(int fd, struct io_uring *ring, struct io_uring_params *params)
> > >       ring->flags = params->flags;
> > >       ring->features = params->features;
> > >       ring->ring_fd = fd;
> > > +     ring->enter_ring_fd = fd;
> > >
> > >       ring->sq.ring_sz = params->sq_off.array +
> > >                          params->sq_entries * sizeof(unsigned);
> > >
> 
> -- 
> paul-moore.com
> 

- RGB

--
Richard Guy Briggs <rgb at redhat.com>
Sr. S/W Engineer, Kernel Security, Base Operating Systems
Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635


More information about the Linux-audit mailing list