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

Richard Guy Briggs rgb at redhat.com
Thu Aug 25 20:10:07 UTC 2022


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?

> 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);
> 
> --
> Linux-audit mailing list
> Linux-audit at redhat.com
> https://listman.redhat.com/mailman/listinfo/linux-audit
> 

- 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